Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="Buildings_maint_8_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_8_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 8.0.1-maint.8.0.x/package.mo): time 1.433/1.433, allocations: 285.5 MB / 292.8 MB, free: 10.51 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.001251/0.001251, allocations: 173.3 kB / 361.1 MB, free: 7.105 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.171/1.171, allocations: 205.1 MB / 0.6195 GB, free: 10.28 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.0008248/0.0008251, allocations: 75.69 kB / 0.7325 GB, free: 44.24 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2172/0.218, allocations: 121.4 MB / 0.8511 GB, free: 2.871 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5176/0.7357, allocations: 115.3 MB / 0.9638 GB, free: 78.1 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1553/0.8911, allocations: 140.4 MB / 1.101 GB, free: 15.65 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000278/0.8914, allocations: 80.61 kB / 1.101 GB, free: 15.57 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.01694/0.9083, allocations: 6.064 MB / 1.107 GB, free: 9.547 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.75e-05/0.9084, allocations: 12.5 kB / 1.107 GB, free: 9.535 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.056e-05/0.9085, allocations: 27.72 kB / 1.107 GB, free: 9.508 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005048/0.909, allocations: 286.3 kB / 1.107 GB, free: 9.191 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.714e-05/0.9091, allocations: 12 kB / 1.107 GB, free: 9.18 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.21e-05/0.9091, allocations: 8 kB / 1.107 GB, free: 9.172 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002501/0.9093, allocations: 128.2 kB / 1.107 GB, free: 9.043 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003061/0.9097, allocations: 215.1 kB / 1.107 GB, free: 8.809 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.024e-05/0.9097, allocations: 3.906 kB / 1.107 GB, free: 8.805 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.634e-05/0.9097, allocations: 4 kB / 1.107 GB, free: 8.801 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.528e-06/0.9097, allocations: 4 kB / 1.108 GB, free: 8.797 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009891/0.9107, allocations: 0.6982 MB / 1.108 GB, free: 8.051 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002142/0.911, allocations: 142.6 kB / 1.108 GB, free: 7.902 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001337/0.9111, allocations: 109 kB / 1.108 GB, free: 7.793 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.638e-05/0.9111, allocations: 3.984 kB / 1.108 GB, free: 7.789 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000194/0.9113, allocations: 177.1 kB / 1.109 GB, free: 7.598 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=15): time 2.084e-06/0.9113, allocations: 2.438 kB / 1.109 GB, free: 7.598 MB / 0.7136 GB Notification: Performance of matching and sorting (n=15): time 0.0004067/0.9117, allocations: 229.3 kB / 1.109 GB, free: 7.367 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.377e-05/0.9118, allocations: 136.5 kB / 1.109 GB, free: 7.203 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002502/0.9121, allocations: 229 kB / 1.109 GB, free: 6.977 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 3.198e-05/0.9121, allocations: 29.7 kB / 1.109 GB, free: 6.941 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 8.911e-05/0.9122, allocations: 128.2 kB / 1.109 GB, free: 6.812 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 4.652e-05/0.9123, allocations: 39.45 kB / 1.109 GB, free: 6.773 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.217e-05/0.9123, allocations: 3.938 kB / 1.109 GB, free: 6.77 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0002177/0.9125, allocations: 338.8 kB / 1.11 GB, free: 6.43 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000146/0.9127, allocations: 88.16 kB / 1.11 GB, free: 6.34 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001741/0.9129, allocations: 143.3 kB / 1.11 GB, free: 6.184 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001779/0.913, allocations: 91.47 kB / 1.11 GB, free: 6.098 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.9131, allocations: 0 / 1.11 GB, free: 6.098 MB / 0.7136 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004223/0.9135, allocations: 261.2 kB / 1.11 GB, free: 5.836 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 2.044e-05/0.9135, allocations: 8 kB / 1.11 GB, free: 5.828 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.055e-06/0.9135, allocations: 1.562 kB / 1.11 GB, free: 5.828 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.581e-05/0.9136, allocations: 4.125 kB / 1.11 GB, free: 5.824 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001683/0.9137, allocations: 31.98 kB / 1.11 GB, free: 5.793 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.522e-06/0.9138, allocations: 3.938 kB / 1.11 GB, free: 5.789 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001853/0.9139, allocations: 47.81 kB / 1.11 GB, free: 5.742 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.723e-05/0.914, allocations: 8 kB / 1.11 GB, free: 5.734 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.000138/0.9141, allocations: 141.5 kB / 1.11 GB, free: 5.586 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.267e-05/0.9142, allocations: 27.62 kB / 1.11 GB, free: 5.559 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.03e-05/0.9143, allocations: 25.77 kB / 1.111 GB, free: 5.527 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.995e-06/0.9143, allocations: 8 kB / 1.111 GB, free: 5.52 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.081e-06/0.9143, allocations: 1.312 kB / 1.111 GB, free: 5.52 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.715e-06/0.9143, allocations: 3.984 kB / 1.111 GB, free: 5.516 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002679/0.9146, allocations: 262 kB / 1.111 GB, free: 5.223 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.9146, allocations: 0 / 1.111 GB, free: 5.223 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001368/0.9147, allocations: 25.3 kB / 1.111 GB, free: 5.199 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.418e-06/0.9147, allocations: 4 kB / 1.111 GB, free: 5.195 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.768e-05/0.9148, allocations: 7.984 kB / 1.111 GB, free: 5.188 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.9148, allocations: 4 kB / 1.111 GB, free: 5.184 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.9148, allocations: 0 / 1.111 GB, free: 5.184 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005498/0.9153, allocations: 411.5 kB / 1.111 GB, free: 4.766 MB / 0.7136 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.000787/0.9161, allocations: 0.9033 MB / 1.112 GB, free: 3.84 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 6.716e-05/0.9162, allocations: 104.9 kB / 1.112 GB, free: 3.719 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.047e-05/0.9163, allocations: 5.594 kB / 1.112 GB, free: 3.715 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001692/0.9164, allocations: 31.97 kB / 1.112 GB, free: 3.684 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.381e-05/0.9165, allocations: 33.58 kB / 1.112 GB, free: 3.652 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.572e-05/0.9166, allocations: 16 kB / 1.112 GB, free: 3.637 MB / 0.7136 GB Notification: Performance of sort global known variables: time 0.0001831/0.9168, allocations: 177.2 kB / 1.112 GB, free: 3.461 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0009434/0.9177, allocations: 63.95 kB / 1.113 GB, free: 3.398 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.0002351/0.918, allocations: 143.1 kB / 1.113 GB, free: 3.25 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0002994/0.9183, allocations: 213.6 kB / 1.113 GB, free: 3.035 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.9183, allocations: 4.188 kB / 1.113 GB, free: 3.031 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0001527/0.9185, allocations: 141.6 kB / 1.113 GB, free: 2.887 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000253/0.9187, allocations: 23.81 kB / 1.113 GB, free: 2.867 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009121/0.9196, allocations: 359.3 kB / 1.113 GB, free: 2.5 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003618/0.92, allocations: 0.7713 MB / 1.114 GB, free: 1.703 MB / 0.7136 GB Notification: Performance of SimCode: time 2.8e-07/0.92, allocations: 4 kB / 1.114 GB, free: 1.699 MB / 0.7136 GB (rm -f Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.fmu > Buildings_maint.8.0.x_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)