Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter,fileNamePrefix="Buildings_8_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_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.1.4-maint.8.1.x/package.mo): time 1.391/1.391, allocations: 289.8 MB / 297.1 MB, free: 6.691 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.00102/0.00102, allocations: 161.4 kB / 366.3 MB, free: 2.035 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.096/1.096, allocations: 205.1 MB / 0.6256 GB, free: 5.84 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.0008265/0.0008263, allocations: 90.36 kB / 0.7396 GB, free: 39.7 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2028/0.2037, allocations: 122.4 MB / 0.8591 GB, free: 13.29 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4459/0.6496, allocations: 116.3 MB / 0.9727 GB, free: 68.06 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.138/0.7876, allocations: 138.3 MB / 1.108 GB, free: 10.18 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001995/0.7879, allocations: 72.47 kB / 1.108 GB, free: 10.11 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.008447/0.7963, allocations: 3.046 MB / 1.111 GB, free: 7.031 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.378e-05/0.7964, allocations: 8 kB / 1.111 GB, free: 7.023 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.116e-05/0.7964, allocations: 11.91 kB / 1.111 GB, free: 7.012 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.615e-05/0.7965, allocations: 170 kB / 1.111 GB, free: 6.809 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.737e-05/0.7966, allocations: 4 kB / 1.111 GB, free: 6.805 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.422e-05/0.7966, allocations: 12 kB / 1.111 GB, free: 6.793 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 4.669e-05/0.7966, allocations: 8 kB / 1.111 GB, free: 6.785 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.321e-05/0.7967, allocations: 49.59 kB / 1.111 GB, free: 6.73 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.773e-06/0.7967, allocations: 3.938 kB / 1.111 GB, free: 6.727 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.117e-05/0.7968, allocations: 7.922 kB / 1.111 GB, free: 6.719 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.908e-06/0.7968, allocations: 0 / 1.111 GB, free: 6.719 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004074/0.7972, allocations: 333.3 kB / 1.111 GB, free: 6.355 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 6.304e-05/0.7972, allocations: 34.58 kB / 1.111 GB, free: 6.312 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.288e-05/0.7973, allocations: 12.86 kB / 1.111 GB, free: 6.297 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 5.43e-06/0.7973, allocations: 0 / 1.111 GB, free: 6.297 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.612e-05/0.7974, allocations: 75.42 kB / 1.111 GB, free: 6.211 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=9): time 1.182e-06/0.7974, allocations: 0.6562 kB / 1.111 GB, free: 6.211 MB / 0.7136 GB Notification: Performance of matching and sorting (n=9): time 0.0001742/0.7976, allocations: 86.52 kB / 1.112 GB, free: 6.121 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.715e-05/0.7976, allocations: 55.41 kB / 1.112 GB, free: 6.055 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.061e-05/0.7977, allocations: 116.8 kB / 1.112 GB, free: 5.934 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 3.076e-05/0.7977, allocations: 33.64 kB / 1.112 GB, free: 5.895 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 5.034e-05/0.7978, allocations: 92.36 kB / 1.112 GB, free: 5.797 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 1.739e-05/0.7978, allocations: 19.8 kB / 1.112 GB, free: 5.777 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.825e-05/0.7978, allocations: 4 kB / 1.112 GB, free: 5.773 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 8.224e-05/0.7979, allocations: 318.8 kB / 1.112 GB, free: 5.453 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001062/0.798, allocations: 55.98 kB / 1.112 GB, free: 5.398 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001265/0.7982, allocations: 94 kB / 1.112 GB, free: 5.285 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003019/0.7985, allocations: 85.05 kB / 1.112 GB, free: 5.203 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.7985, allocations: 0 / 1.112 GB, free: 5.203 MB / 0.7136 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0005032/0.799, allocations: 213.5 kB / 1.113 GB, free: 4.988 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 9.257e-06/0.799, allocations: 4 kB / 1.113 GB, free: 4.984 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.001e-05/0.799, allocations: 7.984 kB / 1.113 GB, free: 4.977 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.35e-05/0.7991, allocations: 4.141 kB / 1.113 GB, free: 4.973 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.983e-05/0.7991, allocations: 11.94 kB / 1.113 GB, free: 4.961 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.61e-06/0.7991, allocations: 4 kB / 1.113 GB, free: 4.957 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000326/0.7994, allocations: 83.88 kB / 1.113 GB, free: 4.875 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.057e-05/0.7995, allocations: 19.89 kB / 1.113 GB, free: 4.855 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 8.14e-05/0.7996, allocations: 105 kB / 1.113 GB, free: 4.746 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.347e-05/0.7996, allocations: 7.906 kB / 1.113 GB, free: 4.738 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.821e-05/0.7996, allocations: 13.22 kB / 1.113 GB, free: 4.727 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.7996, allocations: 0 / 1.113 GB, free: 4.727 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.327e-06/0.7997, allocations: 0 / 1.113 GB, free: 4.727 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.671e-06/0.7997, allocations: 7.984 kB / 1.113 GB, free: 4.719 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002688/0.7999, allocations: 311.8 kB / 1.113 GB, free: 4.371 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/0.8, allocations: 4 kB / 1.113 GB, free: 4.367 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.377e-06/0.8, allocations: 3.938 kB / 1.113 GB, free: 4.363 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.8, allocations: 0 / 1.113 GB, free: 4.363 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.516e-06/0.8, allocations: 3.984 kB / 1.113 GB, free: 4.359 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.515e-06/0.8, allocations: 4 kB / 1.113 GB, free: 4.355 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.8, allocations: 2.5 kB / 1.113 GB, free: 4.355 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001309/0.8001, allocations: 180.5 kB / 1.113 GB, free: 4.164 MB / 0.7136 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002443/0.8004, allocations: 0.5433 MB / 1.114 GB, free: 3.602 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 3.65e-05/0.8004, allocations: 86.14 kB / 1.114 GB, free: 3.5 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.982e-05/0.8005, allocations: 0 / 1.114 GB, free: 3.5 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.453e-05/0.8005, allocations: 3.938 kB / 1.114 GB, free: 3.496 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.937e-05/0.8006, allocations: 15.98 kB / 1.114 GB, free: 3.48 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.658e-06/0.8006, allocations: 8 kB / 1.114 GB, free: 3.473 MB / 0.7136 GB Notification: Performance of sort global known variables: time 4.7e-05/0.8006, allocations: 91.27 kB / 1.114 GB, free: 3.383 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0008386/0.8015, allocations: 31.94 kB / 1.114 GB, free: 3.352 MB / 0.7136 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.0001403/0.8016, allocations: 111.2 kB / 1.114 GB, free: 3.234 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0002601/0.8019, allocations: 159.3 kB / 1.114 GB, free: 3.066 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 3.105e-06/0.8019, allocations: 8.25 kB / 1.114 GB, free: 3.059 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 4.643e-05/0.8019, allocations: 37.25 kB / 1.114 GB, free: 3.023 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002023/0.8022, allocations: 11.98 kB / 1.114 GB, free: 3.012 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002599/0.8024, allocations: 108.4 kB / 1.115 GB, free: 2.887 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000264/0.8027, allocations: 0.7036 MB / 1.115 GB, free: 2.156 MB / 0.7136 GB Notification: Performance of SimCode: time 2.61e-07/0.8027, allocations: 1.312 kB / 1.115 GB, free: 2.156 MB / 0.7136 GB (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter.fmu > Buildings_8_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe 2>&1)