Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001248/0.001248, allocations: 111.4 kB / 16.46 MB, free: 6.504 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001227/0.001227, allocations: 195.8 kB / 19.41 MB, free: 3.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.34/1.34, allocations: 225.6 MB / 247.8 MB, free: 13.93 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002398/0.002398, allocations: 284.9 kB / 303 MB, free: 9.477 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.185/1.185, allocations: 180.9 MB / 0.5261 GB, free: 14.69 MB / 382.1 MB " [Timeout remaining time 179] Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002718/0.002718, allocations: 109 kB / 0.7248 GB, free: 39.9 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1603/0.163, allocations: 94.15 MB / 0.8167 GB, free: 5.422 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003346/0.1664, allocations: 1.954 MB / 0.8186 GB, free: 3.457 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001263/0.1676, allocations: 0.7128 MB / 0.8193 GB, free: 2.738 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.71e-05/0.1677, allocations: 4 kB / 0.8193 GB, free: 2.734 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0002185/0.168, allocations: 83.62 kB / 0.8194 GB, free: 2.652 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0001314/0.1681, allocations: 91.58 kB / 0.8195 GB, free: 2.562 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005404/0.1686, allocations: 189.5 kB / 0.8197 GB, free: 2.379 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0003129/0.1689, allocations: 259.4 kB / 0.8199 GB, free: 2.125 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001574/0.1691, allocations: 61.89 kB / 0.82 GB, free: 2.062 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001442/0.1693, allocations: 115.7 kB / 0.8201 GB, free: 1.949 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002202/0.1695, allocations: 159.5 kB / 0.8202 GB, free: 1.793 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 3.734e-05/0.1695, allocations: 20 kB / 0.8203 GB, free: 1.773 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001441/0.1697, allocations: 91.92 kB / 0.8203 GB, free: 1.684 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 8.521e-05/0.1697, allocations: 63.81 kB / 0.8204 GB, free: 1.621 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0001257/0.1699, allocations: 107.3 kB / 0.8205 GB, free: 1.516 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0003916/0.1703, allocations: 310.7 kB / 0.8208 GB, free: 1.211 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.1703, allocations: 4 kB / 0.8208 GB, free: 1.207 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.854e-06/0.1703, allocations: 0 / 0.8208 GB, free: 1.207 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.441e-06/0.1703, allocations: 0 / 0.8208 GB, free: 1.207 MB / 0.5606 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.0009006/0.1712, allocations: 0.5855 MB / 0.8214 GB, free: 0.5664 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.276e-05/0.1712, allocations: 11.97 kB / 0.8214 GB, free: 0.5547 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.631e-05/0.1713, allocations: 54.73 kB / 0.8214 GB, free: 0.4922 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.517e-05/0.1713, allocations: 28.75 kB / 0.8215 GB, free: 476 kB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005161/0.1718, allocations: 311 kB / 0.8218 GB, free: 124 kB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.534e-05/0.1719, allocations: 20.38 kB / 0.8218 GB, free: 104 kB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.627e-05/0.1719, allocations: 12.38 kB / 0.8218 GB, free: 92 kB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00041/0.1723, allocations: 235.5 kB / 0.822 GB, free: 15.84 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.233e-05/0.1723, allocations: 3.984 kB / 0.822 GB, free: 15.83 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.803e-05/0.1723, allocations: 4 kB / 0.822 GB, free: 15.83 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.045e-06/0.1723, allocations: 4 kB / 0.822 GB, free: 15.82 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002533/0.1726, allocations: 124.4 kB / 0.8222 GB, free: 15.7 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008806/0.1735, allocations: 0.6925 MB / 0.8228 GB, free: 14.95 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003477/0.1738, allocations: 154.5 kB / 0.823 GB, free: 14.79 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001585/0.174, allocations: 88.95 kB / 0.8231 GB, free: 14.7 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 1.239e-05/0.174, allocations: 4.031 kB / 0.8231 GB, free: 14.7 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002785/0.1743, allocations: 165 kB / 0.8232 GB, free: 14.52 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=15): time 1.373e-06/0.1743, allocations: 0 / 0.8232 GB, free: 14.52 MB / 0.5762 GB Notification: Performance of matching and sorting (n=15): time 0.0006702/0.1749, allocations: 371.1 kB / 0.8236 GB, free: 14.14 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.438e-05/0.175, allocations: 140.5 kB / 0.8237 GB, free: 13.98 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002862/0.1753, allocations: 282.7 kB / 0.824 GB, free: 13.69 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 3.667e-05/0.1754, allocations: 29.7 kB / 0.824 GB, free: 13.66 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001165/0.1755, allocations: 156.3 kB / 0.8242 GB, free: 13.5 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 4.591e-05/0.1755, allocations: 47.62 kB / 0.8242 GB, free: 13.45 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.093e-05/0.1756, allocations: 45.66 kB / 0.8242 GB, free: 13.4 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001611/0.1758, allocations: 334.8 kB / 0.8246 GB, free: 13.07 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001779/0.1759, allocations: 95.89 kB / 0.8247 GB, free: 12.97 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001942/0.1761, allocations: 126.2 kB / 0.8248 GB, free: 12.83 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003431/0.1765, allocations: 246.9 kB / 0.825 GB, free: 12.57 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.1765, allocations: 0 / 0.825 GB, free: 12.57 MB / 0.5762 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005264/0.177, allocations: 333.3 kB / 0.8253 GB, free: 12.23 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 4.743e-05/0.1771, allocations: 47.81 kB / 0.8254 GB, free: 12.18 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.08e-06/0.1771, allocations: 0 / 0.8254 GB, free: 12.18 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.7e-05/0.1771, allocations: 4 kB / 0.8254 GB, free: 12.18 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001176/0.1772, allocations: 24.17 kB / 0.8254 GB, free: 12.15 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.081e-05/0.1772, allocations: 11.92 kB / 0.8254 GB, free: 12.14 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001155/0.1773, allocations: 23.88 kB / 0.8254 GB, free: 12.12 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.682e-05/0.1773, allocations: 8 kB / 0.8254 GB, free: 12.11 MB / 0.5762 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.000193/0.1775, allocations: 191.4 kB / 0.8256 GB, free: 11.91 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.145e-05/0.1776, allocations: 27.84 kB / 0.8257 GB, free: 11.88 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.18e-05/0.1776, allocations: 29.84 kB / 0.8257 GB, free: 11.85 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.1776, allocations: 4 kB / 0.8257 GB, free: 11.85 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.676e-06/0.1776, allocations: 3.984 kB / 0.8257 GB, free: 11.84 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.535e-06/0.1776, allocations: 0 / 0.8257 GB, free: 11.84 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000293/0.1779, allocations: 289.4 kB / 0.826 GB, free: 11.51 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.1779, allocations: 3.984 kB / 0.826 GB, free: 11.51 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.693e-05/0.178, allocations: 12 kB / 0.826 GB, free: 11.5 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-06/0.178, allocations: 0 / 0.826 GB, free: 11.5 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.007e-05/0.1781, allocations: 7.984 kB / 0.826 GB, free: 11.49 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.296e-06/0.1781, allocations: 4 kB / 0.826 GB, free: 11.48 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.1781, allocations: 0 / 0.826 GB, free: 11.48 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007334/0.1788, allocations: 481.5 kB / 0.8264 GB, free: 10.99 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 8.588e-05/0.1789, allocations: 104.9 kB / 0.8265 GB, free: 10.87 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.927e-05/0.1789, allocations: 8 kB / 0.8266 GB, free: 10.86 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001024/0.179, allocations: 11.98 kB / 0.8266 GB, free: 10.85 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.74e-05/0.1791, allocations: 19.97 kB / 0.8266 GB, free: 10.83 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.179e-05/0.1791, allocations: 16 kB / 0.8266 GB, free: 10.82 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001997/0.1793, allocations: 201.9 kB / 0.8268 GB, free: 10.62 MB / 0.5762 GB Notification: Performance of sort global known variables: time 6e-08/0.1793, allocations: 0 / 0.8268 GB, free: 10.62 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0002755/0.1796, allocations: 63.81 kB / 0.8269 GB, free: 10.55 MB / 0.5762 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.001109/0.1807, allocations: 1.032 MB / 0.8279 GB, free: 9.488 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0004623/0.1812, allocations: 258.5 kB / 0.8281 GB, free: 9.227 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.1812, allocations: 0 / 0.8281 GB, free: 9.227 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.000211/0.1814, allocations: 155.3 kB / 0.8283 GB, free: 9.062 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000273/0.1816, allocations: 33.17 kB / 0.8283 GB, free: 9.031 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003549/0.1852, allocations: 2.789 MB / 0.831 GB, free: 6.129 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003681/0.1856, allocations: 0.7475 MB / 0.8317 GB, free: 5.355 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 8.037e-05/0.1856, allocations: 21.53 kB / 0.8318 GB, free: 5.336 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001128/0.1857, allocations: 79.41 kB / 0.8318 GB, free: 5.258 MB / 0.5762 GB Notification: Performance of SimCode: time 3.3e-07/0.1857, allocations: 0 / 0.8318 GB, free: 5.258 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0293/0.2151, allocations: 5.421 MB / 0.8371 GB, free: 15.97 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.633/7.848, allocations: 10.42 kB / 0.8371 GB, free: 15.96 MB / 0.5919 GB " [Timeout remaining time 652] (rm -f BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Actuators_Motors_Examples_IdealMotor_fmu --startTime=0 --stopTime=600 --stepSize=0.24 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Actuators_Motors_Examples_IdealMotor.fmu > BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.758402262348682] Failed to read output from testmodel.py, exit status != 0: 7.91882849810645 7.944381401 7.769917043 Calling exit ...