Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="Buildings_8_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="Buildings_8_Buildings_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/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.703/1.703, allocations: 289.8 MB / 297.1 MB, free: 6.609 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001276/0.001276, allocations: 181.3 kB / 366.3 MB, free: 1.945 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.606/1.606, allocations: 205.1 MB / 0.6256 GB, free: 5.789 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001024/0.001024, allocations: 86.48 kB / 0.7395 GB, free: 39.62 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.3153/0.3163, allocations: 122.4 MB / 0.8591 GB, free: 13.22 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8213/1.138, allocations: 116.3 MB / 0.9726 GB, free: 68.01 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1928/1.33, allocations: 141.4 MB / 1.111 GB, free: 6.973 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002659/1.331, allocations: 83.94 kB / 1.111 GB, free: 6.891 MB / 0.7136 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.0175/1.348, allocations: 6.047 MB / 1.117 GB, free: 0.8125 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.855e-05/1.348, allocations: 8 kB / 1.117 GB, free: 0.8047 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.089e-05/1.348, allocations: 27.72 kB / 1.117 GB, free: 0.7773 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005214/1.349, allocations: 302.3 kB / 1.117 GB, free: 452 kB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.291e-05/1.349, allocations: 4 kB / 1.117 GB, free: 448 kB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.943e-05/1.349, allocations: 9.219 kB / 1.117 GB, free: 440 kB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000279/1.349, allocations: 132.2 kB / 1.117 GB, free: 304 kB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003259/1.35, allocations: 215.2 kB / 1.117 GB, free: 64 kB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.178e-05/1.35, allocations: 3.906 kB / 1.117 GB, free: 60 kB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.503e-05/1.35, allocations: 0 / 1.117 GB, free: 60 kB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.835e-06/1.35, allocations: 8 kB / 1.117 GB, free: 52 kB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001136/1.351, allocations: 0.6943 MB / 1.118 GB, free: 15.31 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002472/1.351, allocations: 150.6 kB / 1.118 GB, free: 15.15 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001473/1.351, allocations: 100.9 kB / 1.118 GB, free: 15.05 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 1.997e-05/1.351, allocations: 8.031 kB / 1.118 GB, free: 15.04 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002311/1.352, allocations: 176 kB / 1.118 GB, free: 14.86 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=15): time 1.393e-06/1.352, allocations: 0 / 1.118 GB, free: 14.86 MB / 0.7292 GB Notification: Performance of matching and sorting (n=15): time 0.0004938/1.352, allocations: 231 kB / 1.119 GB, free: 14.62 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.47e-05/1.352, allocations: 132.5 kB / 1.119 GB, free: 14.46 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002172/1.352, allocations: 233 kB / 1.119 GB, free: 14.23 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 3.156e-05/1.352, allocations: 29.7 kB / 1.119 GB, free: 14.2 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 8.092e-05/1.353, allocations: 128.2 kB / 1.119 GB, free: 14.07 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 4.209e-05/1.353, allocations: 35.45 kB / 1.119 GB, free: 14.03 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.653e-05/1.353, allocations: 7.938 kB / 1.119 GB, free: 14.02 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.00013/1.353, allocations: 338.8 kB / 1.12 GB, free: 13.68 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001368/1.353, allocations: 88.16 kB / 1.12 GB, free: 13.59 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000162/1.353, allocations: 140.3 kB / 1.12 GB, free: 13.44 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001812/1.353, allocations: 91.86 kB / 1.12 GB, free: 13.35 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.973e-06/1.353, allocations: 0 / 1.12 GB, free: 13.35 MB / 0.7292 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000392/1.354, allocations: 262.3 kB / 1.12 GB, free: 13.09 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 1.49e-05/1.354, allocations: 4 kB / 1.12 GB, free: 13.09 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.642e-06/1.354, allocations: 4.125 kB / 1.12 GB, free: 13.09 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.913e-05/1.354, allocations: 7.984 kB / 1.12 GB, free: 13.08 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001609/1.354, allocations: 31.92 kB / 1.12 GB, free: 13.05 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.825e-06/1.354, allocations: 4.828 kB / 1.12 GB, free: 13.04 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001815/1.354, allocations: 39.83 kB / 1.12 GB, free: 13 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.764e-05/1.354, allocations: 12 kB / 1.12 GB, free: 12.99 MB / 0.7292 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 ($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.0001579/1.354, allocations: 146.7 kB / 1.12 GB, free: 12.84 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.372e-05/1.354, allocations: 31.56 kB / 1.12 GB, free: 12.8 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.627e-05/1.354, allocations: 29.77 kB / 1.12 GB, free: 12.78 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.516e-06/1.354, allocations: 0 / 1.12 GB, free: 12.78 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/1.354, allocations: 0 / 1.12 GB, free: 12.78 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.099e-06/1.354, allocations: 4 kB / 1.12 GB, free: 12.77 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003219/1.355, allocations: 266.9 kB / 1.121 GB, free: 12.48 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/1.355, allocations: 0 / 1.121 GB, free: 12.48 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001383/1.355, allocations: 19.98 kB / 1.121 GB, free: 12.46 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/1.355, allocations: 0 / 1.121 GB, free: 12.46 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.582e-05/1.355, allocations: 8 kB / 1.121 GB, free: 12.45 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/1.355, allocations: 0 / 1.121 GB, free: 12.45 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.609e-06/1.355, allocations: 4 kB / 1.121 GB, free: 12.45 MB / 0.7292 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007078/1.356, allocations: 412.6 kB / 1.121 GB, free: 12.02 MB / 0.7292 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0008781/1.357, allocations: 0.9059 MB / 1.122 GB, free: 11.1 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 5.84e-05/1.357, allocations: 104.8 kB / 1.122 GB, free: 10.98 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.14e-05/1.357, allocations: 4 kB / 1.122 GB, free: 10.97 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001757/1.357, allocations: 31.97 kB / 1.122 GB, free: 10.94 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.72e-05/1.357, allocations: 28.23 kB / 1.122 GB, free: 10.91 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.699e-05/1.357, allocations: 19.92 kB / 1.122 GB, free: 10.89 MB / 0.7292 GB Notification: Performance of sort global known variables: time 0.0001839/1.357, allocations: 185.2 kB / 1.122 GB, free: 10.72 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0009809/1.358, allocations: 60.62 kB / 1.122 GB, free: 10.66 MB / 0.7292 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 (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.0002514/1.358, allocations: 131.2 kB / 1.122 GB, free: 10.52 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0003149/1.359, allocations: 209.6 kB / 1.123 GB, free: 10.31 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/1.359, allocations: 0 / 1.123 GB, free: 10.31 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0001877/1.359, allocations: 158.2 kB / 1.123 GB, free: 10.15 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002809/1.359, allocations: 22.78 kB / 1.123 GB, free: 10.13 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009295/1.36, allocations: 352.6 kB / 1.123 GB, free: 9.766 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004635/1.361, allocations: 0.7745 MB / 1.124 GB, free: 8.965 MB / 0.7292 GB Notification: Performance of SimCode: time 2.9e-07/1.361, allocations: 0 / 1.124 GB, free: 8.965 MB / 0.7292 GB (rm -f Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.fmu > Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)