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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.024/2.024, allocations: 387.4 MB / 394.9 MB, free: 13.35 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.001053/0.001053, allocations: 180.8 kB / 487.4 MB, free: 5.031 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.361/1.361, allocations: 221.5 MB / 0.7824 GB, free: 0.9844 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.000827/0.0008269, allocations: 95.84 kB / 0.9219 GB, free: 2.227 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.461e-05/1.463e-05, allocations: 4 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2135/0.2135, allocations: 142.4 MB / 1.206 GB, free: 43.98 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7359/0.9495, allocations: 150.7 MB / 1.353 GB, free: 18.38 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001953/0.9497, allocations: 85.72 kB / 1.353 GB, free: 18.38 MB / 0.823 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 - DAE generated: time 0.008889/0.9586, allocations: 3.178 MB / 1.356 GB, free: 33.92 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.833e-06/0.9586, allocations: 0.75 kB / 1.356 GB, free: 33.92 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 7.514e-06/0.9586, allocations: 7.781 kB / 1.356 GB, free: 33.92 MB / 0.8386 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.0004672/0.9591, allocations: 456.7 kB / 1.357 GB, free: 33.48 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.682e-05/0.9592, allocations: 12.03 kB / 1.357 GB, free: 33.48 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.664e-05/0.9592, allocations: 7.719 kB / 1.357 GB, free: 33.47 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001067/0.9593, allocations: 168.4 kB / 1.357 GB, free: 33.27 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.849e-05/0.9593, allocations: 4.672 kB / 1.357 GB, free: 33.27 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.617e-05/0.9594, allocations: 0 / 1.357 GB, free: 33.27 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.732e-05/0.9595, allocations: 40.86 kB / 1.357 GB, free: 33.27 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001323/0.9596, allocations: 63.86 kB / 1.357 GB, free: 33.23 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.876e-06/0.9596, allocations: 4 kB / 1.357 GB, free: 33.23 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.275e-05/0.9596, allocations: 0 / 1.357 GB, free: 33.23 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.898e-06/0.9597, allocations: 0 / 1.357 GB, free: 33.23 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000524/0.9602, allocations: 313.3 kB / 1.357 GB, free: 32.98 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 9.099e-05/0.9603, allocations: 54.77 kB / 1.357 GB, free: 32.96 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.246e-05/0.9603, allocations: 32.84 kB / 1.357 GB, free: 32.95 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.284e-05/0.9604, allocations: 96 / 1.357 GB, free: 32.95 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001437/0.9605, allocations: 89.58 kB / 1.358 GB, free: 32.9 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=10): time 1.182e-06/0.9605, allocations: 0 / 1.358 GB, free: 32.9 MB / 0.8386 GB Notification: Performance of matching and sorting (n=10): time 0.0002277/0.9608, allocations: 107 kB / 1.358 GB, free: 32.86 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.266e-05/0.9608, allocations: 63.39 kB / 1.358 GB, free: 32.79 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.008e-05/0.9609, allocations: 108.2 kB / 1.358 GB, free: 32.7 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.324e-05/0.9609, allocations: 30.17 kB / 1.358 GB, free: 32.67 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 4.918e-05/0.961, allocations: 92.56 kB / 1.358 GB, free: 32.58 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.246e-05/0.961, allocations: 18.8 kB / 1.358 GB, free: 32.57 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.142e-06/0.961, allocations: 0 / 1.358 GB, free: 32.57 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001022/0.9611, allocations: 324.4 kB / 1.358 GB, free: 32.26 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.323e-05/0.9611, allocations: 18.94 kB / 1.358 GB, free: 32.26 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.502e-05/0.9612, allocations: 63 kB / 1.358 GB, free: 32.21 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.499e-05/0.9612, allocations: 27.77 kB / 1.358 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.9612, allocations: 0 / 1.358 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001295/0.9614, allocations: 110.5 kB / 1.358 GB, free: 32.16 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.128e-05/0.9614, allocations: 3.812 kB / 1.358 GB, free: 32.16 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/0.9614, allocations: 3.875 kB / 1.358 GB, free: 32.16 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.141e-05/0.9614, allocations: 96 / 1.358 GB, free: 32.16 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001038/0.9615, allocations: 25.02 kB / 1.358 GB, free: 32.15 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.461e-06/0.9615, allocations: 6.219 kB / 1.358 GB, free: 32.15 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.058e-05/0.9616, allocations: 14.03 kB / 1.358 GB, free: 32.14 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.055e-05/0.9617, allocations: 3.844 kB / 1.358 GB, free: 32.14 MB / 0.8386 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.219e-05/0.9617, allocations: 118.2 kB / 1.359 GB, free: 32.03 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.543e-05/0.9618, allocations: 10.47 kB / 1.359 GB, free: 32.02 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001998/0.962, allocations: 131.2 kB / 1.359 GB, free: 31.98 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.434e-06/0.962, allocations: 0 / 1.359 GB, free: 31.98 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.962, allocations: 0 / 1.359 GB, free: 31.98 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.962, allocations: 2.484 kB / 1.359 GB, free: 31.98 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003643/0.9624, allocations: 394.9 kB / 1.359 GB, free: 31.7 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.9624, allocations: 0 / 1.359 GB, free: 31.7 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.374e-05/0.9624, allocations: 11.5 kB / 1.359 GB, free: 31.7 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.294e-06/0.9625, allocations: 0 / 1.359 GB, free: 31.7 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.092e-05/0.9625, allocations: 2.438 kB / 1.359 GB, free: 31.7 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.9625, allocations: 0 / 1.359 GB, free: 31.7 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.474e-06/0.9625, allocations: 3.984 kB / 1.359 GB, free: 31.7 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001746/0.9627, allocations: 213.2 kB / 1.359 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.604e-05/0.9627, allocations: 91.78 kB / 1.359 GB, free: 31.45 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.324e-05/0.9627, allocations: 1.438 kB / 1.359 GB, free: 31.45 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001082/0.9628, allocations: 14.09 kB / 1.359 GB, free: 31.45 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.728e-05/0.9629, allocations: 12.44 kB / 1.359 GB, free: 31.45 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.428e-06/0.9629, allocations: 3.969 kB / 1.359 GB, free: 31.45 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 5.419e-05/0.963, allocations: 104.6 kB / 1.36 GB, free: 31.37 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.4e-07/0.963, allocations: 4 kB / 1.36 GB, free: 31.37 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002749/0.9632, allocations: 41.3 kB / 1.36 GB, free: 31.36 MB / 0.8386 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.000299/0.9635, allocations: 175.2 kB / 1.36 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001239/0.9637, allocations: 67.05 kB / 1.36 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.272e-06/0.9637, allocations: 4 kB / 1.36 GB, free: 31.24 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 5.494e-05/0.9638, allocations: 35.02 kB / 1.36 GB, free: 31.24 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001846/0.9639, allocations: 13.62 kB / 1.36 GB, free: 31.24 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002574/0.9642, allocations: 125.3 kB / 1.36 GB, free: 31.16 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002181/0.9644, allocations: 0.6936 MB / 1.361 GB, free: 30.46 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 4.283e-05/0.9645, allocations: 15.22 kB / 1.361 GB, free: 30.46 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.892e-05/0.9645, allocations: 14.38 kB / 1.361 GB, free: 30.45 MB / 0.8386 GB Notification: Performance of SimCode: time 2.4e-07/0.9645, allocations: 0 / 1.361 GB, free: 30.45 MB / 0.8386 GB Notification: Performance of Templates: time 0.003474/0.968, allocations: 1.775 MB / 1.362 GB, free: 30.29 MB / 0.8386 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