Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.Pulse.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.Pulse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pulse.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.Pulse") translateModel(Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.Pulse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pulse.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.Pulse") [: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 9.1.1-maint.9.1.x/package.mo): time 1.762/1.762, allocations: 387.2 MB / 394.5 MB, free: 13.63 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.0009527/0.0009527, allocations: 173.2 kB / 487 MB, free: 5.355 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.116/1.116, allocations: 221.3 MB / 0.7819 GB, free: 1.398 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008565/0.0008565, allocations: 97.69 kB / 0.9213 GB, free: 2.652 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 7.024e-06/7.044e-06, allocations: 4 kB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1781/0.1781, allocations: 142.3 MB / 1.205 GB, free: 26.21 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5193/0.6975, allocations: 148.6 MB / 1.35 GB, free: 15.81 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001887/0.6977, allocations: 73.34 kB / 1.35 GB, free: 15.81 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.004847/0.7026, allocations: 1.69 MB / 1.352 GB, free: 15.71 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 5.641e-06/0.7026, allocations: 1.375 kB / 1.352 GB, free: 15.71 MB / 0.8073 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.000228/0.7028, allocations: 373.4 kB / 1.352 GB, free: 15.33 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.187e-05/0.7028, allocations: 9.031 kB / 1.352 GB, free: 15.33 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.368e-05/0.7029, allocations: 5.094 kB / 1.352 GB, free: 15.33 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.397e-05/0.703, allocations: 185.3 kB / 1.353 GB, free: 15.12 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.462e-05/0.703, allocations: 1.781 kB / 1.353 GB, free: 15.12 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.306e-05/0.703, allocations: 5.094 kB / 1.353 GB, free: 15.12 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 4.796e-05/0.7031, allocations: 14.55 kB / 1.353 GB, free: 15.12 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 5.625e-05/0.7032, allocations: 42.66 kB / 1.353 GB, free: 15.09 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.552e-06/0.7032, allocations: 0 / 1.353 GB, free: 15.09 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.816e-06/0.7032, allocations: 5.078 kB / 1.353 GB, free: 15.08 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.448e-06/0.7032, allocations: 1.219 kB / 1.353 GB, free: 15.08 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003191/0.7035, allocations: 300 kB / 1.353 GB, free: 14.85 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 4.457e-05/0.7036, allocations: 32.94 kB / 1.353 GB, free: 14.82 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.125e-05/0.7036, allocations: 17.36 kB / 1.353 GB, free: 14.81 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 8.827e-06/0.7036, allocations: 3.984 kB / 1.353 GB, free: 14.8 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.236e-05/0.7037, allocations: 51.17 kB / 1.353 GB, free: 14.76 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=4): time 1.082e-06/0.7037, allocations: 1.469 kB / 1.353 GB, free: 14.76 MB / 0.8073 GB Notification: Performance of matching and sorting (n=4): time 0.0001348/0.7038, allocations: 61.02 kB / 1.353 GB, free: 14.72 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.618e-05/0.7038, allocations: 52.59 kB / 1.353 GB, free: 14.66 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.364e-05/0.7039, allocations: 112.2 kB / 1.353 GB, free: 14.57 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.702e-05/0.704, allocations: 35.58 kB / 1.353 GB, free: 14.53 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 2.842e-05/0.704, allocations: 93.09 kB / 1.353 GB, free: 14.45 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 1.139e-05/0.704, allocations: 6.203 kB / 1.353 GB, free: 14.44 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.113e-05/0.704, allocations: 2.344 kB / 1.353 GB, free: 14.44 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 3.837e-05/0.7041, allocations: 326.1 kB / 1.354 GB, free: 14.12 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.337e-05/0.7041, allocations: 31.81 kB / 1.354 GB, free: 14.12 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.886e-05/0.7042, allocations: 50.61 kB / 1.354 GB, free: 14.1 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001764/0.7044, allocations: 47.72 kB / 1.354 GB, free: 14.09 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.7044, allocations: 0.875 kB / 1.354 GB, free: 14.09 MB / 0.8073 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002834/0.7047, allocations: 129 kB / 1.354 GB, free: 14.05 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 8.616e-06/0.7047, allocations: 5.5 kB / 1.354 GB, free: 14.05 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.999e-06/0.7047, allocations: 2.734 kB / 1.354 GB, free: 14.05 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.071e-05/0.7047, allocations: 1.375 kB / 1.354 GB, free: 14.05 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.641e-05/0.7048, allocations: 10.75 kB / 1.354 GB, free: 14.05 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.051e-06/0.7048, allocations: 0 / 1.354 GB, free: 14.05 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001736/0.705, allocations: 39.86 kB / 1.354 GB, free: 14.04 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.842e-05/0.705, allocations: 9.766 kB / 1.354 GB, free: 14.04 MB / 0.8073 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,$whenCondition2,$PRE.pulse.booPul.y,pulse.booPul.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 4 * 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 4.992e-05/0.705, allocations: 108.1 kB / 1.354 GB, free: 13.94 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.14e-05/0.7051, allocations: 6.781 kB / 1.354 GB, free: 13.93 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.707e-05/0.7051, allocations: 10.45 kB / 1.354 GB, free: 13.93 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.963e-06/0.7051, allocations: 5.25 kB / 1.354 GB, free: 13.93 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.7051, allocations: 3.906 kB / 1.354 GB, free: 13.92 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.555e-06/0.7051, allocations: 4 kB / 1.354 GB, free: 13.92 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.813e-05/0.7052, allocations: 153.6 kB / 1.354 GB, free: 13.76 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.7052, allocations: 2.484 kB / 1.354 GB, free: 13.76 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.377e-05/0.7052, allocations: 1.344 kB / 1.354 GB, free: 13.76 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.303e-06/0.7052, allocations: 0 / 1.354 GB, free: 13.76 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.272e-06/0.7052, allocations: 2.25 kB / 1.354 GB, free: 13.76 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.11e-07/0.7052, allocations: 0 / 1.354 GB, free: 13.76 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.7052, allocations: 1.516 kB / 1.354 GB, free: 13.76 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 7.665e-05/0.7053, allocations: 86.45 kB / 1.354 GB, free: 13.69 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 1.937e-05/0.7053, allocations: 87.52 kB / 1.355 GB, free: 13.59 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.545e-05/0.7054, allocations: 1.25 kB / 1.355 GB, free: 13.59 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.008e-05/0.7054, allocations: 1.125 kB / 1.355 GB, free: 13.59 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.821e-05/0.7054, allocations: 5.609 kB / 1.355 GB, free: 13.58 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.859e-06/0.7054, allocations: 3.047 kB / 1.355 GB, free: 13.58 MB / 0.8073 GB Notification: Performance of sort global known variables: time 3.375e-05/0.7055, allocations: 95.08 kB / 1.355 GB, free: 13.51 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0001963/0.7057, allocations: 18.14 kB / 1.355 GB, free: 13.51 MB / 0.8073 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,$whenCondition2,pulse.booPul.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001226/0.7058, allocations: 112.6 kB / 1.355 GB, free: 13.41 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0001546/0.706, allocations: 91.16 kB / 1.355 GB, free: 13.38 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.342e-06/0.706, allocations: 0 / 1.355 GB, free: 13.38 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 2.829e-05/0.706, allocations: 16.86 kB / 1.355 GB, free: 13.38 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001688/0.7062, allocations: 22.97 kB / 1.355 GB, free: 13.37 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001936/0.7064, allocations: 80.17 kB / 1.355 GB, free: 13.29 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001906/0.7066, allocations: 0.702 MB / 1.356 GB, free: 28.59 MB / 0.823 GB Notification: Performance of SimCode: time 2.51e-07/0.7066, allocations: 0 / 1.356 GB, free: 28.59 MB / 0.823 GB Notification: Performance of Templates: time 0.003081/0.7097, allocations: 1.131 MB / 1.357 GB, free: 28.48 MB / 0.823 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.Pulse.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.Pulse.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.Pulse.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.Pulse.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.Pulse.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.Pulse -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.Pulse.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.Pulse_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Sources_Validation_Pulse.csv","../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.Pulse.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches