Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.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.Valves.Examples.TwoWayValvesMotor,fileNamePrefix="Buildings_7_0_0_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor",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.212/2.212, allocations: 248.6 MB / 255.9 MB, free: 7.137 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.002389/0.002388, allocations: 188 kB / 315.1 MB, free: 4.246 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.988/1.988, allocations: 205.1 MB / 0.5658 GB, free: 288 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.001338/0.001337, allocations: 93.06 kB / 0.67 GB, free: 5.492 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.5158/0.5172, allocations: 112.4 MB / 0.7797 GB, free: 103.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2288/0.746, allocations: 106.3 MB / 0.8835 GB, free: 13.33 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.476/2.223, allocations: 395.1 MB / 1.269 GB, free: 245.4 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003348/2.223, allocations: 94.25 kB / 1.269 GB, free: 245.4 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: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 1.148/3.371, allocations: 293.6 MB / 1.556 GB, free: 7.703 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 4.867e-05/3.371, allocations: 12 kB / 1.556 GB, free: 7.691 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004886/3.371, allocations: 126.6 kB / 1.556 GB, free: 7.566 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002334/3.373, allocations: 0.6725 MB / 1.557 GB, free: 6.852 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.928e-05/3.374, allocations: 20 kB / 1.557 GB, free: 6.832 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001537/3.374, allocations: 39.91 kB / 1.557 GB, free: 6.793 MB / 0.8542 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001203/3.375, allocations: 398.5 kB / 1.557 GB, free: 6.402 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001296/3.376, allocations: 0.5701 MB / 1.558 GB, free: 5.793 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.593e-05/3.376, allocations: 7.922 kB / 1.558 GB, free: 5.785 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.836e-05/3.376, allocations: 4 kB / 1.558 GB, free: 5.781 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.711e-05/3.376, allocations: 12 kB / 1.558 GB, free: 5.77 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005325/3.382, allocations: 2.459 MB / 1.56 GB, free: 3.195 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008977/3.383, allocations: 340.8 kB / 1.561 GB, free: 2.852 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004496/3.383, allocations: 180.8 kB / 1.561 GB, free: 2.672 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000387/3.384, allocations: 340.4 kB / 1.561 GB, free: 2.266 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006272/3.384, allocations: 329.5 kB / 1.562 GB, free: 1.91 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=37): time 3.757e-06/3.384, allocations: 0 / 1.562 GB, free: 1.91 MB / 0.8542 GB Notification: Performance of matching and sorting (n=37): time 0.002663/3.387, allocations: 0.5518 MB / 1.562 GB, free: 1.352 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.248e-05/3.387, allocations: 235.6 kB / 1.562 GB, free: 1.066 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001169/3.388, allocations: 0.5867 MB / 1.563 GB, free: 480 kB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 0.0001841/3.388, allocations: 33.69 kB / 1.563 GB, free: 440 kB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002706/3.389, allocations: 315.8 kB / 1.563 GB, free: 120 kB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001612/3.389, allocations: 118.4 kB / 1.563 GB, free: 0 / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.808e-05/3.389, allocations: 0 / 1.563 GB, free: 0 / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001644/3.389, allocations: 326 kB / 1.564 GB, free: 15.67 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005918/3.39, allocations: 197.2 kB / 1.564 GB, free: 15.48 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008753/3.391, allocations: 375.9 kB / 1.564 GB, free: 15.03 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001865/3.393, allocations: 325 kB / 1.564 GB, free: 14.71 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.516e-06/3.393, allocations: 4 kB / 1.564 GB, free: 14.71 MB / 0.8698 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.00324/3.396, allocations: 0.7058 MB / 1.565 GB, free: 13.99 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.000546/3.396, allocations: 1.054 MB / 1.566 GB, free: 12.86 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.745e-05/3.397, allocations: 4 kB / 1.566 GB, free: 12.85 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.033e-05/3.397, allocations: 4 kB / 1.566 GB, free: 12.85 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002147/3.399, allocations: 163.7 kB / 1.566 GB, free: 12.69 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001747/3.401, allocations: 1.797 MB / 1.568 GB, free: 10.82 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001643/3.402, allocations: 111.7 kB / 1.568 GB, free: 10.71 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001604/3.402, allocations: 35.89 kB / 1.568 GB, free: 10.68 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.428e-05/3.402, allocations: 4 kB / 1.568 GB, free: 10.67 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002404/3.405, allocations: 0.5607 MB / 1.569 GB, free: 10.12 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.348e-05/3.405, allocations: 7.984 kB / 1.569 GB, free: 10.11 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.354e-05/3.405, allocations: 8 kB / 1.569 GB, free: 10.1 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001112/3.406, allocations: 136.1 kB / 1.569 GB, free: 9.969 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.023e-05/3.406, allocations: 4 kB / 1.569 GB, free: 9.965 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001575/3.408, allocations: 99.52 kB / 1.569 GB, free: 9.867 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002395/3.408, allocations: 35.98 kB / 1.569 GB, free: 9.832 MB / 0.8698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 12 ($whenCondition1,ySet.a,ySet.b,ySet.last,$PRE.ySet.nextEvent,ySet.nextEvent,ySet.nextEventScaled,$PRE.mot.uppHys.y,mot.uppHys.y,$PRE.mot.lowHys.y,mot.lowHys.y,mot.int.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 3 {1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005506/3.409, allocations: 154.5 kB / 1.569 GB, free: 9.668 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004654/3.409, allocations: 82.97 kB / 1.569 GB, free: 9.586 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005134/3.414, allocations: 0.6648 MB / 1.57 GB, free: 8.91 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.761e-05/3.414, allocations: 4 kB / 1.57 GB, free: 8.906 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.09e-05/3.414, allocations: 0 / 1.57 GB, free: 8.906 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.084e-05/3.414, allocations: 3.984 kB / 1.57 GB, free: 8.902 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007408/3.422, allocations: 1.459 MB / 1.571 GB, free: 7.387 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.213e-05/3.422, allocations: 4 kB / 1.571 GB, free: 7.383 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001287/3.423, allocations: 91.92 kB / 1.571 GB, free: 7.293 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.05e-05/3.423, allocations: 7.969 kB / 1.571 GB, free: 7.285 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000129/3.423, allocations: 12 kB / 1.571 GB, free: 7.273 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001837/3.425, allocations: 1.782 MB / 1.573 GB, free: 5.422 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.401e-05/3.425, allocations: 8.094 kB / 1.573 GB, free: 5.414 MB / 0.8698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005828/3.431, allocations: 1.156 MB / 1.574 GB, free: 4.207 MB / 0.8698 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.007402/3.439, allocations: 1.813 MB / 1.576 GB, free: 2.34 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001193/3.44, allocations: 224.6 kB / 1.576 GB, free: 2.102 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004521/3.44, allocations: 11.94 kB / 1.576 GB, free: 2.09 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001689/3.442, allocations: 71.98 kB / 1.576 GB, free: 2.02 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002103/3.442, allocations: 43.83 kB / 1.576 GB, free: 1.977 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.95e-05/3.442, allocations: 23.98 kB / 1.576 GB, free: 1.953 MB / 0.8698 GB Notification: Performance of sort global known variables: time 0.001044/3.444, allocations: 455.1 kB / 1.577 GB, free: 1.516 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.004433/3.448, allocations: 0.5614 MB / 1.577 GB, free: 0.9531 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 1 (mot.int.y) * Number of discrete variables: 8 ($whenCondition1,ySet.a,ySet.b,ySet.last,ySet.nextEvent,ySet.nextEventScaled,mot.uppHys.y,mot.lowHys.y) * 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 (38): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 3 {1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001636/3.45, allocations: 488.8 kB / 1.578 GB, free: 484 kB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.3192/3.769, allocations: 0.8415 MB / 1.579 GB, free: 315.4 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 1.042e-05/3.769, allocations: 0 / 1.579 GB, free: 315.4 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0009076/3.77, allocations: 312.5 kB / 1.579 GB, free: 315.4 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00323/3.773, allocations: 296.2 kB / 1.579 GB, free: 315.4 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003748/3.777, allocations: 1.059 MB / 1.58 GB, free: 315.1 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009507/3.778, allocations: 1.083 MB / 1.581 GB, free: 314.4 MB / 0.8698 GB Notification: Performance of SimCode: time 1.172e-06/3.778, allocations: 0 / 1.581 GB, free: 314.4 MB / 0.8698 GB