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.0009948/0.0009948, allocations: 97.12 kB / 15.68 MB, free: 488 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.001073/0.001073, allocations: 174.5 kB / 16.56 MB, free: 6.387 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.332/1.332, allocations: 223.2 MB / 240.5 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.6954/0.6954, allocations: 113.7 MB / 405.3 MB, free: 4.68 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003197/0.0003197, allocations: 8 kB / 493 MB, free: 8.594 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1737/0.174, allocations: 77.11 MB / 0.5567 GB, free: 11.68 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002147/0.1762, allocations: 1.596 MB / 0.5583 GB, free: 10.07 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.001029/0.1773, allocations: 0.6472 MB / 0.5589 GB, free: 9.418 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.114e-05/0.1774, allocations: 4 kB / 0.5589 GB, free: 9.414 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001549/0.1776, allocations: 75.7 kB / 0.559 GB, free: 9.34 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001432/0.1777, allocations: 83.86 kB / 0.5591 GB, free: 9.258 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004694/0.1782, allocations: 126.9 kB / 0.5592 GB, free: 9.137 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002379/0.1784, allocations: 159.7 kB / 0.5593 GB, free: 8.98 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001407/0.1786, allocations: 41.94 kB / 0.5594 GB, free: 8.941 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001153/0.1787, allocations: 95.72 kB / 0.5595 GB, free: 8.848 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001622/0.1789, allocations: 115.5 kB / 0.5596 GB, free: 8.734 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 2.057e-05/0.1789, allocations: 4 kB / 0.5596 GB, free: 8.73 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001137/0.179, allocations: 67.94 kB / 0.5597 GB, free: 8.664 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 5.991e-05/0.1791, allocations: 43.83 kB / 0.5597 GB, free: 8.621 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 6.184e-05/0.1792, allocations: 57.58 kB / 0.5597 GB, free: 8.559 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000239/0.1794, allocations: 215.5 kB / 0.56 GB, free: 8.348 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.302e-06/0.1794, allocations: 4 kB / 0.56 GB, free: 8.344 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.086e-06/0.1794, allocations: 3.938 kB / 0.56 GB, free: 8.34 MB / 430.1 MB Notification: Performance of Transformations before backend: time 9.248e-06/0.1794, allocations: 7.938 kB / 0.56 GB, free: 8.332 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.0007991/0.1802, allocations: 0.539 MB / 0.5605 GB, free: 7.738 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.941e-05/0.1803, allocations: 12.03 kB / 0.5605 GB, free: 7.727 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.476e-05/0.1804, allocations: 50.55 kB / 0.5606 GB, free: 7.668 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.157e-05/0.1804, allocations: 27.62 kB / 0.5606 GB, free: 7.641 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004426/0.1809, allocations: 297.6 kB / 0.5609 GB, free: 7.312 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.496e-05/0.1809, allocations: 11.95 kB / 0.5609 GB, free: 7.301 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.266e-05/0.1809, allocations: 20 kB / 0.5609 GB, free: 7.281 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000384/0.1813, allocations: 223.1 kB / 0.5611 GB, free: 7.039 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.907e-06/0.1814, allocations: 0 / 0.5611 GB, free: 7.039 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.068e-05/0.1814, allocations: 4 kB / 0.5611 GB, free: 7.035 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.386e-06/0.1814, allocations: 8 kB / 0.5611 GB, free: 7.027 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002578/0.1817, allocations: 132.4 kB / 0.5612 GB, free: 6.898 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008805/0.1826, allocations: 0.6885 MB / 0.5619 GB, free: 6.152 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003677/0.1829, allocations: 186.6 kB / 0.5621 GB, free: 5.961 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.38e-05/0.183, allocations: 0 / 0.5621 GB, free: 5.961 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003866/0.1834, allocations: 170.8 kB / 0.5623 GB, free: 5.777 MB / 430.1 MB Notification: Performance of pre-optimization done (n=15): time 1.563e-06/0.1834, allocations: 4 kB / 0.5623 GB, free: 5.773 MB / 430.1 MB Notification: Performance of matching and sorting (n=15): time 0.0009188/0.1843, allocations: 464 kB / 0.5627 GB, free: 5.289 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.276e-05/0.1844, allocations: 136.5 kB / 0.5628 GB, free: 5.125 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000351/0.1847, allocations: 282.6 kB / 0.5631 GB, free: 4.844 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 2.863e-05/0.1848, allocations: 29.7 kB / 0.5631 GB, free: 4.809 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001151/0.1849, allocations: 160.2 kB / 0.5633 GB, free: 4.645 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.827e-05/0.185, allocations: 43.39 kB / 0.5633 GB, free: 4.602 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.072e-05/0.185, allocations: 4.094 kB / 0.5633 GB, free: 4.598 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001308/0.1851, allocations: 342.8 kB / 0.5637 GB, free: 4.254 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001536/0.1853, allocations: 88.14 kB / 0.5637 GB, free: 4.168 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001758/0.1855, allocations: 137.4 kB / 0.5639 GB, free: 4.016 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00018/0.1856, allocations: 123.4 kB / 0.564 GB, free: 3.891 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.1857, allocations: 0 / 0.564 GB, free: 3.891 MB / 430.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004622/0.1861, allocations: 341.1 kB / 0.5643 GB, free: 3.547 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.835e-05/0.1862, allocations: 40.03 kB / 0.5644 GB, free: 3.504 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.2e-06/0.1862, allocations: 0 / 0.5644 GB, free: 3.504 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.404e-05/0.1862, allocations: 8.047 kB / 0.5644 GB, free: 3.496 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001275/0.1863, allocations: 23.98 kB / 0.5644 GB, free: 3.473 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.508e-06/0.1864, allocations: 4 kB / 0.5644 GB, free: 3.469 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001176/0.1865, allocations: 31.77 kB / 0.5644 GB, free: 3.438 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.677e-05/0.1865, allocations: 8 kB / 0.5644 GB, free: 3.43 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.0001718/0.1867, allocations: 188.5 kB / 0.5646 GB, free: 3.23 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.286e-05/0.1867, allocations: 27.72 kB / 0.5646 GB, free: 3.203 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.536e-05/0.1868, allocations: 29.83 kB / 0.5647 GB, free: 3.176 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/0.1868, allocations: 3.953 kB / 0.5647 GB, free: 3.172 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.1868, allocations: 4 kB / 0.5647 GB, free: 3.168 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.1868, allocations: 0 / 0.5647 GB, free: 3.168 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002497/0.1871, allocations: 289.5 kB / 0.5649 GB, free: 2.836 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.1871, allocations: 0 / 0.5649 GB, free: 2.836 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.937e-05/0.1872, allocations: 15.98 kB / 0.565 GB, free: 2.82 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.707e-06/0.1872, allocations: 7.938 kB / 0.565 GB, free: 2.812 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.743e-05/0.1872, allocations: 8 kB / 0.565 GB, free: 2.805 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.587e-06/0.1872, allocations: 4 kB / 0.565 GB, free: 2.801 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.1872, allocations: 3.953 kB / 0.565 GB, free: 2.797 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006804/0.1879, allocations: 479.9 kB / 0.5654 GB, free: 2.305 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.635e-05/0.188, allocations: 96.8 kB / 0.5655 GB, free: 2.191 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.926e-05/0.188, allocations: 8 kB / 0.5655 GB, free: 2.184 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001087/0.1882, allocations: 19.98 kB / 0.5656 GB, free: 2.164 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.408e-05/0.1882, allocations: 23.95 kB / 0.5656 GB, free: 2.141 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.376e-05/0.1883, allocations: 15.89 kB / 0.5656 GB, free: 2.125 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001724/0.1885, allocations: 202 kB / 0.5658 GB, free: 1.934 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1885, allocations: 0 / 0.5658 GB, free: 1.934 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002653/0.1887, allocations: 60.06 kB / 0.5658 GB, free: 1.875 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.0009924/0.1897, allocations: 1.037 MB / 0.5669 GB, free: 0.8086 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0004386/0.1902, allocations: 299.6 kB / 0.5671 GB, free: 0.5039 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.1902, allocations: 0 / 0.5671 GB, free: 0.5039 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002207/0.1904, allocations: 195.3 kB / 0.5673 GB, free: 308 kB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002344/0.1907, allocations: 24.55 kB / 0.5674 GB, free: 284 kB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002581/0.1933, allocations: 2.079 MB / 0.5694 GB, free: 14.13 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003477/0.1936, allocations: 0.7564 MB / 0.5701 GB, free: 13.35 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 7.973e-05/0.1937, allocations: 17.55 kB / 0.5701 GB, free: 13.33 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001034/0.1938, allocations: 71.41 kB / 0.5702 GB, free: 13.26 MB / 446.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1938, allocations: 0 / 0.5702 GB, free: 13.26 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01674/0.2106, allocations: 4.856 MB / 0.575 GB, free: 8.559 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002239/0.2108, allocations: 184.9 kB / 0.5751 GB, free: 8.32 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.749/1.96, allocations: 2.625 kB / 0.5751 GB, free: 8.32 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: