Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="Buildings_9_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 1.954/1.954, allocations: 387.3 MB / 394.5 MB, free: 13.34 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001212/0.001212, allocations: 178.8 kB / 487 MB, free: 0.7383 MB / 378.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.499/1.499, allocations: 221.3 MB / 0.7819 GB, free: 6.84 MB / 0.573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001036/0.001036, allocations: 99.52 kB / 0.9213 GB, free: 43.71 MB / 0.6198 GB Notification: Performance of FrontEnd - loaded program: time 0.3265/0.3276, allocations: 148.5 MB / 1.066 GB, free: 7.516 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8986/1.226, allocations: 142.3 MB / 1.205 GB, free: 72.7 MB / 0.7917 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2116/1.438, allocations: 151.6 MB / 1.353 GB, free: 11.69 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002764/1.438, allocations: 83.95 kB / 1.353 GB, free: 11.61 MB / 0.8542 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.01834/1.457, allocations: 6.113 MB / 1.359 GB, free: 5.492 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 4.557e-05/1.457, allocations: 12 kB / 1.359 GB, free: 5.48 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.755e-05/1.457, allocations: 23.72 kB / 1.359 GB, free: 5.457 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005337/1.457, allocations: 294.3 kB / 1.36 GB, free: 5.133 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.269e-05/1.457, allocations: 4 kB / 1.36 GB, free: 5.129 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.567e-05/1.457, allocations: 16 kB / 1.36 GB, free: 5.113 MB / 0.8542 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002622/1.458, allocations: 124.2 kB / 1.36 GB, free: 4.988 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003793/1.458, allocations: 227.1 kB / 1.36 GB, free: 4.742 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.092e-05/1.458, allocations: 3.906 kB / 1.36 GB, free: 4.738 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.681e-05/1.458, allocations: 4 kB / 1.36 GB, free: 4.734 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.164e-06/1.458, allocations: 0.5625 kB / 1.36 GB, free: 4.734 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00102/1.459, allocations: 0.6983 MB / 1.361 GB, free: 3.992 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002382/1.459, allocations: 154.5 kB / 1.361 GB, free: 3.832 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001549/1.459, allocations: 108.9 kB / 1.361 GB, free: 3.723 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 1.353e-05/1.46, allocations: 0 / 1.361 GB, free: 3.723 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002148/1.46, allocations: 173.6 kB / 1.361 GB, free: 3.535 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=15): time 1.273e-06/1.46, allocations: 0 / 1.361 GB, free: 3.535 MB / 0.8542 GB Notification: Performance of matching and sorting (n=15): time 0.0004551/1.46, allocations: 233.3 kB / 1.361 GB, free: 3.301 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.833e-05/1.46, allocations: 132.5 kB / 1.361 GB, free: 3.141 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002105/1.46, allocations: 233 kB / 1.362 GB, free: 2.906 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 3.027e-05/1.461, allocations: 25.7 kB / 1.362 GB, free: 2.875 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 7.978e-05/1.461, allocations: 132.2 kB / 1.362 GB, free: 2.738 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 4.351e-05/1.461, allocations: 39.45 kB / 1.362 GB, free: 2.699 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.298e-05/1.461, allocations: 0 / 1.362 GB, free: 2.699 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0002162/1.461, allocations: 338.8 kB / 1.362 GB, free: 2.359 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001325/1.461, allocations: 88.16 kB / 1.362 GB, free: 2.27 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000153/1.461, allocations: 133.6 kB / 1.362 GB, free: 2.121 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001556/1.461, allocations: 102.4 kB / 1.363 GB, free: 2.023 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/1.461, allocations: 0 / 1.363 GB, free: 2.023 MB / 0.8542 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003952/1.462, allocations: 260 kB / 1.363 GB, free: 1.766 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.679e-05/1.462, allocations: 4 kB / 1.363 GB, free: 1.762 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.067e-06/1.462, allocations: 4 kB / 1.363 GB, free: 1.758 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.416e-05/1.462, allocations: 0 / 1.363 GB, free: 1.758 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001657/1.462, allocations: 41.38 kB / 1.363 GB, free: 1.719 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.685e-06/1.462, allocations: 0 / 1.363 GB, free: 1.719 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000178/1.462, allocations: 39.83 kB / 1.363 GB, free: 1.68 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.987e-05/1.462, allocations: 12 kB / 1.363 GB, free: 1.668 MB / 0.8542 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.0001469/1.462, allocations: 146.6 kB / 1.363 GB, free: 1.512 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.274e-05/1.462, allocations: 27.62 kB / 1.363 GB, free: 1.484 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.805e-05/1.463, allocations: 25.77 kB / 1.363 GB, free: 1.453 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.15e-06/1.463, allocations: 4 kB / 1.363 GB, free: 1.449 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.162e-06/1.463, allocations: 4 kB / 1.363 GB, free: 1.445 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/1.463, allocations: 0 / 1.363 GB, free: 1.445 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002731/1.463, allocations: 269.9 kB / 1.363 GB, free: 1.145 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-06/1.463, allocations: 0 / 1.363 GB, free: 1.145 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001399/1.463, allocations: 21.11 kB / 1.363 GB, free: 1.125 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/1.463, allocations: 0 / 1.363 GB, free: 1.125 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.635e-05/1.463, allocations: 8 kB / 1.363 GB, free: 1.117 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.689e-06/1.463, allocations: 4 kB / 1.363 GB, free: 1.113 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/1.463, allocations: 7.938 kB / 1.363 GB, free: 1.105 MB / 0.8542 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005993/1.464, allocations: 408 kB / 1.364 GB, free: 0.6914 MB / 0.8542 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0008205/1.465, allocations: 0.9137 MB / 1.365 GB, free: 15.76 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 6.893e-05/1.465, allocations: 93.86 kB / 1.365 GB, free: 15.65 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.829e-05/1.465, allocations: 9 kB / 1.365 GB, free: 15.64 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002543/1.465, allocations: 35.97 kB / 1.365 GB, free: 15.61 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001015/1.465, allocations: 19.95 kB / 1.365 GB, free: 15.58 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.033e-05/1.465, allocations: 19.98 kB / 1.365 GB, free: 15.56 MB / 0.8698 GB Notification: Performance of sort global known variables: time 0.0001713/1.465, allocations: 181.2 kB / 1.365 GB, free: 15.39 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0009666/1.466, allocations: 59.84 kB / 1.365 GB, free: 15.33 MB / 0.8698 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.0003122/1.467, allocations: 127.2 kB / 1.365 GB, free: 15.2 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0003952/1.467, allocations: 213.7 kB / 1.365 GB, free: 14.98 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 3.998e-06/1.467, allocations: 192 / 1.365 GB, free: 14.98 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0002021/1.467, allocations: 150.7 kB / 1.366 GB, free: 14.83 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003616/1.468, allocations: 27.92 kB / 1.366 GB, free: 14.8 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001109/1.469, allocations: 357 kB / 1.366 GB, free: 14.43 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004206/1.469, allocations: 0.7767 MB / 1.367 GB, free: 13.63 MB / 0.8698 GB Notification: Performance of SimCode: time 2.575e-06/1.469, allocations: 0 / 1.367 GB, free: 13.63 MB / 0.8698 GB (rm -f Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.fmu > Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)