Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Occupants.Office.Lighting.Validation.Love1998Light2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|lig.ill|lig.occ|lig.p|lig.on",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2") translateModel(Buildings.Occupants.Office.Lighting.Validation.Love1998Light2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|lig.ill|lig.occ|lig.p|lig.on",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2") [: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 7.0.3-maint.7.0.x/package.mo): time 1.182/1.182, allocations: 249.4 MB / 256.7 MB, free: 7.059 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009208/0.0009208, allocations: 189.2 kB / 316 MB, free: 3.582 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.02/1.02, allocations: 205.2 MB / 0.5667 GB, free: 15.74 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008086/0.0008089, allocations: 93.94 kB / 0.671 GB, free: 4.863 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 5.82e-06/5.84e-06, allocations: 4 kB / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1433/0.1433, allocations: 106.3 MB / 0.8846 GB, free: 12.7 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4355/0.5788, allocations: 134.2 MB / 1.016 GB, free: 4.547 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001973/0.5791, allocations: 80.83 kB / 1.016 GB, free: 4.504 MB / 0.6355 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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.008471/0.5876, allocations: 2.83 MB / 1.018 GB, free: 2.148 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 6.823e-06/0.5876, allocations: 0 / 1.018 GB, free: 2.148 MB / 0.6355 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.0005768/0.5882, allocations: 464.3 kB / 1.019 GB, free: 1.645 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.307e-05/0.5882, allocations: 12.03 kB / 1.019 GB, free: 1.633 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.995e-05/0.5883, allocations: 11.89 kB / 1.019 GB, free: 1.621 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001504/0.5884, allocations: 168.4 kB / 1.019 GB, free: 1.418 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.78e-05/0.5884, allocations: 11.28 kB / 1.019 GB, free: 1.41 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.593e-05/0.5885, allocations: 7.984 kB / 1.019 GB, free: 1.402 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.029e-05/0.5886, allocations: 29.92 kB / 1.019 GB, free: 1.383 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001032/0.5887, allocations: 59.05 kB / 1.019 GB, free: 1.328 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.015e-06/0.5887, allocations: 0 / 1.019 GB, free: 1.328 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.612e-05/0.5887, allocations: 7.422 kB / 1.019 GB, free: 1.324 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.009e-06/0.5887, allocations: 3.938 kB / 1.019 GB, free: 1.32 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004358/0.5892, allocations: 296.8 kB / 1.019 GB, free: 1.012 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 9.34e-05/0.5893, allocations: 56.44 kB / 1.02 GB, free: 0.9609 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.66e-05/0.5893, allocations: 26.2 kB / 1.02 GB, free: 0.9414 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.165e-05/0.5893, allocations: 7.984 kB / 1.02 GB, free: 0.9336 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.806e-05/0.5894, allocations: 80.28 kB / 1.02 GB, free: 0.8555 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=10): time 1.353e-06/0.5895, allocations: 0 / 1.02 GB, free: 0.8555 MB / 0.6355 GB Notification: Performance of matching and sorting (n=10): time 0.0002211/0.5897, allocations: 96.8 kB / 1.02 GB, free: 0.7695 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.913e-05/0.5897, allocations: 51.41 kB / 1.02 GB, free: 0.707 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.931e-05/0.5898, allocations: 124.2 kB / 1.02 GB, free: 0.5898 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.447e-05/0.5898, allocations: 25.7 kB / 1.02 GB, free: 0.5586 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 3.914e-05/0.5899, allocations: 91.36 kB / 1.02 GB, free: 476 kB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.32e-05/0.5899, allocations: 19.25 kB / 1.02 GB, free: 460 kB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.85e-06/0.5899, allocations: 3.938 kB / 1.02 GB, free: 456 kB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 8.701e-05/0.59, allocations: 318 kB / 1.02 GB, free: 132 kB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.715e-05/0.59, allocations: 19.06 kB / 1.02 GB, free: 120 kB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.61e-05/0.5901, allocations: 63.58 kB / 1.02 GB, free: 44 kB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.106e-05/0.5902, allocations: 21.98 kB / 1.02 GB, free: 28 kB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.442e-06/0.5902, allocations: 0 / 1.02 GB, free: 28 kB / 0.6355 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001664/0.5903, allocations: 107.8 kB / 1.021 GB, free: 15.93 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.012e-05/0.5904, allocations: 4.125 kB / 1.021 GB, free: 15.93 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.5904, allocations: 8 kB / 1.021 GB, free: 15.92 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.068e-05/0.5904, allocations: 3.938 kB / 1.021 GB, free: 15.91 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001105/0.5905, allocations: 15.98 kB / 1.021 GB, free: 15.9 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.796e-06/0.5905, allocations: 15.91 kB / 1.021 GB, free: 15.88 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.944e-05/0.5906, allocations: 8 kB / 1.021 GB, free: 15.88 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.362e-05/0.5906, allocations: 7.5 kB / 1.021 GB, free: 15.87 MB / 0.6511 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 7.002e-05/0.5907, allocations: 116.9 kB / 1.021 GB, free: 15.75 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.556e-05/0.5907, allocations: 7.906 kB / 1.021 GB, free: 15.74 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002067/0.5909, allocations: 115.2 kB / 1.021 GB, free: 15.65 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.591, allocations: 0 / 1.021 GB, free: 15.65 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.591, allocations: 0 / 1.021 GB, free: 15.65 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.591, allocations: 0 / 1.021 GB, free: 15.65 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004097/0.5914, allocations: 380 kB / 1.021 GB, free: 15.27 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.5914, allocations: 4 kB / 1.021 GB, free: 15.26 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.384e-05/0.5915, allocations: 12.03 kB / 1.021 GB, free: 15.25 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.567e-06/0.5915, allocations: 3.984 kB / 1.021 GB, free: 15.25 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.3e-05/0.5915, allocations: 7.891 kB / 1.021 GB, free: 15.24 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.5915, allocations: 8 kB / 1.021 GB, free: 15.23 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.5915, allocations: 0 / 1.021 GB, free: 15.23 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001783/0.5917, allocations: 191.9 kB / 1.021 GB, free: 15.05 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 5.67e-05/0.5918, allocations: 85.02 kB / 1.021 GB, free: 14.95 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.49e-05/0.5918, allocations: 3.984 kB / 1.021 GB, free: 14.94 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000126/0.5919, allocations: 16.78 kB / 1.021 GB, free: 14.93 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.629e-05/0.592, allocations: 11.97 kB / 1.022 GB, free: 14.91 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.032e-05/0.592, allocations: 6.812 kB / 1.022 GB, free: 14.91 MB / 0.6511 GB Notification: Performance of sort global known variables: time 4.675e-05/0.5921, allocations: 96.53 kB / 1.022 GB, free: 14.82 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002959/0.5924, allocations: 47.98 kB / 1.022 GB, free: 14.78 MB / 0.6511 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.0003281/0.5927, allocations: 179.4 kB / 1.022 GB, free: 14.61 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001353/0.5928, allocations: 62.23 kB / 1.022 GB, free: 14.56 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.5928, allocations: 0 / 1.022 GB, free: 14.56 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 6.306e-05/0.5929, allocations: 42.5 kB / 1.022 GB, free: 14.53 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002027/0.5931, allocations: 11.98 kB / 1.022 GB, free: 14.52 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003263/0.5935, allocations: 125.6 kB / 1.022 GB, free: 14.39 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002382/0.5937, allocations: 0.7192 MB / 1.023 GB, free: 13.64 MB / 0.6511 GB Notification: Performance of SimCode: time 2.4e-07/0.5937, allocations: 3.938 kB / 1.023 GB, free: 13.64 MB / 0.6511 GB Notification: Performance of Templates: time 0.003922/0.5976, allocations: 1.889 MB / 1.025 GB, free: 11.77 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.makefile (rm -f Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.sim & ./Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Occupants_Office_Lighting_Validation_Love1998Light2.csv","../files/Buildings_maint.7.0.x_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches