Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="Buildings_latest_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 2.523/2.523, allocations: 390.4 MB / 397.7 MB, free: 11.23 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00114/0.00114, allocations: 181.3 kB / 490.8 MB, free: 1.922 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.577/1.577, allocations: 221.3 MB / 0.7863 GB, free: 13.69 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009621/0.0009619, allocations: 83.62 kB / 0.9264 GB, free: 14.23 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.7529/0.7539, allocations: 149.1 MB / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3031/1.057, allocations: 143 MB / 1.212 GB, free: 40.01 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8595/1.917, allocations: 152.4 MB / 1.36 GB, free: 17.13 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002775/1.917, allocations: 80.41 kB / 1.361 GB, free: 17.13 MB / 0.823 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.01884/1.936, allocations: 6.12 MB / 1.366 GB, free: 32.29 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.9e-05/1.936, allocations: 8.969 kB / 1.366 GB, free: 32.29 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001425/1.936, allocations: 30.69 kB / 1.367 GB, free: 32.28 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005773/1.937, allocations: 293.5 kB / 1.367 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.163e-05/1.937, allocations: 5.844 kB / 1.367 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.232e-05/1.937, allocations: 7.844 kB / 1.367 GB, free: 32.05 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003051/1.937, allocations: 130.5 kB / 1.367 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000365/1.937, allocations: 215.7 kB / 1.367 GB, free: 31.96 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.253e-05/1.937, allocations: 9.25 kB / 1.367 GB, free: 31.96 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.853e-05/1.937, allocations: 1.312 kB / 1.367 GB, free: 31.96 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.857e-06/1.937, allocations: 6.531 kB / 1.367 GB, free: 31.95 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001213/1.939, allocations: 0.7011 MB / 1.368 GB, free: 31.52 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000261/1.939, allocations: 149.7 kB / 1.368 GB, free: 31.5 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001565/1.939, allocations: 100.1 kB / 1.368 GB, free: 31.49 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.855e-05/1.939, allocations: 1.438 kB / 1.368 GB, free: 31.49 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002335/1.939, allocations: 173.7 kB / 1.368 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=15): time 1.923e-06/1.939, allocations: 0 / 1.368 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of matching and sorting (n=15): time 0.000567/1.94, allocations: 233.1 kB / 1.368 GB, free: 31.36 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.086e-05/1.94, allocations: 141 kB / 1.369 GB, free: 31.2 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002994/1.94, allocations: 225.1 kB / 1.369 GB, free: 31.1 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 3.29e-05/1.94, allocations: 31.23 kB / 1.369 GB, free: 31.07 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 8.649e-05/1.94, allocations: 126.8 kB / 1.369 GB, free: 30.97 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 4.69e-05/1.94, allocations: 40.16 kB / 1.369 GB, free: 30.95 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.264e-05/1.94, allocations: 1.156 kB / 1.369 GB, free: 30.95 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001506/1.941, allocations: 336.7 kB / 1.369 GB, free: 30.64 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000157/1.941, allocations: 95.34 kB / 1.369 GB, free: 30.63 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000167/1.941, allocations: 135.2 kB / 1.37 GB, free: 30.58 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001912/1.941, allocations: 88.3 kB / 1.37 GB, free: 30.58 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.584e-06/1.941, allocations: 0 / 1.37 GB, free: 30.58 MB / 0.8386 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004563/1.942, allocations: 266.9 kB / 1.37 GB, free: 30.52 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.674e-05/1.942, allocations: 5.562 kB / 1.37 GB, free: 30.52 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.364e-06/1.942, allocations: 0 / 1.37 GB, free: 30.52 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.579e-05/1.942, allocations: 6.219 kB / 1.37 GB, free: 30.52 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001688/1.942, allocations: 27.94 kB / 1.37 GB, free: 30.52 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.207e-06/1.942, allocations: 2.219 kB / 1.37 GB, free: 30.52 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002/1.942, allocations: 41.81 kB / 1.37 GB, free: 30.51 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.111e-05/1.942, allocations: 18.78 kB / 1.37 GB, free: 30.5 MB / 0.8386 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.0001309/1.942, allocations: 145.3 kB / 1.37 GB, free: 30.36 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.595e-05/1.942, allocations: 25.16 kB / 1.37 GB, free: 30.35 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.473e-05/1.942, allocations: 36 kB / 1.37 GB, free: 30.33 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/1.942, allocations: 2 kB / 1.37 GB, free: 30.33 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/1.942, allocations: 0 / 1.37 GB, free: 30.33 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.701e-06/1.942, allocations: 2.578 kB / 1.37 GB, free: 30.33 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002556/1.943, allocations: 262.7 kB / 1.37 GB, free: 30.17 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/1.943, allocations: 3.984 kB / 1.37 GB, free: 30.16 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001423/1.943, allocations: 26.12 kB / 1.37 GB, free: 30.16 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.839e-06/1.943, allocations: 1.125 kB / 1.37 GB, free: 30.16 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.661e-05/1.943, allocations: 3.781 kB / 1.37 GB, free: 30.16 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.707e-06/1.943, allocations: 3.062 kB / 1.37 GB, free: 30.16 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/1.943, allocations: 0 / 1.37 GB, free: 30.16 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006738/1.944, allocations: 411.8 kB / 1.371 GB, free: 30.08 MB / 0.8386 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0009489/1.945, allocations: 0.9183 MB / 1.372 GB, free: 29.61 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 5.161e-05/1.945, allocations: 99.86 kB / 1.372 GB, free: 29.51 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.628e-05/1.945, allocations: 2.719 kB / 1.372 GB, free: 29.51 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001817/1.945, allocations: 34.09 kB / 1.372 GB, free: 29.5 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.857e-05/1.945, allocations: 25.16 kB / 1.372 GB, free: 29.5 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.123e-05/1.945, allocations: 15 kB / 1.372 GB, free: 29.5 MB / 0.8386 GB Notification: Performance of sort global known variables: time 0.0002102/1.945, allocations: 179.2 kB / 1.372 GB, free: 29.42 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0009881/1.946, allocations: 59.86 kB / 1.372 GB, free: 29.41 MB / 0.8386 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.0002796/1.947, allocations: 140.4 kB / 1.372 GB, free: 29.31 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0003599/1.947, allocations: 214.9 kB / 1.373 GB, free: 29.27 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/1.947, allocations: 1.438 kB / 1.373 GB, free: 29.27 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001899/1.947, allocations: 144.9 kB / 1.373 GB, free: 29.24 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002983/1.947, allocations: 23.91 kB / 1.373 GB, free: 29.24 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001032/1.948, allocations: 349.2 kB / 1.373 GB, free: 29.11 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004647/1.949, allocations: 0.7772 MB / 1.374 GB, free: 28.41 MB / 0.8386 GB Notification: Performance of SimCode: time 2.71e-07/1.949, allocations: 0 / 1.374 GB, free: 28.41 MB / 0.8386 GB (rm -f Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.fmu > Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)