Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="Buildings_maint_7_0_x_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 7.0.3-maint.7.0.x/package.mo): time 1.251/1.251, allocations: 249.4 MB / 256.7 MB, free: 7.035 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001128/0.001128, allocations: 181.2 kB / 316 MB, free: 3.531 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.239/1.239, allocations: 205.2 MB / 0.5667 GB, free: 15.69 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000834/0.0008341, allocations: 100.2 kB / 0.671 GB, free: 4.809 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.3837/0.3845, allocations: 112.5 MB / 0.7808 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1781/0.5627, allocations: 106.3 MB / 0.8847 GB, free: 12.55 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.501/1.064, allocations: 135.1 MB / 1.017 GB, free: 3.402 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000214/1.064, allocations: 77.02 kB / 1.017 GB, free: 3.359 MB / 0.6355 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.01665/1.081, allocations: 6.054 MB / 1.023 GB, free: 14.17 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 3.304e-05/1.081, allocations: 8.75 kB / 1.023 GB, free: 14.16 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.302e-05/1.081, allocations: 31.62 kB / 1.023 GB, free: 14.13 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004769/1.081, allocations: 294 kB / 1.023 GB, free: 13.83 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.106e-05/1.081, allocations: 7.562 kB / 1.023 GB, free: 13.83 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.012e-05/1.081, allocations: 8 kB / 1.023 GB, free: 13.82 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002249/1.082, allocations: 129.7 kB / 1.023 GB, free: 13.73 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003087/1.082, allocations: 237.5 kB / 1.023 GB, free: 13.51 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.025e-06/1.082, allocations: 0 / 1.023 GB, free: 13.51 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.282e-05/1.082, allocations: 3.938 kB / 1.023 GB, free: 13.51 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.404e-06/1.082, allocations: 4 kB / 1.023 GB, free: 13.5 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008941/1.083, allocations: 0.6986 MB / 1.024 GB, free: 12.86 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002037/1.083, allocations: 154.2 kB / 1.024 GB, free: 12.74 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000127/1.083, allocations: 104 kB / 1.024 GB, free: 12.66 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 1.514e-05/1.083, allocations: 4 kB / 1.024 GB, free: 12.66 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001989/1.083, allocations: 172.6 kB / 1.024 GB, free: 12.5 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=15): time 1.253e-06/1.083, allocations: 0 / 1.024 GB, free: 12.5 MB / 0.6511 GB Notification: Performance of matching and sorting (n=15): time 0.0004055/1.084, allocations: 239.7 kB / 1.025 GB, free: 12.3 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.034e-05/1.084, allocations: 132.5 kB / 1.025 GB, free: 12.14 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000204/1.084, allocations: 219.4 kB / 1.025 GB, free: 11.95 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 2.828e-05/1.084, allocations: 32.83 kB / 1.025 GB, free: 11.91 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 7.259e-05/1.084, allocations: 126.5 kB / 1.025 GB, free: 11.8 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 4.289e-05/1.084, allocations: 42.86 kB / 1.025 GB, free: 11.76 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.204e-05/1.084, allocations: 4 kB / 1.025 GB, free: 11.76 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001454/1.084, allocations: 329.8 kB / 1.025 GB, free: 11.43 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001252/1.085, allocations: 96.53 kB / 1.026 GB, free: 11.36 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001517/1.085, allocations: 134.7 kB / 1.026 GB, free: 11.25 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001388/1.085, allocations: 86.69 kB / 1.026 GB, free: 11.18 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/1.085, allocations: 0 / 1.026 GB, free: 11.18 MB / 0.6511 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003746/1.085, allocations: 274.3 kB / 1.026 GB, free: 10.95 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.106e-05/1.085, allocations: 4 kB / 1.026 GB, free: 10.95 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.102e-06/1.085, allocations: 4 kB / 1.026 GB, free: 10.95 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.088e-05/1.085, allocations: 4 kB / 1.026 GB, free: 10.94 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001495/1.085, allocations: 27.98 kB / 1.026 GB, free: 10.91 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.989e-06/1.085, allocations: 0 / 1.026 GB, free: 10.91 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001815/1.086, allocations: 47.84 kB / 1.026 GB, free: 10.87 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.156e-05/1.086, allocations: 11.31 kB / 1.026 GB, free: 10.86 MB / 0.6511 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.0001133/1.086, allocations: 152.8 kB / 1.026 GB, free: 10.7 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.737e-05/1.086, allocations: 23.72 kB / 1.026 GB, free: 10.68 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.714e-05/1.086, allocations: 24.09 kB / 1.026 GB, free: 10.66 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.377e-06/1.086, allocations: 3.984 kB / 1.026 GB, free: 10.66 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.888e-06/1.086, allocations: 0 / 1.026 GB, free: 10.66 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.966e-06/1.086, allocations: 4 kB / 1.026 GB, free: 10.66 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002124/1.086, allocations: 267.3 kB / 1.027 GB, free: 10.4 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.61e-07/1.086, allocations: 0 / 1.027 GB, free: 10.4 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001265/1.086, allocations: 20 kB / 1.027 GB, free: 10.38 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.978e-06/1.086, allocations: 3.984 kB / 1.027 GB, free: 10.38 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.151e-05/1.086, allocations: 4 kB / 1.027 GB, free: 10.37 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.133e-06/1.086, allocations: 0 / 1.027 GB, free: 10.37 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/1.086, allocations: 4 kB / 1.027 GB, free: 10.37 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005253/1.087, allocations: 417.1 kB / 1.027 GB, free: 10.04 MB / 0.6511 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0007774/1.088, allocations: 0.9085 MB / 1.028 GB, free: 9.238 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 5.549e-05/1.088, allocations: 100.8 kB / 1.028 GB, free: 9.121 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.019e-05/1.088, allocations: 11.09 kB / 1.028 GB, free: 9.113 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001686/1.088, allocations: 32.03 kB / 1.028 GB, free: 9.082 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.562e-05/1.088, allocations: 27.83 kB / 1.028 GB, free: 9.059 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.289e-05/1.088, allocations: 8 kB / 1.028 GB, free: 9.051 MB / 0.6511 GB Notification: Performance of sort global known variables: time 0.0001388/1.088, allocations: 183.3 kB / 1.028 GB, free: 8.902 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.00083/1.089, allocations: 63.95 kB / 1.028 GB, free: 8.84 MB / 0.6511 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.0002057/1.089, allocations: 140 kB / 1.028 GB, free: 8.695 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0002835/1.09, allocations: 206.8 kB / 1.029 GB, free: 8.539 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/1.09, allocations: 3.562 kB / 1.029 GB, free: 8.539 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0001428/1.09, allocations: 148.9 kB / 1.029 GB, free: 8.43 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002164/1.09, allocations: 20.11 kB / 1.029 GB, free: 8.414 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008008/1.091, allocations: 349.1 kB / 1.029 GB, free: 8.09 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00041/1.091, allocations: 0.7782 MB / 1.03 GB, free: 7.289 MB / 0.6511 GB Notification: Performance of SimCode: time 2e-07/1.091, allocations: 0 / 1.03 GB, free: 7.289 MB / 0.6511 GB (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.fmu > Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)