Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.conf.json 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.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="Buildings_7_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 7.0.1/package.mo): time 2.45/2.45, allocations: 248.6 MB / 255.9 MB, free: 7.129 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.001787/0.001787, allocations: 192 kB / 315.1 MB, free: 4.234 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.09/2.09, allocations: 205.1 MB / 0.5658 GB, free: 332 kB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001235/0.001234, allocations: 91.27 kB / 0.67 GB, free: 5.543 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.446/0.4473, allocations: 112.4 MB / 0.7797 GB, free: 103.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1981/0.6454, allocations: 106.3 MB / 0.8835 GB, free: 13.32 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6532/1.299, allocations: 134.9 MB / 1.015 GB, free: 5.277 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003442/1.299, allocations: 79.58 kB / 1.015 GB, free: 5.234 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.02887/1.328, allocations: 6.063 MB / 1.021 GB, free: 36 kB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.361e-05/1.328, allocations: 15.94 kB / 1.021 GB, free: 20 kB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001299/1.328, allocations: 31.8 kB / 1.021 GB, free: 15.98 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007408/1.329, allocations: 288.5 kB / 1.022 GB, free: 15.69 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.173e-05/1.329, allocations: 12.59 kB / 1.022 GB, free: 15.68 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.424e-05/1.329, allocations: 8 kB / 1.022 GB, free: 15.67 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004043/1.329, allocations: 132.3 kB / 1.022 GB, free: 15.58 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005109/1.33, allocations: 220.4 kB / 1.022 GB, free: 15.38 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.334e-05/1.33, allocations: 3.938 kB / 1.022 GB, free: 15.38 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.534e-05/1.33, allocations: 0 / 1.022 GB, free: 15.38 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.009e-05/1.33, allocations: 4 kB / 1.022 GB, free: 15.37 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001582/1.332, allocations: 0.6977 MB / 1.023 GB, free: 14.72 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003908/1.332, allocations: 157 kB / 1.023 GB, free: 14.61 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002581/1.332, allocations: 98.53 kB / 1.023 GB, free: 14.54 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 2.2e-05/1.332, allocations: 4 kB / 1.023 GB, free: 14.53 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000346/1.333, allocations: 184 kB / 1.023 GB, free: 14.36 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=15): time 3.206e-06/1.333, allocations: 0 / 1.023 GB, free: 14.36 MB / 0.6511 GB Notification: Performance of matching and sorting (n=15): time 0.0007746/1.334, allocations: 228.8 kB / 1.023 GB, free: 14.17 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001097/1.334, allocations: 140.5 kB / 1.023 GB, free: 14 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003824/1.334, allocations: 222.4 kB / 1.024 GB, free: 13.81 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 5.302e-05/1.334, allocations: 29.52 kB / 1.024 GB, free: 13.78 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001082/1.334, allocations: 123.7 kB / 1.024 GB, free: 13.66 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 7.253e-05/1.334, allocations: 45.45 kB / 1.024 GB, free: 13.63 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.117e-05/1.334, allocations: 0 / 1.024 GB, free: 13.63 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001652/1.335, allocations: 337.5 kB / 1.024 GB, free: 13.3 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002493/1.335, allocations: 92.34 kB / 1.024 GB, free: 13.23 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003018/1.335, allocations: 133.9 kB / 1.024 GB, free: 13.11 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002948/1.335, allocations: 87.06 kB / 1.024 GB, free: 13.05 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.018e-06/1.335, allocations: 4.031 kB / 1.024 GB, free: 13.05 MB / 0.6511 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0007063/1.336, allocations: 264 kB / 1.025 GB, free: 12.83 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 2.035e-05/1.336, allocations: 5.719 kB / 1.025 GB, free: 12.83 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.671e-05/1.336, allocations: 7.906 kB / 1.025 GB, free: 12.82 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.376e-05/1.336, allocations: 0 / 1.025 GB, free: 12.82 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002911/1.337, allocations: 35.86 kB / 1.025 GB, free: 12.79 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.983e-06/1.337, allocations: 0 / 1.025 GB, free: 12.79 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003379/1.337, allocations: 43.91 kB / 1.025 GB, free: 12.74 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.117e-05/1.337, allocations: 14.94 kB / 1.025 GB, free: 12.73 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.0002208/1.337, allocations: 150.4 kB / 1.025 GB, free: 12.57 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.119e-05/1.337, allocations: 23.72 kB / 1.025 GB, free: 12.55 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001027/1.337, allocations: 24.95 kB / 1.025 GB, free: 12.54 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.997e-06/1.337, allocations: 0 / 1.025 GB, free: 12.54 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/1.337, allocations: 4 kB / 1.025 GB, free: 12.53 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.284e-06/1.338, allocations: 3.984 kB / 1.025 GB, free: 12.53 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000372/1.338, allocations: 262.7 kB / 1.025 GB, free: 12.27 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.885e-06/1.338, allocations: 0 / 1.025 GB, free: 12.27 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002431/1.338, allocations: 23.98 kB / 1.025 GB, free: 12.25 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.549e-06/1.338, allocations: 0 / 1.025 GB, free: 12.25 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.809e-05/1.338, allocations: 11.61 kB / 1.025 GB, free: 12.24 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.036e-06/1.338, allocations: 0 / 1.025 GB, free: 12.24 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.852e-06/1.338, allocations: 4 kB / 1.025 GB, free: 12.24 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00105/1.339, allocations: 408.5 kB / 1.026 GB, free: 11.91 MB / 0.6511 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001424/1.341, allocations: 0.9113 MB / 1.027 GB, free: 11.11 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001011/1.341, allocations: 104.8 kB / 1.027 GB, free: 10.99 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.296e-05/1.341, allocations: 11.88 kB / 1.027 GB, free: 10.98 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003991/1.341, allocations: 32.05 kB / 1.027 GB, free: 10.95 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001807/1.342, allocations: 35.77 kB / 1.027 GB, free: 10.92 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.177e-05/1.342, allocations: 8 kB / 1.027 GB, free: 10.91 MB / 0.6511 GB Notification: Performance of sort global known variables: time 0.0003853/1.342, allocations: 182 kB / 1.027 GB, free: 10.77 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.002638/1.345, allocations: 60.05 kB / 1.027 GB, free: 10.71 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.0005574/1.345, allocations: 142.5 kB / 1.027 GB, free: 10.56 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0009597/1.346, allocations: 210.9 kB / 1.027 GB, free: 10.4 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 5.3e-06/1.346, allocations: 0 / 1.027 GB, free: 10.4 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0005094/1.347, allocations: 151.1 kB / 1.027 GB, free: 10.29 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006649/1.348, allocations: 26.78 kB / 1.027 GB, free: 10.27 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002444/1.35, allocations: 340.3 kB / 1.028 GB, free: 9.953 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009135/1.351, allocations: 0.7779 MB / 1.029 GB, free: 9.152 MB / 0.6511 GB Notification: Performance of SimCode: time 1.392e-06/1.351, allocations: 0 / 1.029 GB, free: 9.152 MB / 0.6511 GB