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/Complex 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) 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/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) 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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001661/0.001661, allocations: 188.9 kB / 7.801 MB, free: 2.5 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.4634/0.4634, allocations: 90.85 MB / 99.07 MB, free: 14.95 MB / 90.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.265/1.265, allocations: 221.4 MB / 342.8 MB, free: 5.277 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001043/0.001043, allocations: 94.89 kB / 415.5 MB, free: 6.441 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1712/0.1723, allocations: 78.46 MB / 494 MB, free: 7.988 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3633/0.5356, allocations: 72.29 MB / 0.553 GB, free: 73.34 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1186/0.6543, allocations: 103.8 MB / 0.6544 GB, free: 6.188 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002186/0.6546, allocations: 87.92 kB / 0.6545 GB, free: 6.102 MB / 474.7 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.01784/0.6725, allocations: 6.122 MB / 0.6604 GB, free: 15.99 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.253e-05/0.6725, allocations: 11.98 kB / 0.6604 GB, free: 15.98 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001147/0.6726, allocations: 31.62 kB / 0.6605 GB, free: 15.95 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006041/0.6733, allocations: 294.3 kB / 0.6608 GB, free: 15.62 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.839e-05/0.6733, allocations: 8 kB / 0.6608 GB, free: 15.61 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.76e-05/0.6733, allocations: 8 kB / 0.6608 GB, free: 15.6 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002679/0.6736, allocations: 128.2 kB / 0.6609 GB, free: 15.47 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003406/0.674, allocations: 215.2 kB / 0.6611 GB, free: 15.24 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.17e-05/0.674, allocations: 0 / 0.6611 GB, free: 15.24 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.38e-05/0.674, allocations: 3.938 kB / 0.6611 GB, free: 15.23 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.183e-05/0.674, allocations: 8 kB / 0.6611 GB, free: 15.23 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001115/0.6752, allocations: 0.6943 MB / 0.6618 GB, free: 14.49 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002371/0.6754, allocations: 150.6 kB / 0.6619 GB, free: 14.33 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001594/0.6756, allocations: 101 kB / 0.662 GB, free: 14.23 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.007e-05/0.6756, allocations: 4.031 kB / 0.662 GB, free: 14.23 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002366/0.6759, allocations: 185 kB / 0.6622 GB, free: 14.03 MB / 490.7 MB Notification: Performance of pre-optimization done (n=15): time 2.645e-06/0.6759, allocations: 0 / 0.6622 GB, free: 14.03 MB / 490.7 MB Notification: Performance of matching and sorting (n=15): time 0.0005383/0.6764, allocations: 225.3 kB / 0.6624 GB, free: 13.8 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.222e-05/0.6765, allocations: 136.5 kB / 0.6626 GB, free: 13.64 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002651/0.6768, allocations: 229.1 kB / 0.6628 GB, free: 13.41 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 3.51e-05/0.6768, allocations: 29.7 kB / 0.6628 GB, free: 13.38 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.64e-05/0.6769, allocations: 128.2 kB / 0.6629 GB, free: 13.25 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.99e-05/0.677, allocations: 43.39 kB / 0.663 GB, free: 13.21 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.319e-05/0.677, allocations: 0 / 0.663 GB, free: 13.21 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001726/0.6772, allocations: 338.7 kB / 0.6633 GB, free: 12.87 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000203/0.6774, allocations: 92.16 kB / 0.6634 GB, free: 12.77 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001698/0.6776, allocations: 137.5 kB / 0.6635 GB, free: 12.62 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001718/0.6778, allocations: 86.66 kB / 0.6636 GB, free: 12.54 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.484e-06/0.6778, allocations: 4 kB / 0.6636 GB, free: 12.54 MB / 490.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004266/0.6782, allocations: 261.2 kB / 0.6638 GB, free: 12.27 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.739e-05/0.6782, allocations: 7.906 kB / 0.6638 GB, free: 12.27 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.081e-06/0.6782, allocations: 4.125 kB / 0.6639 GB, free: 12.26 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.708e-05/0.6783, allocations: 7.984 kB / 0.6639 GB, free: 12.25 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001593/0.6784, allocations: 27.92 kB / 0.6639 GB, free: 12.23 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.678e-06/0.6785, allocations: 4 kB / 0.6639 GB, free: 12.22 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001934/0.6787, allocations: 45.19 kB / 0.6639 GB, free: 12.18 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.938e-05/0.6787, allocations: 8 kB / 0.6639 GB, free: 12.17 MB / 490.7 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 () * 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.0001318/0.6788, allocations: 146.6 kB / 0.6641 GB, free: 12.02 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.645e-05/0.6789, allocations: 23.72 kB / 0.6641 GB, free: 11.99 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.103e-05/0.679, allocations: 33.77 kB / 0.6641 GB, free: 11.96 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.056e-06/0.679, allocations: 0 / 0.6641 GB, free: 11.96 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.63e-06/0.679, allocations: 0 / 0.6641 GB, free: 11.96 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.329e-06/0.679, allocations: 0 / 0.6641 GB, free: 11.96 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002653/0.6793, allocations: 266 kB / 0.6644 GB, free: 11.66 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.6793, allocations: 0 / 0.6644 GB, free: 11.66 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001463/0.6794, allocations: 27.98 kB / 0.6644 GB, free: 11.64 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.31e-06/0.6794, allocations: 0 / 0.6644 GB, free: 11.64 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.251e-05/0.6795, allocations: 15.92 kB / 0.6644 GB, free: 11.62 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.575e-06/0.6795, allocations: 2.625 kB / 0.6644 GB, free: 11.62 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.158e-06/0.6795, allocations: 0 / 0.6644 GB, free: 11.62 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006616/0.6802, allocations: 415.9 kB / 0.6648 GB, free: 11.2 MB / 490.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0008819/0.6811, allocations: 0.8995 MB / 0.6657 GB, free: 10.28 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.008e-05/0.6811, allocations: 100.9 kB / 0.6658 GB, free: 10.16 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.617e-05/0.6812, allocations: 8 kB / 0.6658 GB, free: 10.16 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001814/0.6814, allocations: 35.89 kB / 0.6658 GB, free: 10.12 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.581e-05/0.6815, allocations: 32.22 kB / 0.6659 GB, free: 10.09 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.827e-05/0.6815, allocations: 8 kB / 0.6659 GB, free: 10.08 MB / 490.7 MB Notification: Performance of sort global known variables: time 0.0001569/0.6817, allocations: 181.2 kB / 0.6661 GB, free: 9.902 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0008638/0.6826, allocations: 63.97 kB / 0.6661 GB, free: 9.84 MB / 490.7 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 (ySet.nextEvent,ySet.last,ySet.nextEventScaled,ySet.b,ySet.a,$whenCondition1,mot.lowHys.y,mot.uppHys.y) * 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.000275/0.6828, allocations: 135.2 kB / 0.6662 GB, free: 9.695 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0003423/0.6832, allocations: 221.5 kB / 0.6665 GB, free: 9.473 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.6832, allocations: 4 kB / 0.6665 GB, free: 9.469 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001796/0.6834, allocations: 141.6 kB / 0.6666 GB, free: 9.324 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002789/0.6837, allocations: 22.52 kB / 0.6666 GB, free: 9.305 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000943/0.6846, allocations: 346.7 kB / 0.667 GB, free: 8.949 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004276/0.6851, allocations: 0.7745 MB / 0.6677 GB, free: 8.148 MB / 490.7 MB Notification: Performance of SimCode: time 6.11e-07/0.6851, allocations: 0 / 0.6677 GB, free: 8.148 MB / 490.7 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)