Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004442/0.004442, allocations: 95.77 kB / 15.73 MB, free: 6.039 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001212/0.001212, allocations: 201.2 kB / 16.68 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.361/1.361, allocations: 222.9 MB / 240.4 MB, free: 4.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.957/0.957, allocations: 135.6 MB / 426.1 MB, free: 11.78 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002076/0.002076, allocations: 59.91 kB / 0.5857 GB, free: 3.266 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3551/0.3572, allocations: 81.03 MB / 0.6649 GB, free: 6.871 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002462/0.3597, allocations: 1.944 MB / 0.6668 GB, free: 5.344 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0009135/0.3607, allocations: 0.7032 MB / 0.6674 GB, free: 4.789 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.773e-05/0.3608, allocations: 10.62 kB / 0.6675 GB, free: 4.781 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001832/0.361, allocations: 81.92 kB / 0.6675 GB, free: 4.734 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001047/0.3611, allocations: 92.09 kB / 0.6676 GB, free: 4.68 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004621/0.3616, allocations: 186.4 kB / 0.6678 GB, free: 4.547 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.000237/0.3618, allocations: 261.2 kB / 0.668 GB, free: 4.398 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001319/0.3619, allocations: 81.72 kB / 0.6681 GB, free: 4.352 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001162/0.3621, allocations: 117.7 kB / 0.6682 GB, free: 4.281 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000155/0.3622, allocations: 147.2 kB / 0.6684 GB, free: 4.199 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 3.539e-05/0.3623, allocations: 24.59 kB / 0.6684 GB, free: 4.195 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001314/0.3624, allocations: 93.3 kB / 0.6685 GB, free: 4.156 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 7.017e-05/0.3625, allocations: 62.8 kB / 0.6686 GB, free: 4.109 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 8.279e-05/0.3626, allocations: 101.7 kB / 0.6686 GB, free: 4.031 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002754/0.3628, allocations: 314.8 kB / 0.6689 GB, free: 3.805 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.3629, allocations: 0 / 0.6689 GB, free: 3.805 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.292e-06/0.3629, allocations: 1.438 kB / 0.6689 GB, free: 3.805 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 9.838e-06/0.3629, allocations: 0 / 0.6689 GB, free: 3.805 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.0006412/0.3635, allocations: 0.5878 MB / 0.6695 GB, free: 3.25 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.281e-05/0.3636, allocations: 9.625 kB / 0.6695 GB, free: 3.25 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.376e-05/0.3636, allocations: 47.27 kB / 0.6696 GB, free: 3.199 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.273e-05/0.3637, allocations: 32.09 kB / 0.6696 GB, free: 3.184 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003787/0.364, allocations: 306.4 kB / 0.6699 GB, free: 2.895 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.183e-05/0.3641, allocations: 17.72 kB / 0.6699 GB, free: 2.883 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.185e-05/0.3641, allocations: 14.41 kB / 0.6699 GB, free: 2.879 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003187/0.3644, allocations: 220.9 kB / 0.6701 GB, free: 2.723 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.966e-06/0.3645, allocations: 1.062 kB / 0.6701 GB, free: 2.723 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.651e-05/0.3645, allocations: 9.469 kB / 0.6702 GB, free: 2.715 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.821e-06/0.3645, allocations: 4.062 kB / 0.6702 GB, free: 2.715 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002253/0.3647, allocations: 131.3 kB / 0.6703 GB, free: 2.66 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006089/0.3653, allocations: 0.6842 MB / 0.6709 GB, free: 2.02 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003267/0.3657, allocations: 168.2 kB / 0.6711 GB, free: 1.93 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001456/0.3658, allocations: 95.52 kB / 0.6712 GB, free: 1.887 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.543e-05/0.3659, allocations: 1.531 kB / 0.6712 GB, free: 1.887 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002411/0.3661, allocations: 177.7 kB / 0.6714 GB, free: 1.75 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=15): time 1.573e-06/0.3661, allocations: 5.031 kB / 0.6714 GB, free: 1.746 MB / 0.4981 GB Notification: Performance of matching and sorting (n=15): time 0.0005984/0.3667, allocations: 372.8 kB / 0.6717 GB, free: 1.57 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.434e-05/0.3668, allocations: 136.9 kB / 0.6719 GB, free: 1.41 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002232/0.367, allocations: 276.9 kB / 0.6721 GB, free: 1.234 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.77e-05/0.367, allocations: 32.17 kB / 0.6722 GB, free: 1.199 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 7.103e-05/0.3671, allocations: 158.1 kB / 0.6723 GB, free: 1.051 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.022e-05/0.3671, allocations: 50.48 kB / 0.6724 GB, free: 1.008 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.229e-05/0.3672, allocations: 45.11 kB / 0.6724 GB, free: 0.9727 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 4.676e-05/0.3672, allocations: 338.2 kB / 0.6727 GB, free: 0.6406 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001531/0.3674, allocations: 86.52 kB / 0.6728 GB, free: 0.6055 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000168/0.3676, allocations: 136.9 kB / 0.6729 GB, free: 0.5117 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002765/0.3679, allocations: 239.4 kB / 0.6732 GB, free: 360 kB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.3679, allocations: 0 / 0.6732 GB, free: 360 kB / 0.4981 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004403/0.3683, allocations: 342.3 kB / 0.6735 GB, free: 184 kB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.752e-05/0.3684, allocations: 41.75 kB / 0.6735 GB, free: 144 kB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.3684, allocations: 1.156 kB / 0.6735 GB, free: 144 kB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.348e-05/0.3684, allocations: 2.125 kB / 0.6735 GB, free: 144 kB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001147/0.3685, allocations: 21.77 kB / 0.6736 GB, free: 140 kB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.362e-06/0.3685, allocations: 5.156 kB / 0.6736 GB, free: 136 kB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001113/0.3686, allocations: 22.81 kB / 0.6736 GB, free: 124 kB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.721e-05/0.3687, allocations: 9.656 kB / 0.6736 GB, free: 120 kB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 12 (ySet.nextEventScaled,ySet.nextEvent,$PRE.ySet.nextEvent,ySet.last,ySet.b,ySet.a,mot.lowHys.y,$PRE.mot.lowHys.y,mot.uppHys.y,$PRE.mot.uppHys.y,$whenCondition1,mot.int.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001614/0.3688, allocations: 199.1 kB / 0.6738 GB, free: 15.94 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.037e-05/0.3689, allocations: 27.81 kB / 0.6738 GB, free: 15.93 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.274e-05/0.3689, allocations: 32.3 kB / 0.6738 GB, free: 15.91 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-06/0.3689, allocations: 1.781 kB / 0.6738 GB, free: 15.91 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.992e-06/0.369, allocations: 3.938 kB / 0.6738 GB, free: 15.9 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.796e-06/0.369, allocations: 0 / 0.6738 GB, free: 15.9 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002887/0.3693, allocations: 289.1 kB / 0.6741 GB, free: 15.62 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.748e-06/0.3693, allocations: 1.375 kB / 0.6741 GB, free: 15.62 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.874e-05/0.3694, allocations: 23.08 kB / 0.6741 GB, free: 15.61 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.729e-06/0.3694, allocations: 5.109 kB / 0.6741 GB, free: 15.61 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.873e-05/0.3694, allocations: 3.344 kB / 0.6741 GB, free: 15.61 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.3694, allocations: 0 / 0.6741 GB, free: 15.61 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.769e-06/0.3694, allocations: 5.031 kB / 0.6742 GB, free: 15.6 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007553/0.3702, allocations: 472.4 kB / 0.6746 GB, free: 15.35 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 7.521e-05/0.3703, allocations: 98.69 kB / 0.6747 GB, free: 15.24 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.277e-05/0.3703, allocations: 9.062 kB / 0.6747 GB, free: 15.23 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001069/0.3704, allocations: 12.11 kB / 0.6747 GB, free: 15.23 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.51e-05/0.3705, allocations: 29.02 kB / 0.6747 GB, free: 15.21 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.952e-05/0.3706, allocations: 4.688 kB / 0.6748 GB, free: 15.21 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0001956/0.3708, allocations: 202.7 kB / 0.6749 GB, free: 15.08 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.41e-07/0.3708, allocations: 0 / 0.6749 GB, free: 15.08 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.000284/0.371, allocations: 63.28 kB / 0.675 GB, free: 15.07 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (mot.int.y) * Number of discrete variables: 8 ($whenCondition1,mot.uppHys.y,mot.lowHys.y,ySet.a,ySet.b,ySet.last,ySet.nextEvent,ySet.nextEventScaled) * Number of discrete states: 8 (mot.lowHys.y,mot.uppHys.y,ySet.nextEvent,ySet.last,ySet.nextEventScaled,ySet.b,ySet.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001148/0.3722, allocations: 1.029 MB / 0.676 GB, free: 14.28 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0004825/0.3727, allocations: 297.9 kB / 0.6763 GB, free: 14.11 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.3727, allocations: 3.938 kB / 0.6763 GB, free: 14.11 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0002572/0.373, allocations: 181.1 kB / 0.6765 GB, free: 13.99 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003006/0.3733, allocations: 31.64 kB / 0.6765 GB, free: 13.97 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003579/0.3769, allocations: 2.784 MB / 0.6792 GB, free: 12.04 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003961/0.3773, allocations: 0.7449 MB / 0.6799 GB, free: 11.32 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 8.328e-05/0.3774, allocations: 22.59 kB / 0.68 GB, free: 11.3 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001134/0.3775, allocations: 73.7 kB / 0.68 GB, free: 11.24 MB / 0.5137 GB Notification: Performance of SimCode: time 4.61e-07/0.3775, allocations: 0 / 0.68 GB, free: 11.24 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02823/0.4057, allocations: 5.395 MB / 0.6853 GB, free: 8.562 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.715/8.121, allocations: 9.75 kB / 0.6853 GB, free: 8.559 MB / 0.5137 GB (rm -f IDEAS_dev_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Fluid_Actuators_Motors_Examples_IdealMotor_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Fluid_Actuators_Motors_Examples_IdealMotor.fmu > IDEAS_dev_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)