Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.216/2.216, allocations: 393.5 MB / 408.4 MB, free: 11.02 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.001256/0.001256, allocations: 180 kB / 0.4902 GB, free: 2.262 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.73/1.73, allocations: 223.1 MB / 0.7992 GB, free: 14.77 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009433/0.0009433, allocations: 92.27 kB / 0.9396 GB, free: 1.926 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003896/0.0003897, allocations: 10.31 kB / 1.09 GB, free: 216.4 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3816/0.382, allocations: 143 MB / 1.229 GB, free: 105.8 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2057/0.5878, allocations: 152.2 MB / 1.378 GB, free: 1.367 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002616/0.5881, allocations: 87.94 kB / 1.378 GB, free: 1.281 MB / 0.8698 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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.009584/0.5977, allocations: 3.22 MB / 1.381 GB, free: 14.05 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.194e-06/0.5978, allocations: 0 / 1.381 GB, free: 14.05 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 6.402e-06/0.5978, allocations: 0 / 1.381 GB, free: 14.05 MB / 0.8855 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.0006729/0.5985, allocations: 474.4 kB / 1.382 GB, free: 13.53 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.571e-05/0.5985, allocations: 8.562 kB / 1.382 GB, free: 13.52 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.395e-05/0.5986, allocations: 15.8 kB / 1.382 GB, free: 13.51 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001605/0.5987, allocations: 171 kB / 1.382 GB, free: 13.3 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.991e-05/0.5988, allocations: 3.938 kB / 1.382 GB, free: 13.3 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.242e-05/0.5988, allocations: 11.98 kB / 1.382 GB, free: 13.29 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001818/0.599, allocations: 73.66 kB / 1.382 GB, free: 13.21 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.145e-06/0.599, allocations: 0 / 1.382 GB, free: 13.21 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.576e-05/0.599, allocations: 4 kB / 1.382 GB, free: 13.2 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.979e-06/0.599, allocations: 0 / 1.382 GB, free: 13.2 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001421/0.5992, allocations: 43.91 kB / 1.382 GB, free: 13.16 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006154/0.5998, allocations: 344.7 kB / 1.382 GB, free: 12.77 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001453/0.6, allocations: 58.66 kB / 1.382 GB, free: 12.71 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 2.021e-05/0.6, allocations: 3.938 kB / 1.382 GB, free: 12.7 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002045/0.6002, allocations: 91.36 kB / 1.382 GB, free: 12.6 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=10): time 1.613e-06/0.6002, allocations: 7.938 kB / 1.382 GB, free: 12.59 MB / 0.8855 GB Notification: Performance of matching and sorting (n=10): time 0.0004347/0.6007, allocations: 165.4 kB / 1.383 GB, free: 12.43 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.307e-05/0.6007, allocations: 51.41 kB / 1.383 GB, free: 12.36 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.805e-05/0.6008, allocations: 120.3 kB / 1.383 GB, free: 12.24 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 3.231e-05/0.6009, allocations: 37.7 kB / 1.383 GB, free: 12.2 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 5.535e-05/0.6009, allocations: 88.28 kB / 1.383 GB, free: 12.11 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 2.745e-05/0.6009, allocations: 23.89 kB / 1.383 GB, free: 12.08 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.925e-06/0.601, allocations: 4 kB / 1.383 GB, free: 12.08 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001273/0.6011, allocations: 318.8 kB / 1.383 GB, free: 11.76 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.402e-05/0.6012, allocations: 31.97 kB / 1.383 GB, free: 11.73 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001055/0.6013, allocations: 73.08 kB / 1.383 GB, free: 11.64 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.534e-05/0.6014, allocations: 31.98 kB / 1.383 GB, free: 11.61 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.6014, allocations: 0 / 1.383 GB, free: 11.61 MB / 0.8855 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002513/0.6017, allocations: 141.5 kB / 1.383 GB, free: 11.46 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.592e-05/0.6017, allocations: 6.031 kB / 1.383 GB, free: 11.46 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.849e-06/0.6017, allocations: 0 / 1.383 GB, free: 11.46 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.758e-05/0.6017, allocations: 7.984 kB / 1.383 GB, free: 11.45 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000115/0.6019, allocations: 19.92 kB / 1.383 GB, free: 11.43 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.795e-06/0.6019, allocations: 3.953 kB / 1.383 GB, free: 11.43 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000111/0.602, allocations: 28.02 kB / 1.383 GB, free: 11.4 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.477e-05/0.602, allocations: 4 kB / 1.383 GB, free: 11.39 MB / 0.8855 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 () * Number of clocked 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 0.000108/0.6021, allocations: 119 kB / 1.384 GB, free: 11.27 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.088e-05/0.6022, allocations: 7.906 kB / 1.384 GB, free: 11.26 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003248/0.6025, allocations: 153.9 kB / 1.384 GB, free: 11.11 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.385e-06/0.6025, allocations: 0 / 1.384 GB, free: 11.11 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.945e-06/0.6025, allocations: 8 kB / 1.384 GB, free: 11.1 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.17e-06/0.6025, allocations: 3.953 kB / 1.384 GB, free: 11.09 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005672/0.6031, allocations: 426.4 kB / 1.384 GB, free: 10.62 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.754e-06/0.6031, allocations: 0 / 1.384 GB, free: 10.62 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.137e-05/0.6032, allocations: 16 kB / 1.384 GB, free: 10.61 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.825e-06/0.6032, allocations: 0 / 1.384 GB, free: 10.61 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.822e-05/0.6032, allocations: 7.984 kB / 1.384 GB, free: 10.6 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.308e-06/0.6032, allocations: 3.953 kB / 1.384 GB, free: 10.59 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.6033, allocations: 384 / 1.384 GB, free: 10.59 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003375/0.6036, allocations: 231.3 kB / 1.384 GB, free: 10.35 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 7.135e-05/0.6037, allocations: 92.94 kB / 1.384 GB, free: 10.24 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.35e-05/0.6037, allocations: 3.938 kB / 1.384 GB, free: 10.24 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001184/0.6038, allocations: 19.92 kB / 1.385 GB, free: 10.22 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.5e-05/0.6039, allocations: 15.94 kB / 1.385 GB, free: 10.2 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.144e-05/0.6039, allocations: 0 / 1.385 GB, free: 10.2 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 7.164e-05/0.604, allocations: 99.27 kB / 1.385 GB, free: 10.11 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.3e-07/0.604, allocations: 0 / 1.385 GB, free: 10.11 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0003389/0.6044, allocations: 51.98 kB / 1.385 GB, free: 10.05 MB / 0.8855 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) * Number of clocked states: 0 () * 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.0004408/0.6048, allocations: 167.7 kB / 1.385 GB, free: 9.898 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0002744/0.6051, allocations: 83.98 kB / 1.385 GB, free: 9.816 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 6.512e-06/0.6051, allocations: 4.25 kB / 1.385 GB, free: 9.812 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0001175/0.6052, allocations: 55.86 kB / 1.385 GB, free: 9.758 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002255/0.6055, allocations: 8.672 kB / 1.385 GB, free: 9.75 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005998/0.6061, allocations: 239.1 kB / 1.385 GB, free: 9.484 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003796/0.6065, allocations: 0.6966 MB / 1.386 GB, free: 8.762 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 5.579e-05/0.6065, allocations: 12.42 kB / 1.386 GB, free: 8.75 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.323e-05/0.6066, allocations: 19.36 kB / 1.386 GB, free: 8.73 MB / 0.8855 GB Notification: Performance of SimCode: time 2.61e-07/0.6066, allocations: 0 / 1.386 GB, free: 8.73 MB / 0.8855 GB Notification: Performance of Templates: time 0.005415/0.612, allocations: 1.802 MB / 1.388 GB, free: 6.934 MB / 0.8855 GB make -j1 -f Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1.makefile (rm -f Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1.sim & ./Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Lighting_Validation_Love1998Light1.csv","../files/Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches