Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.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.Hunt1979Light,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.Hunt1979Light") translateModel(Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light,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.Hunt1979Light") [: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.904/1.904, allocations: 387.2 MB / 394.5 MB, free: 13.61 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.001143/0.001143, allocations: 176.4 kB / 487 MB, free: 5.344 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.255/1.255, allocations: 221.3 MB / 0.7819 GB, free: 1.391 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.001066/0.001066, allocations: 90.88 kB / 0.9213 GB, free: 2.645 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 6.131e-06/6.272e-06, allocations: 4 kB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2086/0.2086, allocations: 142.3 MB / 1.205 GB, free: 26.2 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5813/0.79, allocations: 150.6 MB / 1.352 GB, free: 15.93 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002227/0.7903, allocations: 82.67 kB / 1.352 GB, free: 15.93 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.009125/0.7994, allocations: 2.86 MB / 1.355 GB, free: 15.77 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 7.524e-06/0.7994, allocations: 1.281 kB / 1.355 GB, free: 15.77 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.0005205/0.7999, allocations: 470.4 kB / 1.356 GB, free: 15.33 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.872e-05/0.8, allocations: 9.312 kB / 1.356 GB, free: 15.33 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.251e-05/0.8, allocations: 8.625 kB / 1.356 GB, free: 15.32 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001101/0.8002, allocations: 174.2 kB / 1.356 GB, free: 15.12 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.648e-05/0.8002, allocations: 36.33 kB / 1.356 GB, free: 15.09 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.727e-05/0.8003, allocations: 7.969 kB / 1.356 GB, free: 15.09 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001023/0.8004, allocations: 34.91 kB / 1.356 GB, free: 15.08 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001053/0.8005, allocations: 65.94 kB / 1.356 GB, free: 15.05 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.594e-06/0.8005, allocations: 0 / 1.356 GB, free: 15.05 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.385e-05/0.8005, allocations: 2.234 kB / 1.356 GB, free: 15.05 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.35e-06/0.8005, allocations: 1.531 kB / 1.356 GB, free: 15.05 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004594/0.801, allocations: 310.8 kB / 1.356 GB, free: 14.8 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001015/0.8011, allocations: 56 kB / 1.356 GB, free: 14.77 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.296e-05/0.8012, allocations: 29.8 kB / 1.356 GB, free: 14.77 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 2.448e-05/0.8012, allocations: 0.8438 kB / 1.356 GB, free: 14.77 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000108/0.8013, allocations: 83.89 kB / 1.356 GB, free: 14.71 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=10): time 1.253e-06/0.8013, allocations: 0 / 1.356 GB, free: 14.71 MB / 0.8073 GB Notification: Performance of matching and sorting (n=10): time 0.0002416/0.8016, allocations: 93.05 kB / 1.356 GB, free: 14.67 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.303e-05/0.8016, allocations: 57.31 kB / 1.357 GB, free: 14.61 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.105e-05/0.8017, allocations: 116.1 kB / 1.357 GB, free: 14.51 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.381e-05/0.8017, allocations: 28.23 kB / 1.357 GB, free: 14.48 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 2.77e-05/0.8017, allocations: 87.47 kB / 1.357 GB, free: 14.39 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 2.335e-05/0.8018, allocations: 25.28 kB / 1.357 GB, free: 14.38 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.443e-06/0.8018, allocations: 0 / 1.357 GB, free: 14.38 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 4.991e-05/0.8018, allocations: 320.7 kB / 1.357 GB, free: 14.07 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.323e-05/0.8019, allocations: 23.5 kB / 1.357 GB, free: 14.06 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.801e-05/0.8019, allocations: 58.33 kB / 1.357 GB, free: 14.02 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.02e-05/0.802, allocations: 32.5 kB / 1.357 GB, free: 14.01 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.802, allocations: 0 / 1.357 GB, free: 14.01 MB / 0.8073 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001651/0.8022, allocations: 103 kB / 1.357 GB, free: 13.97 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.268e-05/0.8022, allocations: 8.969 kB / 1.357 GB, free: 13.96 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.609e-06/0.8022, allocations: 1.031 kB / 1.357 GB, free: 13.96 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.22e-05/0.8022, allocations: 2.812 kB / 1.357 GB, free: 13.96 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001263/0.8023, allocations: 25.8 kB / 1.357 GB, free: 13.96 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.221e-06/0.8024, allocations: 1.875 kB / 1.357 GB, free: 13.96 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000119/0.8025, allocations: 19.53 kB / 1.357 GB, free: 13.95 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.329e-05/0.8025, allocations: 4.219 kB / 1.357 GB, free: 13.95 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.814e-05/0.8026, allocations: 111.7 kB / 1.357 GB, free: 13.84 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.019e-05/0.8026, allocations: 21.47 kB / 1.357 GB, free: 13.83 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.168e-05/0.8026, allocations: 9.469 kB / 1.357 GB, free: 13.83 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.477e-06/0.8026, allocations: 3.344 kB / 1.357 GB, free: 13.83 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.8026, allocations: 1.062 kB / 1.357 GB, free: 13.83 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.8027, allocations: 0 / 1.357 GB, free: 13.83 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000401/0.8031, allocations: 369.5 kB / 1.358 GB, free: 13.55 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.8031, allocations: 0.7812 kB / 1.358 GB, free: 13.55 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.654e-05/0.8032, allocations: 11.3 kB / 1.358 GB, free: 13.55 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.827e-06/0.8032, allocations: 4.844 kB / 1.358 GB, free: 13.55 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.372e-05/0.8032, allocations: 6.547 kB / 1.358 GB, free: 13.55 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.256e-06/0.8032, allocations: 1.844 kB / 1.358 GB, free: 13.55 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.993e-06/0.8032, allocations: 3.906 kB / 1.358 GB, free: 13.54 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001867/0.8034, allocations: 195.4 kB / 1.358 GB, free: 13.4 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 2.498e-05/0.8034, allocations: 83.94 kB / 1.358 GB, free: 13.3 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.883e-05/0.8035, allocations: 2.375 kB / 1.358 GB, free: 13.3 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001483/0.8036, allocations: 13.95 kB / 1.358 GB, free: 13.3 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.711e-05/0.8037, allocations: 8.406 kB / 1.358 GB, free: 13.3 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.399e-05/0.8037, allocations: 12.88 kB / 1.358 GB, free: 13.3 MB / 0.8073 GB Notification: Performance of sort global known variables: time 4.321e-05/0.8037, allocations: 100.6 kB / 1.358 GB, free: 13.22 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0003324/0.8041, allocations: 48.8 kB / 1.358 GB, free: 13.21 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 (10): * Single equations (assignments): 7 * 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.0003691/0.8045, allocations: 172 kB / 1.358 GB, free: 13.1 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0001785/0.8046, allocations: 67.94 kB / 1.359 GB, free: 13.1 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.8047, allocations: 4 kB / 1.359 GB, free: 13.09 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 9.335e-05/0.8048, allocations: 40.33 kB / 1.359 GB, free: 13.09 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002447/0.805, allocations: 7.141 kB / 1.359 GB, free: 13.09 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004029/0.8054, allocations: 115.5 kB / 1.359 GB, free: 13.02 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003556/0.8058, allocations: 0.7138 MB / 1.359 GB, free: 28.32 MB / 0.823 GB Notification: Performance of SimCode: time 2.1e-07/0.8058, allocations: 4 kB / 1.359 GB, free: 28.31 MB / 0.823 GB Notification: Performance of Templates: time 0.005462/0.8113, allocations: 1.962 MB / 1.361 GB, free: 28.15 MB / 0.823 GB make -j1 -f Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.makefile (rm -f Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.sim & ./Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Lighting_Validation_Hunt1979Light.csv","../files/Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.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:ill.amplitude,ill.f,ill.offset,ill.phase,ill.startTime,ill.y,lig.AArriv,lig.BArriv,lig.CArriv,lig.MArriv,lig.ill,lig.occ,lig.on,lig.pArriv,lig.samplePeriod,lig.seed,lig.t0,occ.Twidth,occ.period,occ.startTime,occ.width,time