Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="Buildings_8_0_0_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.0.0/package.mo): time 2.931/2.931, allocations: 284.8 MB / 292.1 MB, free: 9.855 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.002326/0.002326, allocations: 174.9 kB / 360.3 MB, free: 0.875 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.094/2.094, allocations: 205.1 MB / 0.6187 GB, free: 3.309 MB / 442.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001308/0.001308, allocations: 93.39 kB / 0.7317 GB, free: 1.766 MB / 0.5417 GB Notification: Performance of FrontEnd - loaded program: time 0.6302/0.6316, allocations: 121.4 MB / 0.8502 GB, free: 150.1 MB / 0.6355 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2591/0.8907, allocations: 115.3 MB / 0.9628 GB, free: 56.93 MB / 0.6355 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7138/1.605, allocations: 140.2 MB / 1.1 GB, free: 32.98 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004402/1.605, allocations: 82.2 kB / 1.1 GB, free: 32.98 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.03895/1.644, allocations: 6.042 MB / 1.106 GB, free: 32.18 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.301e-05/1.644, allocations: 15.41 kB / 1.106 GB, free: 32.17 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000103/1.644, allocations: 25 kB / 1.106 GB, free: 32.16 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006991/1.645, allocations: 296.9 kB / 1.106 GB, free: 31.94 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.865e-05/1.645, allocations: 3.812 kB / 1.106 GB, free: 31.94 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.341e-05/1.645, allocations: 7.844 kB / 1.106 GB, free: 31.94 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003899/1.645, allocations: 129.3 kB / 1.106 GB, free: 31.93 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004736/1.646, allocations: 227.1 kB / 1.106 GB, free: 31.85 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.438e-05/1.646, allocations: 3.984 kB / 1.106 GB, free: 31.84 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.744e-05/1.646, allocations: 3.875 kB / 1.106 GB, free: 31.84 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.609e-06/1.646, allocations: 3.906 kB / 1.106 GB, free: 31.84 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001386/1.647, allocations: 0.7009 MB / 1.107 GB, free: 31.41 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003478/1.648, allocations: 144.2 kB / 1.107 GB, free: 31.38 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002182/1.648, allocations: 103.1 kB / 1.107 GB, free: 31.38 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.069e-05/1.648, allocations: 3.844 kB / 1.107 GB, free: 31.38 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002957/1.648, allocations: 172.9 kB / 1.107 GB, free: 31.29 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=15): time 4.429e-06/1.648, allocations: 96 / 1.107 GB, free: 31.29 MB / 0.7136 GB Notification: Performance of matching and sorting (n=15): time 0.0006769/1.649, allocations: 236.8 kB / 1.108 GB, free: 31.24 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.6e-05/1.649, allocations: 132.4 kB / 1.108 GB, free: 31.09 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003012/1.65, allocations: 227 kB / 1.108 GB, free: 30.99 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 3.84e-05/1.65, allocations: 29.64 kB / 1.108 GB, free: 30.96 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 7.036e-05/1.65, allocations: 128.9 kB / 1.108 GB, free: 30.86 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 5.198e-05/1.65, allocations: 39.56 kB / 1.108 GB, free: 30.83 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.082e-05/1.65, allocations: 3.812 kB / 1.108 GB, free: 30.83 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 7.538e-05/1.65, allocations: 341.1 kB / 1.109 GB, free: 30.52 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002087/1.65, allocations: 85 kB / 1.109 GB, free: 30.51 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002415/1.65, allocations: 139.8 kB / 1.109 GB, free: 30.46 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002533/1.651, allocations: 86.39 kB / 1.109 GB, free: 30.46 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/1.651, allocations: 4.031 kB / 1.109 GB, free: 30.46 MB / 0.7136 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0006029/1.651, allocations: 265.7 kB / 1.109 GB, free: 30.4 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.615e-05/1.651, allocations: 7.562 kB / 1.109 GB, free: 30.4 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.685e-06/1.651, allocations: 96 / 1.109 GB, free: 30.4 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.935e-05/1.651, allocations: 3.938 kB / 1.109 GB, free: 30.4 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002671/1.652, allocations: 30.5 kB / 1.109 GB, free: 30.4 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.335e-06/1.652, allocations: 4 kB / 1.109 GB, free: 30.4 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003172/1.652, allocations: 43.36 kB / 1.109 GB, free: 30.38 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.142e-05/1.652, allocations: 11.09 kB / 1.109 GB, free: 30.38 MB / 0.7136 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.0001337/1.652, allocations: 144.5 kB / 1.109 GB, free: 30.24 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.574e-05/1.652, allocations: 28.91 kB / 1.109 GB, free: 30.23 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.058e-05/1.652, allocations: 31.58 kB / 1.109 GB, free: 30.21 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/1.652, allocations: 0 / 1.109 GB, free: 30.21 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.681e-06/1.652, allocations: 0 / 1.109 GB, free: 30.21 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/1.652, allocations: 0 / 1.109 GB, free: 30.21 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000322/1.653, allocations: 261.9 kB / 1.11 GB, free: 30.05 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.896e-06/1.653, allocations: 3.875 kB / 1.11 GB, free: 30.05 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002211/1.653, allocations: 27.86 kB / 1.11 GB, free: 30.05 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.621e-06/1.653, allocations: 3.938 kB / 1.11 GB, free: 30.05 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.163e-05/1.653, allocations: 3.875 kB / 1.11 GB, free: 30.05 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.775e-06/1.653, allocations: 0 / 1.11 GB, free: 30.05 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/1.653, allocations: 3.688 kB / 1.11 GB, free: 30.05 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008732/1.654, allocations: 411.6 kB / 1.11 GB, free: 29.96 MB / 0.7136 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00114/1.655, allocations: 0.9046 MB / 1.111 GB, free: 29.51 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 6.269e-05/1.655, allocations: 103.1 kB / 1.111 GB, free: 29.4 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.795e-05/1.655, allocations: 3.75 kB / 1.111 GB, free: 29.4 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003107/1.655, allocations: 38.12 kB / 1.111 GB, free: 29.39 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001084/1.656, allocations: 29.42 kB / 1.111 GB, free: 29.39 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.148e-05/1.656, allocations: 13.61 kB / 1.111 GB, free: 29.39 MB / 0.7136 GB Notification: Performance of sort global known variables: time 0.0002281/1.656, allocations: 181.2 kB / 1.111 GB, free: 29.31 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.001296/1.657, allocations: 56.84 kB / 1.111 GB, free: 29.3 MB / 0.7136 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.0002913/1.658, allocations: 142.2 kB / 1.111 GB, free: 29.2 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0004538/1.658, allocations: 214.1 kB / 1.112 GB, free: 29.16 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/1.658, allocations: 0 / 1.112 GB, free: 29.16 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0002256/1.658, allocations: 151.6 kB / 1.112 GB, free: 29.12 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003689/1.659, allocations: 22.05 kB / 1.112 GB, free: 29.12 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001344/1.66, allocations: 346.6 kB / 1.112 GB, free: 29 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004895/1.66, allocations: 0.785 MB / 1.113 GB, free: 44.29 MB / 0.7292 GB Notification: Performance of SimCode: time 1.222e-06/1.661, allocations: 0 / 1.113 GB, free: 44.29 MB / 0.7292 GB (rm -f Buildings_8.0.0_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_8.0.0_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_8.0.0_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.fmu > Buildings_8.0.0_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)