Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.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(IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="IBPSA_latest_IBPSA_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.001344/0.001344, allocations: 106.7 kB / 15.98 MB, free: 6.355 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.001652/0.001652, allocations: 191.3 kB / 16.91 MB, free: 6.195 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.292/1.292, allocations: 222.9 MB / 240.6 MB, free: 15.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7104/0.7104, allocations: 115.3 MB / 406.1 MB, free: 6.344 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001461/0.001461, allocations: 63.91 kB / 493.2 MB, free: 0.6016 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3701/0.3715, allocations: 76.18 MB / 0.556 GB, free: 36.45 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002759/0.3743, allocations: 1.991 MB / 0.558 GB, free: 35.08 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009382/0.3753, allocations: 0.6917 MB / 0.5586 GB, free: 34.61 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.319e-05/0.3754, allocations: 2.656 kB / 0.5586 GB, free: 34.61 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002138/0.3756, allocations: 86.73 kB / 0.5587 GB, free: 34.58 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001146/0.3757, allocations: 78.12 kB / 0.5588 GB, free: 34.57 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004647/0.3762, allocations: 172.8 kB / 0.559 GB, free: 34.48 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002682/0.3765, allocations: 262.4 kB / 0.5592 GB, free: 34.36 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001627/0.3767, allocations: 76.44 kB / 0.5593 GB, free: 34.33 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00012/0.3768, allocations: 119.7 kB / 0.5594 GB, free: 34.28 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001749/0.377, allocations: 148 kB / 0.5595 GB, free: 34.23 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 3.465e-05/0.377, allocations: 20.66 kB / 0.5596 GB, free: 34.23 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001314/0.3771, allocations: 92.3 kB / 0.5596 GB, free: 34.21 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 6.87e-05/0.3772, allocations: 62.98 kB / 0.5597 GB, free: 34.18 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 8.223e-05/0.3773, allocations: 112.1 kB / 0.5598 GB, free: 34.1 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003087/0.3776, allocations: 300.5 kB / 0.5601 GB, free: 33.98 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.3776, allocations: 2.047 kB / 0.5601 GB, free: 33.98 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.3776, allocations: 0 / 0.5601 GB, free: 33.98 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.439e-05/0.3777, allocations: 0 / 0.5601 GB, free: 33.98 MB / 446.1 MB 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.0007183/0.3784, allocations: 0.5734 MB / 0.5607 GB, free: 33.47 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.739e-05/0.3784, allocations: 9.094 kB / 0.5607 GB, free: 33.47 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.416e-05/0.3785, allocations: 52.38 kB / 0.5607 GB, free: 33.42 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.737e-05/0.3785, allocations: 31.78 kB / 0.5608 GB, free: 33.41 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003671/0.3789, allocations: 299 kB / 0.561 GB, free: 33.15 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.152e-05/0.3789, allocations: 15.34 kB / 0.5611 GB, free: 33.14 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.017e-05/0.379, allocations: 14.56 kB / 0.5611 GB, free: 33.14 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003541/0.3793, allocations: 238.2 kB / 0.5613 GB, free: 33 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.296e-06/0.3794, allocations: 0 / 0.5613 GB, free: 33 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.888e-05/0.3794, allocations: 7.469 kB / 0.5613 GB, free: 33 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.771e-06/0.3794, allocations: 2.375 kB / 0.5613 GB, free: 33 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002268/0.3796, allocations: 128.7 kB / 0.5614 GB, free: 32.96 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007167/0.3804, allocations: 0.6841 MB / 0.5621 GB, free: 32.41 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003312/0.3807, allocations: 166.3 kB / 0.5623 GB, free: 32.34 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001526/0.3809, allocations: 102 kB / 0.5623 GB, free: 32.3 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.269e-05/0.3809, allocations: 1.469 kB / 0.5623 GB, free: 32.3 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002955/0.3812, allocations: 173.5 kB / 0.5625 GB, free: 32.2 MB / 446.1 MB Notification: Performance of pre-optimization done (n=15): time 1.392e-06/0.3812, allocations: 1.125 kB / 0.5625 GB, free: 32.2 MB / 446.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006294/0.3818, allocations: 373.8 kB / 0.5629 GB, free: 32.05 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.193e-05/0.3819, allocations: 139.2 kB / 0.563 GB, free: 31.89 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002449/0.3821, allocations: 279.4 kB / 0.5633 GB, free: 31.75 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 2.094e-05/0.3822, allocations: 32.58 kB / 0.5633 GB, free: 31.71 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.47e-05/0.3823, allocations: 151.3 kB / 0.5634 GB, free: 31.58 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.722e-05/0.3823, allocations: 50.47 kB / 0.5635 GB, free: 31.54 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.617e-05/0.3824, allocations: 41.11 kB / 0.5635 GB, free: 31.51 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.251e-05/0.3824, allocations: 339 kB / 0.5639 GB, free: 31.19 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001555/0.3826, allocations: 90.77 kB / 0.5639 GB, free: 31.16 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001718/0.3828, allocations: 141 kB / 0.5641 GB, free: 31.08 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002919/0.3831, allocations: 241.3 kB / 0.5643 GB, free: 30.94 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.3831, allocations: 0 / 0.5643 GB, free: 30.94 MB / 446.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004571/0.3836, allocations: 332.6 kB / 0.5646 GB, free: 30.8 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.207e-05/0.3836, allocations: 43.09 kB / 0.5647 GB, free: 30.77 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.561e-06/0.3836, allocations: 1.031 kB / 0.5647 GB, free: 30.77 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.383e-05/0.3836, allocations: 2.094 kB / 0.5647 GB, free: 30.77 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001181/0.3837, allocations: 25.5 kB / 0.5647 GB, free: 30.76 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.753e-06/0.3838, allocations: 2.562 kB / 0.5647 GB, free: 30.76 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001164/0.3839, allocations: 27.69 kB / 0.5647 GB, free: 30.75 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.63e-05/0.3839, allocations: 6.812 kB / 0.5647 GB, free: 30.75 MB / 446.1 MB 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.0001431/0.3841, allocations: 196.5 kB / 0.5649 GB, free: 30.58 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.86e-05/0.3841, allocations: 25.91 kB / 0.5649 GB, free: 30.57 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.078e-05/0.3842, allocations: 31.39 kB / 0.565 GB, free: 30.55 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.955e-06/0.3842, allocations: 2.469 kB / 0.565 GB, free: 30.55 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.3842, allocations: 1.75 kB / 0.565 GB, free: 30.55 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.497e-06/0.3842, allocations: 0.7031 kB / 0.565 GB, free: 30.55 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002331/0.3844, allocations: 293.5 kB / 0.5653 GB, free: 30.31 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.3844, allocations: 3.938 kB / 0.5653 GB, free: 30.31 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001011/0.3845, allocations: 15.42 kB / 0.5653 GB, free: 30.31 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.735e-06/0.3845, allocations: 1.625 kB / 0.5653 GB, free: 30.31 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.892e-05/0.3846, allocations: 5.156 kB / 0.5653 GB, free: 30.31 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.768e-06/0.3846, allocations: 5.438 kB / 0.5653 GB, free: 30.3 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.3846, allocations: 1.391 kB / 0.5653 GB, free: 30.3 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007199/0.3853, allocations: 471.9 kB / 0.5657 GB, free: 30.09 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.616e-05/0.3854, allocations: 97.91 kB / 0.5658 GB, free: 29.99 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.338e-05/0.3854, allocations: 8.625 kB / 0.5658 GB, free: 29.98 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001069/0.3855, allocations: 13.08 kB / 0.5659 GB, free: 29.98 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.766e-05/0.3856, allocations: 24.69 kB / 0.5659 GB, free: 29.98 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.374e-05/0.3856, allocations: 8.75 kB / 0.5659 GB, free: 29.98 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001738/0.3858, allocations: 203.8 kB / 0.5661 GB, free: 29.87 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3858, allocations: 1.875 kB / 0.5661 GB, free: 29.87 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002923/0.3861, allocations: 60.8 kB / 0.5661 GB, free: 29.86 MB / 446.1 MB 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.0009388/0.3871, allocations: 1.031 MB / 0.5671 GB, free: 29.11 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0004636/0.3875, allocations: 295.2 kB / 0.5674 GB, free: 28.98 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.3876, allocations: 0 / 0.5674 GB, free: 28.98 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002295/0.3878, allocations: 185 kB / 0.5676 GB, free: 28.87 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003042/0.3881, allocations: 34.67 kB / 0.5676 GB, free: 28.86 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003619/0.3917, allocations: 2.828 MB / 0.5704 GB, free: 27.08 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002504/0.392, allocations: 0.7536 MB / 0.5711 GB, free: 26.38 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0001138/0.3921, allocations: 17.95 kB / 0.5712 GB, free: 26.38 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001123/0.3922, allocations: 71.88 kB / 0.5712 GB, free: 26.32 MB / 446.1 MB Notification: Performance of SimCode: time 6.41e-07/0.3922, allocations: 1.125 kB / 0.5712 GB, free: 26.32 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01887/0.4111, allocations: 5.098 MB / 0.5762 GB, free: 25.88 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001631/0.4113, allocations: 198.6 kB / 0.5764 GB, free: 25.62 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.741/2.153, allocations: 2.734 kB / 0.5764 GB, free: 25.62 MB / 446.1 MB (rm -f IBPSA_latest_IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Fluid_Actuators_Motors_Examples_IdealMotor_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Fluid_Actuators_Motors_Examples_IdealMotor.fmu > IBPSA_latest_IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)