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.001232/0.001231, allocations: 104.7 kB / 16.4 MB, free: 6.496 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.001232/0.001233, allocations: 197.2 kB / 17.34 MB, free: 5.762 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.299/1.299, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7024/0.7024, allocations: 115.3 MB / 406.5 MB, free: 6.164 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001289/0.001289, allocations: 59.55 kB / 0.5572 GB, free: 32.64 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1461/0.1474, allocations: 76.19 MB / 0.6316 GB, free: 4.93 MB / 478.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003198/0.1506, allocations: 1.931 MB / 0.6335 GB, free: 2.98 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.001164/0.1518, allocations: 0.7052 MB / 0.6341 GB, free: 2.27 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001008/0.1519, allocations: 7.938 kB / 0.6342 GB, free: 2.262 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002068/0.1521, allocations: 83.62 kB / 0.6342 GB, free: 2.18 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001271/0.1523, allocations: 95.62 kB / 0.6343 GB, free: 2.086 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005273/0.1528, allocations: 182 kB / 0.6345 GB, free: 1.91 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002837/0.1531, allocations: 263.4 kB / 0.6348 GB, free: 1.652 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001652/0.1533, allocations: 76.67 kB / 0.6348 GB, free: 1.582 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000129/0.1534, allocations: 115.7 kB / 0.6349 GB, free: 1.469 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001964/0.1536, allocations: 155.4 kB / 0.6351 GB, free: 1.316 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 3.409e-05/0.1537, allocations: 20 kB / 0.6351 GB, free: 1.297 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001359/0.1538, allocations: 95.92 kB / 0.6352 GB, free: 1.203 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 7.985e-05/0.1539, allocations: 59.77 kB / 0.6353 GB, free: 1.145 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001004/0.154, allocations: 107.3 kB / 0.6354 GB, free: 1.039 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000342/0.1543, allocations: 311.9 kB / 0.6357 GB, free: 0.7344 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.1544, allocations: 0 / 0.6357 GB, free: 0.7344 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.1544, allocations: 0 / 0.6357 GB, free: 0.7344 MB / 478.1 MB Notification: Performance of Transformations before backend: time 6.412e-06/0.1544, allocations: 4 kB / 0.6357 GB, free: 0.7305 MB / 478.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.0008001/0.1552, allocations: 0.5741 MB / 0.6362 GB, free: 104 kB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.486e-05/0.1552, allocations: 11.97 kB / 0.6362 GB, free: 92 kB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.387e-05/0.1553, allocations: 54.73 kB / 0.6363 GB, free: 28 kB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.135e-05/0.1553, allocations: 28.56 kB / 0.6363 GB, free: 0 / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004678/0.1558, allocations: 302.9 kB / 0.6366 GB, free: 15.66 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.305e-05/0.1558, allocations: 12.38 kB / 0.6366 GB, free: 15.65 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.546e-05/0.1559, allocations: 12.38 kB / 0.6366 GB, free: 15.64 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004264/0.1563, allocations: 239.5 kB / 0.6368 GB, free: 15.38 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.325e-06/0.1563, allocations: 0 / 0.6368 GB, free: 15.38 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.117e-05/0.1564, allocations: 7.984 kB / 0.6369 GB, free: 15.38 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.17e-06/0.1564, allocations: 4 kB / 0.6369 GB, free: 15.37 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002399/0.1566, allocations: 128.3 kB / 0.637 GB, free: 15.25 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007972/0.1574, allocations: 0.6807 MB / 0.6376 GB, free: 14.51 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003376/0.1578, allocations: 174.6 kB / 0.6378 GB, free: 14.33 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001514/0.1579, allocations: 92.83 kB / 0.6379 GB, free: 14.23 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.348e-05/0.158, allocations: 0 / 0.6379 GB, free: 14.23 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002623/0.1582, allocations: 173 kB / 0.6381 GB, free: 14.05 MB / 494.1 MB Notification: Performance of pre-optimization done (n=15): time 1.272e-06/0.1582, allocations: 0 / 0.6381 GB, free: 14.05 MB / 494.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006391/0.1589, allocations: 375 kB / 0.6384 GB, free: 13.67 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.974e-05/0.159, allocations: 136.5 kB / 0.6386 GB, free: 13.5 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002706/0.1592, allocations: 278.6 kB / 0.6388 GB, free: 13.22 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.606e-05/0.1593, allocations: 33.7 kB / 0.6389 GB, free: 13.18 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001007/0.1594, allocations: 164.2 kB / 0.639 GB, free: 13.02 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.4e-05/0.1594, allocations: 39.45 kB / 0.639 GB, free: 12.98 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.759e-05/0.1595, allocations: 37.72 kB / 0.6391 GB, free: 12.94 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001263/0.1596, allocations: 346.8 kB / 0.6394 GB, free: 12.59 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001591/0.1598, allocations: 87.89 kB / 0.6395 GB, free: 12.5 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001735/0.16, allocations: 130.4 kB / 0.6396 GB, free: 12.36 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003044/0.1603, allocations: 244.8 kB / 0.6399 GB, free: 12.1 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.1603, allocations: 96 / 0.6399 GB, free: 12.1 MB / 494.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004669/0.1608, allocations: 335.5 kB / 0.6402 GB, free: 11.76 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.916e-05/0.1608, allocations: 37.69 kB / 0.6402 GB, free: 11.71 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.971e-06/0.1608, allocations: 4 kB / 0.6402 GB, free: 11.71 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.356e-05/0.1609, allocations: 96 / 0.6402 GB, free: 11.71 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001196/0.161, allocations: 27.98 kB / 0.6402 GB, free: 11.68 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.901e-06/0.161, allocations: 0 / 0.6402 GB, free: 11.68 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001198/0.1611, allocations: 27.83 kB / 0.6403 GB, free: 11.66 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.555e-05/0.1611, allocations: 4 kB / 0.6403 GB, free: 11.65 MB / 494.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.0001757/0.1613, allocations: 196.6 kB / 0.6405 GB, free: 11.45 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.048e-05/0.1614, allocations: 23.72 kB / 0.6405 GB, free: 11.42 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.111e-05/0.1614, allocations: 37.83 kB / 0.6405 GB, free: 11.38 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.874e-06/0.1614, allocations: 0 / 0.6405 GB, free: 11.38 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.1615, allocations: 0 / 0.6405 GB, free: 11.38 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.046e-06/0.1615, allocations: 0 / 0.6405 GB, free: 11.38 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002432/0.1617, allocations: 297.3 kB / 0.6408 GB, free: 11.04 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.1617, allocations: 0 / 0.6408 GB, free: 11.04 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001023/0.1618, allocations: 15.98 kB / 0.6408 GB, free: 11.02 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.505e-06/0.1618, allocations: 0 / 0.6408 GB, free: 11.02 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.96e-05/0.1619, allocations: 8 kB / 0.6408 GB, free: 11.02 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.1619, allocations: 0 / 0.6408 GB, free: 11.02 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.618e-06/0.1619, allocations: 7.938 kB / 0.6408 GB, free: 11.01 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006812/0.1626, allocations: 468.6 kB / 0.6413 GB, free: 10.53 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.254e-05/0.1626, allocations: 100.8 kB / 0.6414 GB, free: 10.41 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.368e-05/0.1627, allocations: 8 kB / 0.6414 GB, free: 10.4 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001032/0.1628, allocations: 11.98 kB / 0.6414 GB, free: 10.39 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.622e-05/0.1629, allocations: 27.95 kB / 0.6414 GB, free: 10.36 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.021e-05/0.1629, allocations: 12 kB / 0.6414 GB, free: 10.35 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001778/0.1631, allocations: 202 kB / 0.6416 GB, free: 10.16 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1631, allocations: 0 / 0.6416 GB, free: 10.16 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002765/0.1634, allocations: 67.95 kB / 0.6417 GB, free: 10.09 MB / 494.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.001027/0.1644, allocations: 1.018 MB / 0.6427 GB, free: 9.039 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0004533/0.1649, allocations: 301.9 kB / 0.643 GB, free: 8.734 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.1649, allocations: 0 / 0.643 GB, free: 8.734 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002285/0.1651, allocations: 179.5 kB / 0.6431 GB, free: 8.547 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002999/0.1654, allocations: 42.48 kB / 0.6432 GB, free: 8.508 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003462/0.1689, allocations: 2.78 MB / 0.6459 GB, free: 5.617 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003606/0.1693, allocations: 0.7549 MB / 0.6466 GB, free: 4.84 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 8.828e-05/0.1694, allocations: 25.52 kB / 0.6467 GB, free: 4.812 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001123/0.1695, allocations: 71.42 kB / 0.6467 GB, free: 4.742 MB / 494.1 MB Notification: Performance of SimCode: time 2.8e-07/0.1695, allocations: 0 / 0.6467 GB, free: 4.742 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0234/0.1929, allocations: 5.484 MB / 0.6521 GB, free: 15.36 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.461/7.654, allocations: 4.656 kB / 0.6521 GB, free: 15.36 MB / 0.4981 GB (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)