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.0006726/0.0006726, allocations: 92.86 kB / 15.7 MB, free: 472 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0007892/0.0007892, allocations: 169.9 kB / 16.58 MB, free: 5.688 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.256/1.256, allocations: 223.3 MB / 240.6 MB, free: 5.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.6241/0.6241, allocations: 113.7 MB / 405.4 MB, free: 4.562 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002721/0.0002721, allocations: 12.95 kB / 493.1 MB, free: 8.559 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1185/0.1188, allocations: 77.12 MB / 0.5569 GB, free: 11.64 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.001877/0.1207, allocations: 1.596 MB / 0.5585 GB, free: 10.03 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.001027/0.1218, allocations: 0.6589 MB / 0.5591 GB, free: 9.367 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001129/0.1219, allocations: 3.938 kB / 0.5591 GB, free: 9.363 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001832/0.1221, allocations: 71.77 kB / 0.5592 GB, free: 9.293 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000118/0.1222, allocations: 83.69 kB / 0.5593 GB, free: 9.211 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004705/0.1227, allocations: 131.8 kB / 0.5594 GB, free: 9.082 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002567/0.123, allocations: 215.5 kB / 0.5596 GB, free: 8.871 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001298/0.1231, allocations: 53.92 kB / 0.5596 GB, free: 8.82 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001303/0.1233, allocations: 87.67 kB / 0.5597 GB, free: 8.734 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001606/0.1234, allocations: 119.5 kB / 0.5598 GB, free: 8.617 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 2.433e-05/0.1235, allocations: 4 kB / 0.5598 GB, free: 8.613 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001149/0.1236, allocations: 67.94 kB / 0.5599 GB, free: 8.547 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 5.446e-05/0.1236, allocations: 39.83 kB / 0.5599 GB, free: 8.508 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 5.54e-05/0.1237, allocations: 69.58 kB / 0.56 GB, free: 8.434 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000221/0.1239, allocations: 211.5 kB / 0.5602 GB, free: 8.227 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.1239, allocations: 0 / 0.5602 GB, free: 8.227 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1239, allocations: 4 kB / 0.5602 GB, free: 8.223 MB / 430.1 MB Notification: Performance of Transformations before backend: time 6.171e-06/0.124, allocations: 0 / 0.5602 GB, free: 8.223 MB / 430.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.0006944/0.1247, allocations: 0.5468 MB / 0.5607 GB, free: 7.621 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.371e-05/0.1247, allocations: 11.97 kB / 0.5608 GB, free: 7.609 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.247e-05/0.1248, allocations: 50.55 kB / 0.5608 GB, free: 7.551 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.249e-05/0.1248, allocations: 31.56 kB / 0.5608 GB, free: 7.52 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000382/0.1252, allocations: 301.6 kB / 0.5611 GB, free: 7.188 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.645e-05/0.1252, allocations: 11.95 kB / 0.5611 GB, free: 7.176 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.72e-05/0.1253, allocations: 16 kB / 0.5612 GB, free: 7.16 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003427/0.1256, allocations: 227.2 kB / 0.5614 GB, free: 6.914 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.755e-06/0.1256, allocations: 0 / 0.5614 GB, free: 6.914 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.909e-05/0.1257, allocations: 8 kB / 0.5614 GB, free: 6.906 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.949e-06/0.1257, allocations: 3.938 kB / 0.5614 GB, free: 6.902 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002236/0.1259, allocations: 132.4 kB / 0.5615 GB, free: 6.773 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007236/0.1266, allocations: 0.6885 MB / 0.5622 GB, free: 6.027 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003161/0.127, allocations: 186.5 kB / 0.5624 GB, free: 5.836 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001573/0.1271, allocations: 104.8 kB / 0.5625 GB, free: 5.73 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.466e-05/0.1272, allocations: 0 / 0.5625 GB, free: 5.73 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002762/0.1274, allocations: 173.1 kB / 0.5626 GB, free: 5.543 MB / 430.1 MB Notification: Performance of pre-optimization done (n=15): time 1.313e-06/0.1274, allocations: 0 / 0.5626 GB, free: 5.543 MB / 430.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005947/0.128, allocations: 384.7 kB / 0.563 GB, free: 5.156 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.332e-05/0.1281, allocations: 136.5 kB / 0.5631 GB, free: 4.992 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002404/0.1284, allocations: 286.6 kB / 0.5634 GB, free: 4.707 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 2.283e-05/0.1284, allocations: 29.7 kB / 0.5634 GB, free: 4.672 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001034/0.1285, allocations: 156.2 kB / 0.5636 GB, free: 4.512 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.369e-05/0.1286, allocations: 43.45 kB / 0.5636 GB, free: 4.469 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.065e-05/0.1286, allocations: 4 kB / 0.5636 GB, free: 4.465 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001044/0.1287, allocations: 338.8 kB / 0.5639 GB, free: 4.125 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001508/0.1288, allocations: 88.14 kB / 0.564 GB, free: 4.039 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001755/0.129, allocations: 140.2 kB / 0.5642 GB, free: 3.887 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001567/0.1292, allocations: 121.6 kB / 0.5643 GB, free: 3.762 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.1292, allocations: 0 / 0.5643 GB, free: 3.762 MB / 430.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004422/0.1296, allocations: 344.8 kB / 0.5646 GB, free: 3.414 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.459e-05/0.1297, allocations: 33.7 kB / 0.5646 GB, free: 3.375 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.772e-06/0.1297, allocations: 7.953 kB / 0.5646 GB, free: 3.367 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.182e-05/0.1297, allocations: 0 / 0.5646 GB, free: 3.367 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001124/0.1298, allocations: 23.98 kB / 0.5647 GB, free: 3.344 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.028e-05/0.1299, allocations: 12.08 kB / 0.5647 GB, free: 3.332 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001096/0.13, allocations: 23.83 kB / 0.5647 GB, free: 3.309 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.951e-05/0.13, allocations: 16 kB / 0.5647 GB, free: 3.293 MB / 430.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 ($whenCondition1,$PRE.mot.uppHys.y,mot.uppHys.y,$PRE.mot.lowHys.y,mot.lowHys.y,ySet.a,ySet.b,ySet.last,$PRE.ySet.nextEvent,ySet.nextEvent,ySet.nextEventScaled,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001632/0.1302, allocations: 188.1 kB / 0.5649 GB, free: 3.094 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.337e-05/0.1302, allocations: 27.72 kB / 0.5649 GB, free: 3.066 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.929e-05/0.1303, allocations: 29.83 kB / 0.5649 GB, free: 3.039 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.357e-06/0.1303, allocations: 7.953 kB / 0.565 GB, free: 3.031 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.1303, allocations: 0 / 0.565 GB, free: 3.031 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.935e-06/0.1303, allocations: 0 / 0.565 GB, free: 3.031 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002345/0.1305, allocations: 289.5 kB / 0.5652 GB, free: 2.699 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-06/0.1305, allocations: 0 / 0.5652 GB, free: 2.699 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.62e-05/0.1306, allocations: 15.98 kB / 0.5652 GB, free: 2.684 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.726e-06/0.1307, allocations: 0 / 0.5652 GB, free: 2.684 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.762e-05/0.1307, allocations: 4 kB / 0.5652 GB, free: 2.68 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.637e-06/0.1307, allocations: 3.938 kB / 0.5653 GB, free: 2.676 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/0.1307, allocations: 7.938 kB / 0.5653 GB, free: 2.668 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006673/0.1314, allocations: 483.1 kB / 0.5657 GB, free: 2.172 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.485e-05/0.1314, allocations: 96.86 kB / 0.5658 GB, free: 2.059 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.081e-05/0.1315, allocations: 16.05 kB / 0.5658 GB, free: 2.043 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.636e-05/0.1316, allocations: 12 kB / 0.5658 GB, free: 2.031 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.204e-05/0.1317, allocations: 31.89 kB / 0.5659 GB, free: 2 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.085e-05/0.1317, allocations: 8 kB / 0.5659 GB, free: 1.992 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001752/0.1319, allocations: 201.9 kB / 0.5661 GB, free: 1.801 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1319, allocations: 7.875 kB / 0.5661 GB, free: 1.793 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002664/0.1321, allocations: 60.06 kB / 0.5661 GB, free: 1.734 MB / 430.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001078/0.1332, allocations: 1.042 MB / 0.5672 GB, free: 0.6641 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0004575/0.1337, allocations: 303.2 kB / 0.5674 GB, free: 364 kB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.1337, allocations: 0 / 0.5674 GB, free: 364 kB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000226/0.1339, allocations: 187.6 kB / 0.5676 GB, free: 164 kB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002856/0.1342, allocations: 36.5 kB / 0.5677 GB, free: 128 kB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002726/0.137, allocations: 1.647 MB / 0.5693 GB, free: 14.41 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003439/0.1373, allocations: 0.7557 MB / 0.57 GB, free: 13.63 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0001004/0.1374, allocations: 25.53 kB / 0.57 GB, free: 13.61 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001049/0.1376, allocations: 71.41 kB / 0.5701 GB, free: 13.54 MB / 446.1 MB Notification: Performance of SimCode: time 9.62e-07/0.1376, allocations: 0 / 0.5701 GB, free: 13.54 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01577/0.1533, allocations: 4.869 MB / 0.5748 GB, free: 8.84 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001614/0.1536, allocations: 180.6 kB / 0.575 GB, free: 8.602 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.575/1.728, allocations: 4.062 kB / 0.575 GB, free: 8.598 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/linux/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) Environment - environmentSimulation: