Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.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.Controls.OBC.CDL.Integers.Validation.OnCounter,fileNamePrefix="Buildings_8_0_0_Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter,fileNamePrefix="Buildings_8_0_0_Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter",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.172/2.172, allocations: 284.8 MB / 292.1 MB, free: 9.887 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.001607/0.001607, allocations: 182.2 kB / 360.3 MB, free: 0.9727 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.706/1.706, allocations: 205.1 MB / 0.6187 GB, free: 3.371 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.001184/0.001183, allocations: 92.62 kB / 0.7317 GB, free: 1.797 MB / 0.5417 GB Notification: Performance of FrontEnd - loaded program: time 0.4992/0.5004, allocations: 121.4 MB / 0.8502 GB, free: 149.9 MB / 0.6355 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1935/0.6939, allocations: 115.3 MB / 0.9628 GB, free: 56.95 MB / 0.6355 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5991/1.293, allocations: 137.2 MB / 1.097 GB, free: 44.45 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002379/1.293, allocations: 69.06 kB / 1.097 GB, free: 44.45 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0137/1.307, allocations: 3.035 MB / 1.1 GB, free: 43.91 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.708e-05/1.307, allocations: 7.75 kB / 1.1 GB, free: 43.91 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.979e-05/1.307, allocations: 7.719 kB / 1.1 GB, free: 43.91 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.628e-05/1.307, allocations: 173.3 kB / 1.1 GB, free: 43.71 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.356e-05/1.307, allocations: 0 / 1.1 GB, free: 43.71 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.178e-05/1.307, allocations: 14.42 kB / 1.1 GB, free: 43.71 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.565e-05/1.308, allocations: 12.03 kB / 1.1 GB, free: 43.71 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.301e-05/1.308, allocations: 47.81 kB / 1.1 GB, free: 43.67 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.497e-06/1.308, allocations: 0 / 1.1 GB, free: 43.67 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.434e-05/1.308, allocations: 3.906 kB / 1.1 GB, free: 43.67 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.16e-06/1.308, allocations: 3.938 kB / 1.1 GB, free: 43.66 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005374/1.308, allocations: 336.5 kB / 1.1 GB, free: 43.43 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 7.433e-05/1.308, allocations: 31.86 kB / 1.1 GB, free: 43.4 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.633e-05/1.308, allocations: 18.98 kB / 1.1 GB, free: 43.39 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 8.757e-06/1.308, allocations: 0 / 1.1 GB, free: 43.39 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001066/1.309, allocations: 75.11 kB / 1.1 GB, free: 43.34 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=9): time 2.194e-06/1.309, allocations: 4.734 kB / 1.1 GB, free: 43.34 MB / 0.7136 GB Notification: Performance of matching and sorting (n=9): time 0.0002452/1.309, allocations: 83.72 kB / 1.101 GB, free: 43.3 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.281e-05/1.309, allocations: 63.2 kB / 1.101 GB, free: 43.23 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.761e-05/1.309, allocations: 116.3 kB / 1.101 GB, free: 43.14 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 3.938e-05/1.309, allocations: 29.55 kB / 1.101 GB, free: 43.11 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 5.217e-05/1.309, allocations: 86.38 kB / 1.101 GB, free: 43.02 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 2.239e-05/1.309, allocations: 20.42 kB / 1.101 GB, free: 43.01 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.095e-05/1.309, allocations: 2.938 kB / 1.101 GB, free: 43.01 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 5.978e-05/1.309, allocations: 318 kB / 1.101 GB, free: 42.7 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000187/1.309, allocations: 60.48 kB / 1.101 GB, free: 42.69 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002122/1.31, allocations: 102.3 kB / 1.101 GB, free: 42.64 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005064/1.31, allocations: 76.12 kB / 1.101 GB, free: 42.63 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.601e-06/1.31, allocations: 3.906 kB / 1.101 GB, free: 42.63 MB / 0.7136 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0008305/1.311, allocations: 213.5 kB / 1.102 GB, free: 42.59 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.531e-05/1.311, allocations: 3.812 kB / 1.102 GB, free: 42.59 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.416e-06/1.311, allocations: 7.969 kB / 1.102 GB, free: 42.58 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.008e-05/1.311, allocations: 3.75 kB / 1.102 GB, free: 42.58 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.252e-05/1.311, allocations: 8.625 kB / 1.102 GB, free: 42.58 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.272e-06/1.311, allocations: 0 / 1.102 GB, free: 42.58 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006316/1.312, allocations: 84 kB / 1.102 GB, free: 42.57 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.591e-05/1.312, allocations: 14.03 kB / 1.102 GB, free: 42.57 MB / 0.7136 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.onCounter.y,onCounter.y,$whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition2,$PRE.reset.y,reset.y,$whenCondition1,$PRE.booPul.y,booPul.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 2 * 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.0001242/1.312, allocations: 121.5 kB / 1.102 GB, free: 42.46 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.462e-05/1.312, allocations: 7.781 kB / 1.102 GB, free: 42.45 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.415e-05/1.312, allocations: 10.81 kB / 1.102 GB, free: 42.45 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.907e-06/1.312, allocations: 4 kB / 1.102 GB, free: 42.44 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/1.312, allocations: 0 / 1.102 GB, free: 42.44 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.479e-06/1.312, allocations: 3.875 kB / 1.102 GB, free: 42.44 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003034/1.312, allocations: 311.8 kB / 1.102 GB, free: 42.17 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/1.312, allocations: 0 / 1.102 GB, free: 42.17 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.527e-05/1.312, allocations: 3.594 kB / 1.102 GB, free: 42.17 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.486e-06/1.312, allocations: 0 / 1.102 GB, free: 42.17 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.344e-05/1.312, allocations: 7.844 kB / 1.102 GB, free: 42.17 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/1.313, allocations: 0 / 1.102 GB, free: 42.17 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/1.313, allocations: 0 / 1.102 GB, free: 42.17 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001681/1.313, allocations: 182.5 kB / 1.102 GB, free: 42.03 MB / 0.7136 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003/1.313, allocations: 0.5484 MB / 1.103 GB, free: 57.52 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 2.941e-05/1.313, allocations: 84.23 kB / 1.103 GB, free: 57.42 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.004e-05/1.313, allocations: 7.141 kB / 1.103 GB, free: 57.41 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.326e-05/1.313, allocations: 4 kB / 1.103 GB, free: 57.41 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.893e-05/1.313, allocations: 10.28 kB / 1.103 GB, free: 57.41 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.25e-05/1.313, allocations: 3.156 kB / 1.103 GB, free: 57.41 MB / 0.7292 GB Notification: Performance of sort global known variables: time 6.552e-05/1.313, allocations: 86.61 kB / 1.103 GB, free: 57.34 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.001246/1.315, allocations: 40.14 kB / 1.103 GB, free: 57.33 MB / 0.7292 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition2,$whenCondition1,onCounter.y,booPul.y,reset.y) * Number of discrete states: 1 (onCounter.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0001854/1.315, allocations: 111.8 kB / 1.103 GB, free: 57.23 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0003994/1.315, allocations: 162.7 kB / 1.103 GB, free: 57.16 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/1.315, allocations: 4.125 kB / 1.103 GB, free: 57.16 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 7.318e-05/1.315, allocations: 31.41 kB / 1.103 GB, free: 57.16 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003388/1.316, allocations: 17.02 kB / 1.103 GB, free: 57.15 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003355/1.316, allocations: 100.1 kB / 1.103 GB, free: 57.08 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003243/1.316, allocations: 0.7069 MB / 1.104 GB, free: 56.38 MB / 0.7292 GB Notification: Performance of SimCode: time 9.62e-07/1.316, allocations: 4 kB / 1.104 GB, free: 56.37 MB / 0.7292 GB (rm -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter.fmu > Buildings_8.0.0_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe 2>&1)