Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1.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.Occupants.Office.Lighting.Validation.Love1998Light1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|lig.ill|lig.occ|lig.p|lig.on",fileNamePrefix="Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1") translateModel(Buildings.Occupants.Office.Lighting.Validation.Love1998Light1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|lig.ill|lig.occ|lig.p|lig.on",fileNamePrefix="Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1") [: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.913/1.913, allocations: 387.2 MB / 394.5 MB, free: 13.62 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.001172/0.001172, allocations: 183.9 kB / 487 MB, free: 5.391 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.334/1.334, allocations: 221.3 MB / 0.7819 GB, free: 1.41 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.0009918/0.000992, allocations: 98.92 kB / 0.9213 GB, free: 2.66 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 6.101e-06/6.121e-06, allocations: 0 / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2046/0.2046, allocations: 142.3 MB / 1.205 GB, free: 26.28 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5573/0.7619, allocations: 150.6 MB / 1.352 GB, free: 16.01 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002531/0.7622, allocations: 82.52 kB / 1.352 GB, free: 16.01 MB / 0.8073 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/Occupants/BaseClasses/binaryVariableGeneration.mo:11:3-11:96:writable] Warning: localSeed was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of FrontEnd: time 0.009414/0.7716, allocations: 2.882 MB / 1.355 GB, free: 15.86 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 8.155e-06/0.7716, allocations: 2.5 kB / 1.355 GB, free: 15.86 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0005195/0.7722, allocations: 459.3 kB / 1.356 GB, free: 15.41 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 4.354e-05/0.7722, allocations: 12.38 kB / 1.356 GB, free: 15.41 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.383e-05/0.7723, allocations: 8.125 kB / 1.356 GB, free: 15.41 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000128/0.7724, allocations: 175.1 kB / 1.356 GB, free: 15.21 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.001e-05/0.7724, allocations: 1.562 kB / 1.356 GB, free: 15.21 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.132e-05/0.7725, allocations: 4.516 kB / 1.356 GB, free: 15.21 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001168/0.7726, allocations: 30.58 kB / 1.356 GB, free: 15.21 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001129/0.7727, allocations: 71.91 kB / 1.356 GB, free: 15.16 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.488e-06/0.7727, allocations: 0 / 1.356 GB, free: 15.16 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.424e-05/0.7727, allocations: 4.594 kB / 1.356 GB, free: 15.16 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.162e-06/0.7727, allocations: 6.062 kB / 1.356 GB, free: 15.16 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004747/0.7732, allocations: 296.3 kB / 1.356 GB, free: 14.92 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001055/0.7733, allocations: 54.38 kB / 1.356 GB, free: 14.89 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.042e-05/0.7734, allocations: 32.38 kB / 1.356 GB, free: 14.88 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 2.291e-05/0.7734, allocations: 1.578 kB / 1.356 GB, free: 14.88 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001085/0.7735, allocations: 80.5 kB / 1.356 GB, free: 14.83 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=10): time 1.373e-06/0.7735, allocations: 0 / 1.356 GB, free: 14.83 MB / 0.8073 GB Notification: Performance of matching and sorting (n=10): time 0.0002323/0.7738, allocations: 93.02 kB / 1.356 GB, free: 14.79 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.733e-05/0.7738, allocations: 62.02 kB / 1.357 GB, free: 14.73 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.856e-05/0.7739, allocations: 110.1 kB / 1.357 GB, free: 14.64 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.465e-05/0.7739, allocations: 27.17 kB / 1.357 GB, free: 14.61 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 2.65e-05/0.7739, allocations: 91.39 kB / 1.357 GB, free: 14.52 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 2.288e-05/0.774, allocations: 24.78 kB / 1.357 GB, free: 14.5 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.483e-06/0.774, allocations: 0.875 kB / 1.357 GB, free: 14.5 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 4.918e-05/0.774, allocations: 320.1 kB / 1.357 GB, free: 14.19 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.243e-05/0.7741, allocations: 24.06 kB / 1.357 GB, free: 14.19 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.899e-05/0.7742, allocations: 54.8 kB / 1.357 GB, free: 14.14 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.134e-05/0.7742, allocations: 21.81 kB / 1.357 GB, free: 14.14 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.572e-06/0.7742, allocations: 0.875 kB / 1.357 GB, free: 14.14 MB / 0.8073 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001669/0.7744, allocations: 115.7 kB / 1.357 GB, free: 14.09 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.483e-05/0.7744, allocations: 5.312 kB / 1.357 GB, free: 14.09 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.7744, allocations: 1.344 kB / 1.357 GB, free: 14.09 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.235e-05/0.7744, allocations: 2.438 kB / 1.357 GB, free: 14.09 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001206/0.7746, allocations: 19.7 kB / 1.357 GB, free: 14.09 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.104e-06/0.7746, allocations: 3.016 kB / 1.357 GB, free: 14.09 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001101/0.7747, allocations: 20.08 kB / 1.357 GB, free: 14.08 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.427e-05/0.7747, allocations: 13.03 kB / 1.357 GB, free: 14.07 MB / 0.8073 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.lig.curSeed,lig.curSeed,$PRE.lig.on,lig.on,$whenCondition3,$whenCondition2,lig.sampleTrigger,$whenCondition1,lig.occ,$PRE.occ.pulseStart,occ.pulseStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * 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 5.668e-05/0.7748, allocations: 112.2 kB / 1.357 GB, free: 13.96 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.807e-05/0.7748, allocations: 8.438 kB / 1.357 GB, free: 13.96 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002361/0.775, allocations: 114.3 kB / 1.358 GB, free: 13.92 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.547e-06/0.7751, allocations: 5.469 kB / 1.358 GB, free: 13.91 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.7751, allocations: 6.312 kB / 1.358 GB, free: 13.91 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.7751, allocations: 0 / 1.358 GB, free: 13.91 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004019/0.7755, allocations: 369 kB / 1.358 GB, free: 13.64 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.7755, allocations: 3.938 kB / 1.358 GB, free: 13.64 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.671e-05/0.7756, allocations: 20.7 kB / 1.358 GB, free: 13.63 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.485e-06/0.7756, allocations: 1.062 kB / 1.358 GB, free: 13.63 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.299e-05/0.7756, allocations: 3.734 kB / 1.358 GB, free: 13.63 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.7756, allocations: 0 / 1.358 GB, free: 13.63 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.7756, allocations: 1 kB / 1.358 GB, free: 13.63 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001785/0.7758, allocations: 196.1 kB / 1.358 GB, free: 13.5 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 2.433e-05/0.7758, allocations: 85.48 kB / 1.358 GB, free: 13.4 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.565e-05/0.7759, allocations: 1.25 kB / 1.358 GB, free: 13.4 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001296/0.776, allocations: 19.56 kB / 1.358 GB, free: 13.39 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.121e-05/0.7761, allocations: 9.047 kB / 1.358 GB, free: 13.39 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.193e-05/0.7761, allocations: 6.656 kB / 1.358 GB, free: 13.39 MB / 0.8073 GB Notification: Performance of sort global known variables: time 3.801e-05/0.7761, allocations: 99.67 kB / 1.358 GB, free: 13.31 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0003252/0.7764, allocations: 49.39 kB / 1.358 GB, free: 13.3 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: 8 (lig.occ,lig.sampleTrigger,$whenCondition3,$whenCondition2,$whenCondition1,lig.on,lig.curSeed,occ.pulseStart) * Number of discrete states: 1 (lig.on) * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 9 * 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.0003284/0.7768, allocations: 173.8 kB / 1.359 GB, free: 13.19 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0001562/0.7769, allocations: 65.47 kB / 1.359 GB, free: 13.18 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.777, allocations: 0 / 1.359 GB, free: 13.18 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 7.829e-05/0.777, allocations: 42.36 kB / 1.359 GB, free: 13.18 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00021/0.7773, allocations: 18.44 kB / 1.359 GB, free: 13.17 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003383/0.7776, allocations: 115.4 kB / 1.359 GB, free: 13.1 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001577/0.7778, allocations: 0.7126 MB / 1.36 GB, free: 12.4 MB / 0.8073 GB Notification: Performance of SimCode: time 2.41e-07/0.7778, allocations: 0 / 1.36 GB, free: 12.4 MB / 0.8073 GB Notification: Performance of Templates: time 0.004662/0.7824, allocations: 1.894 MB / 1.361 GB, free: 12.23 MB / 0.8073 GB make -j1 -f Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1.makefile (rm -f Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1.sim & ./Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Lighting_Validation_Love1998Light1.csv","../files/Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches