Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.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.Reinhart2003Light,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|lig.ill|lig.occ|lig.pArriv|lig.on",fileNamePrefix="Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light") translateModel(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|lig.ill|lig.occ|lig.pArriv|lig.on",fileNamePrefix="Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light") [: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.945/1.945, 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.001088/0.001088, allocations: 185.2 kB / 487 MB, free: 5.352 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.268/1.268, allocations: 221.3 MB / 0.7819 GB, free: 1.383 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.0009306/0.0009306, allocations: 102.1 kB / 0.9213 GB, free: 2.637 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 4.799e-06/4.919e-06, allocations: 0 / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2158/0.2159, allocations: 142.3 MB / 1.205 GB, free: 26.25 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6289/0.8448, allocations: 150.7 MB / 1.352 GB, free: 15.77 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002025/0.845, allocations: 81.23 kB / 1.352 GB, free: 15.77 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.009924/0.8549, allocations: 3.037 MB / 1.355 GB, free: 15.6 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 7.824e-06/0.855, allocations: 1.75 kB / 1.355 GB, free: 15.6 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0005046/0.8555, allocations: 500 kB / 1.356 GB, free: 15.12 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.512e-05/0.8555, allocations: 9.031 kB / 1.356 GB, free: 15.12 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.103e-05/0.8556, allocations: 13.72 kB / 1.356 GB, free: 15.12 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001121/0.8557, allocations: 177.7 kB / 1.356 GB, free: 14.91 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.756e-05/0.8557, allocations: 2.391 kB / 1.356 GB, free: 14.91 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.935e-05/0.8557, allocations: 7.875 kB / 1.356 GB, free: 14.91 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001216/0.8559, allocations: 44.22 kB / 1.356 GB, free: 14.91 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001224/0.856, allocations: 72.56 kB / 1.356 GB, free: 14.87 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.145e-06/0.856, allocations: 0 / 1.356 GB, free: 14.87 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.341e-05/0.856, allocations: 5.25 kB / 1.356 GB, free: 14.87 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.53e-06/0.856, allocations: 0.7812 kB / 1.356 GB, free: 14.87 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004033/0.8565, allocations: 294.6 kB / 1.357 GB, free: 14.63 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001535/0.8566, allocations: 75.92 kB / 1.357 GB, free: 14.61 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.697e-05/0.8567, allocations: 32.59 kB / 1.357 GB, free: 14.59 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 2.526e-05/0.8567, allocations: 4.531 kB / 1.357 GB, free: 14.59 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001115/0.8568, allocations: 82.75 kB / 1.357 GB, free: 14.54 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=11): time 1.433e-06/0.8568, allocations: 0 / 1.357 GB, free: 14.54 MB / 0.8073 GB Notification: Performance of matching and sorting (n=11): time 0.0002779/0.8571, allocations: 106.4 kB / 1.357 GB, free: 14.5 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.355e-05/0.8572, allocations: 58.81 kB / 1.357 GB, free: 14.44 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.466e-05/0.8572, allocations: 131.8 kB / 1.357 GB, free: 14.34 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.494e-05/0.8573, allocations: 30.8 kB / 1.357 GB, free: 14.3 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 2.678e-05/0.8573, allocations: 88.53 kB / 1.357 GB, free: 14.22 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 2.565e-05/0.8573, allocations: 25.73 kB / 1.357 GB, free: 14.21 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.823e-06/0.8573, allocations: 0 / 1.357 GB, free: 14.21 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 5.03e-05/0.8574, allocations: 321.9 kB / 1.357 GB, free: 13.89 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.691e-05/0.8575, allocations: 20.14 kB / 1.357 GB, free: 13.89 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.246e-05/0.8575, allocations: 62.27 kB / 1.358 GB, free: 13.84 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.926e-05/0.8576, allocations: 25.12 kB / 1.358 GB, free: 13.84 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.8576, allocations: 0.75 kB / 1.358 GB, free: 13.84 MB / 0.8073 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001814/0.8578, allocations: 119.6 kB / 1.358 GB, free: 13.8 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 9.828e-06/0.8578, allocations: 4.562 kB / 1.358 GB, free: 13.8 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.461e-06/0.8578, allocations: 2.078 kB / 1.358 GB, free: 13.8 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.272e-05/0.8578, allocations: 9.922 kB / 1.358 GB, free: 13.79 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001224/0.858, allocations: 22.7 kB / 1.358 GB, free: 13.79 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.913e-06/0.858, allocations: 2 kB / 1.358 GB, free: 13.79 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001094/0.8581, allocations: 17.89 kB / 1.358 GB, free: 13.78 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.314e-05/0.8581, allocations: 4.812 kB / 1.358 GB, free: 13.78 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,booleanPulse.y,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * 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 6.043e-05/0.8582, allocations: 118.7 kB / 1.358 GB, free: 13.67 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.997e-05/0.8582, allocations: 8.5 kB / 1.358 GB, free: 13.66 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000283/0.8585, allocations: 136.9 kB / 1.358 GB, free: 13.62 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.966e-06/0.8585, allocations: 2.25 kB / 1.358 GB, free: 13.62 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.037e-06/0.8585, allocations: 0 / 1.358 GB, free: 13.62 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.429e-06/0.8585, allocations: 0.875 kB / 1.358 GB, free: 13.62 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005005/0.859, allocations: 404.6 kB / 1.358 GB, free: 13.35 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.859, allocations: 7.938 kB / 1.358 GB, free: 13.34 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.44e-05/0.8591, allocations: 18.36 kB / 1.358 GB, free: 13.34 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.486e-06/0.8591, allocations: 2.141 kB / 1.358 GB, free: 13.34 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.377e-05/0.8592, allocations: 3.047 kB / 1.358 GB, free: 13.34 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.054e-06/0.8592, allocations: 0.9375 kB / 1.358 GB, free: 13.34 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/0.8592, allocations: 9.203 kB / 1.358 GB, free: 13.33 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002227/0.8594, allocations: 207.8 kB / 1.359 GB, free: 13.2 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 2.365e-05/0.8594, allocations: 92.98 kB / 1.359 GB, free: 13.09 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.801e-05/0.8595, allocations: 4.875 kB / 1.359 GB, free: 13.09 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001401/0.8596, allocations: 11.97 kB / 1.359 GB, free: 13.09 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.374e-05/0.8597, allocations: 14.53 kB / 1.359 GB, free: 13.09 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.441e-05/0.8597, allocations: 4.906 kB / 1.359 GB, free: 13.09 MB / 0.8073 GB Notification: Performance of sort global known variables: time 4.595e-05/0.8597, allocations: 110.7 kB / 1.359 GB, free: 13 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.000318/0.8601, allocations: 50.95 kB / 1.359 GB, free: 13 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 (booleanPulse.y,lig.sampleTrigger,$whenCondition3,$whenCondition2,$whenCondition1,lig.on,lig.curSeed,booleanPulse.pulseStart) * Number of discrete states: 1 (lig.on) * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 11 * 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.000309/0.8604, allocations: 168.5 kB / 1.359 GB, free: 12.88 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.000168/0.8606, allocations: 77.28 kB / 1.359 GB, free: 12.88 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.473e-06/0.8606, allocations: 0 / 1.359 GB, free: 12.88 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 9.001e-05/0.8607, allocations: 56.7 kB / 1.359 GB, free: 12.87 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002229/0.8609, allocations: 24.72 kB / 1.359 GB, free: 12.86 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003624/0.8613, allocations: 143.6 kB / 1.359 GB, free: 12.78 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002638/0.8615, allocations: 0.7218 MB / 1.36 GB, free: 28.07 MB / 0.823 GB Notification: Performance of SimCode: time 2.6e-07/0.8615, allocations: 0.8438 kB / 1.36 GB, free: 28.07 MB / 0.823 GB Notification: Performance of Templates: time 0.004931/0.8665, allocations: 2.061 MB / 1.362 GB, free: 27.9 MB / 0.823 GB make -j1 -f Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.makefile (rm -f Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.sim & ./Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light.csv","../files/Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,lig.ill,lig.occ,lig.pArriv,lig.on Variables in the result:$whenCondition1,booleanPulse.Twidth,booleanPulse.period,booleanPulse.startTime,booleanPulse.width,ill.amplitude,ill.f,ill.offset,ill.phase,ill.startTime,ill.y,lig.AArriv,lig.AInter,lig.BArriv,lig.BInter,lig.CArriv,lig.CInter,lig.MArriv,lig.MInter,lig.ill,lig.occ,lig.on,lig.pArriv,lig.samplePeriod,lig.seed,lig.t0,time