Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.PulsePositiveStartTime.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.PulsePositiveStartTime,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booPul_a1.y|booPul_a2.y|booPul_a3.y|booPul_a4.y|booPul_a5.y|booPul_b1.y|booPul_b2.y|booPul_b3.y|booPul_b4.y|booPul_b5.y|booPul_c1.y|booPul_c2.y|booPul_c3.y|booPul_c4.y|booPul_c5.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.PulsePositiveStartTime") translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.PulsePositiveStartTime,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booPul_a1.y|booPul_a2.y|booPul_a3.y|booPul_a4.y|booPul_a5.y|booPul_b1.y|booPul_b2.y|booPul_b3.y|booPul_b4.y|booPul_b5.y|booPul_c1.y|booPul_c2.y|booPul_c3.y|booPul_c4.y|booPul_c5.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.PulsePositiveStartTime") [: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 10.0.0-master/package.mo): time 1.716/1.716, allocations: 390.4 MB / 397.7 MB, free: 11.25 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009273/0.0009273, allocations: 176.1 kB / 490.8 MB, free: 1.961 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.071/1.071, allocations: 221.4 MB / 0.7863 GB, free: 13.69 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008348/0.0008348, allocations: 99.17 kB / 0.9264 GB, free: 14.23 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 6.111e-06/6.221e-06, allocations: 0 / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1666/0.1666, allocations: 143 MB / 1.212 GB, free: 40.13 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4532/0.6198, allocations: 149.6 MB / 1.358 GB, free: 17.19 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001662/0.62, allocations: 75.42 kB / 1.358 GB, free: 17.19 MB / 0.823 GB Notification: Performance of FrontEnd: time 0.04496/0.665, allocations: 17.16 MB / 1.375 GB, free: 16.09 MB / 0.823 GB Notification: Performance of Transformations before backend: time 8.836e-06/0.665, allocations: 3.844 kB / 1.375 GB, free: 16.09 MB / 0.823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0008124/0.6658, allocations: 0.9627 MB / 1.375 GB, free: 31.19 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.102e-05/0.6659, allocations: 9.953 kB / 1.375 GB, free: 31.19 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002089/0.6661, allocations: 61.05 kB / 1.376 GB, free: 31.18 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001231/0.6662, allocations: 210.9 kB / 1.376 GB, free: 30.95 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.248e-05/0.6663, allocations: 13.64 kB / 1.376 GB, free: 30.95 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001724/0.6664, allocations: 64.67 kB / 1.376 GB, free: 30.95 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.499e-05/0.6665, allocations: 37.03 kB / 1.376 GB, free: 30.95 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001805/0.6667, allocations: 213.8 kB / 1.376 GB, free: 30.78 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.925e-06/0.6667, allocations: 1.125 kB / 1.376 GB, free: 30.78 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.737e-05/0.6668, allocations: 7.875 kB / 1.376 GB, free: 30.78 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.12e-06/0.6668, allocations: 2.188 kB / 1.376 GB, free: 30.78 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008726/0.6676, allocations: 0.8058 MB / 1.377 GB, free: 30.5 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001624/0.6678, allocations: 315 kB / 1.377 GB, free: 30.12 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001015/0.6679, allocations: 125.2 kB / 1.377 GB, free: 30 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.077e-05/0.6679, allocations: 8.797 kB / 1.377 GB, free: 29.99 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003245/0.6683, allocations: 344.9 kB / 1.378 GB, free: 29.77 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=45): time 1.974e-06/0.6683, allocations: 4 kB / 1.378 GB, free: 29.77 MB / 0.8386 GB Notification: Performance of matching and sorting (n=45): time 0.0006416/0.6689, allocations: 357.1 kB / 1.378 GB, free: 29.7 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.729e-05/0.669, allocations: 437 kB / 1.378 GB, free: 29.19 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001916/0.6692, allocations: 246.2 kB / 1.379 GB, free: 29.06 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 0.0001347/0.6693, allocations: 59.5 kB / 1.379 GB, free: 29.03 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001491/0.6695, allocations: 135.6 kB / 1.379 GB, free: 28.93 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 6.96e-05/0.6696, allocations: 89.66 kB / 1.379 GB, free: 28.88 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001182/0.6697, allocations: 31.89 kB / 1.379 GB, free: 28.88 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001018/0.6698, allocations: 353.4 kB / 1.379 GB, free: 28.55 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006825/0.6705, allocations: 364.9 kB / 1.38 GB, free: 28.53 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007301/0.6712, allocations: 0.6336 MB / 1.38 GB, free: 28.13 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001734/0.673, allocations: 0.5259 MB / 1.381 GB, free: 27.96 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.143e-06/0.673, allocations: 7 kB / 1.381 GB, free: 27.95 MB / 0.8386 GB Notification: Performance of matching and sorting (n=90) (initialization): time 0.003039/0.676, allocations: 1.256 MB / 1.382 GB, free: 27.61 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.145e-05/0.6761, allocations: 4.969 kB / 1.382 GB, free: 27.61 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.369e-05/0.6761, allocations: 9.344 kB / 1.382 GB, free: 27.61 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.433e-05/0.6761, allocations: 15.44 kB / 1.382 GB, free: 27.61 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.853e-05/0.6762, allocations: 30.8 kB / 1.382 GB, free: 27.6 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.423e-05/0.6762, allocations: 21.55 kB / 1.382 GB, free: 27.59 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002181/0.6784, allocations: 0.5893 MB / 1.383 GB, free: 27.39 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001749/0.6785, allocations: 91.52 kB / 1.383 GB, free: 27.38 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * Number of states: 0 () * Number of discrete variables: 60 ($PRE.booPul_c5.y,booPul_c5.y,$whenCondition29,$whenCondition30,$PRE.booPul_b5.y,booPul_b5.y,$whenCondition27,$whenCondition28,$PRE.booPul_a5.y,booPul_a5.y,$whenCondition25,$whenCondition26,$PRE.booPul_c4.y,booPul_c4.y,$whenCondition23,$whenCondition24,$PRE.booPul_b4.y,booPul_b4.y,$whenCondition21,$whenCondition22,$PRE.booPul_a4.y,booPul_a4.y,$whenCondition19,$whenCondition20,$PRE.booPul_c3.y,booPul_c3.y,$whenCondition17,$whenCondition18,$PRE.booPul_b3.y,booPul_b3.y,$whenCondition15,$whenCondition16,$PRE.booPul_a3.y,booPul_a3.y,$whenCondition13,$whenCondition14,$PRE.booPul_c2.y,booPul_c2.y,$whenCondition11,$whenCondition12,$PRE.booPul_b2.y,booPul_b2.y,$whenCondition9,$whenCondition10,$PRE.booPul_a2.y,booPul_a2.y,$whenCondition7,$whenCondition8,$PRE.booPul_c1.y,booPul_c1.y,$whenCondition5,$whenCondition6,$PRE.booPul_b1.y,booPul_b1.y,$whenCondition3,$whenCondition4,$PRE.booPul_a1.y,booPul_a1.y,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (60): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 15 * 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.0002142/0.6788, allocations: 183.9 kB / 1.383 GB, free: 27.24 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.769e-05/0.6788, allocations: 44.67 kB / 1.383 GB, free: 27.21 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.467e-05/0.6789, allocations: 40.92 kB / 1.383 GB, free: 27.2 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.955e-06/0.6789, allocations: 8.844 kB / 1.383 GB, free: 27.2 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.508e-06/0.6789, allocations: 3.906 kB / 1.383 GB, free: 27.2 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.995e-06/0.679, allocations: 8.672 kB / 1.383 GB, free: 27.2 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002472/0.6792, allocations: 285.1 kB / 1.383 GB, free: 26.99 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.679e-06/0.6792, allocations: 3.875 kB / 1.383 GB, free: 26.99 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.104e-05/0.6792, allocations: 18.2 kB / 1.383 GB, free: 26.98 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.063e-06/0.6793, allocations: 6.156 kB / 1.383 GB, free: 26.98 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.508e-05/0.6793, allocations: 22.08 kB / 1.383 GB, free: 26.97 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.32e-06/0.6793, allocations: 9.281 kB / 1.383 GB, free: 26.97 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.6793, allocations: 7.781 kB / 1.383 GB, free: 26.96 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004394/0.6798, allocations: 0.5773 MB / 1.384 GB, free: 26.48 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 4.586e-05/0.6798, allocations: 109.5 kB / 1.384 GB, free: 26.37 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.113e-05/0.6799, allocations: 14.55 kB / 1.384 GB, free: 26.36 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001108/0.68, allocations: 12.95 kB / 1.384 GB, free: 26.36 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.966e-05/0.68, allocations: 42.36 kB / 1.384 GB, free: 26.34 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.989e-05/0.6801, allocations: 35.75 kB / 1.384 GB, free: 26.34 MB / 0.8386 GB Notification: Performance of sort global known variables: time 0.0001179/0.6802, allocations: 171.8 kB / 1.384 GB, free: 26.24 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0005948/0.6808, allocations: 173 kB / 1.384 GB, free: 26.23 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 45 ($whenCondition29,$whenCondition30,booPul_c5.y,$whenCondition27,$whenCondition28,booPul_b5.y,$whenCondition25,$whenCondition26,booPul_a5.y,$whenCondition23,$whenCondition24,booPul_c4.y,$whenCondition21,$whenCondition22,booPul_b4.y,$whenCondition19,$whenCondition20,booPul_a4.y,$whenCondition17,$whenCondition18,booPul_c3.y,$whenCondition15,$whenCondition16,booPul_b3.y,$whenCondition13,$whenCondition14,booPul_a3.y,$whenCondition11,$whenCondition12,booPul_c2.y,$whenCondition9,$whenCondition10,booPul_b2.y,$whenCondition7,$whenCondition8,booPul_a2.y,$whenCondition5,$whenCondition6,booPul_c1.y,$whenCondition3,$whenCondition4,booPul_b1.y,$whenCondition1,$whenCondition2,booPul_a1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (45): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 15 * 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.0001357/0.6809, allocations: 139.1 kB / 1.385 GB, free: 26.12 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.001158/0.6821, allocations: 1.096 MB / 1.386 GB, free: 25.57 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.6821, allocations: 1.281 kB / 1.386 GB, free: 25.57 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001829/0.6823, allocations: 159.9 kB / 1.386 GB, free: 25.56 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005113/0.6828, allocations: 109.5 kB / 1.386 GB, free: 25.52 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006449/0.6835, allocations: 479.7 kB / 1.386 GB, free: 25.23 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002876/0.6838, allocations: 0.8207 MB / 1.387 GB, free: 24.48 MB / 0.8386 GB Notification: Performance of SimCode: time 2.51e-07/0.6838, allocations: 1.281 kB / 1.387 GB, free: 24.48 MB / 0.8386 GB Notification: Performance of Templates: time 0.0133/0.6971, allocations: 9.93 MB / 1.397 GB, free: 19.41 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.PulsePositiveStartTime.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.PulsePositiveStartTime.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.PulsePositiveStartTime.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.PulsePositiveStartTime.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.PulsePositiveStartTime.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.PulsePositiveStartTime -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.PulsePositiveStartTime.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.PulsePositiveStartTime_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_PulsePositiveStartTime.csv","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.PulsePositiveStartTime.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches