Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_10_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_10_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001684/0.001684, allocations: 106.3 kB / 16.4 MB, free: 6.461 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001814/0.001815, allocations: 192 kB / 17.34 MB, free: 5.715 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.592/1.592, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.691/2.691, allocations: 437.1 MB / 0.7112 GB, free: 4.352 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001974/0.001974, allocations: 71.88 kB / 1.019 GB, free: 9.426 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9709/0.9729, allocations: 151.6 MB / 1.167 GB, free: 3.859 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Love1998Light2): time 0.002807/0.9758, allocations: 1.517 MB / 1.169 GB, free: 2.332 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001431/0.9772, allocations: 0.7479 MB / 1.169 GB, free: 1.578 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.52e-05/0.9773, allocations: 4 kB / 1.169 GB, free: 1.574 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 3.491e-05/0.9773, allocations: 3.938 kB / 1.17 GB, free: 1.57 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 9.717e-05/0.9774, allocations: 23.78 kB / 1.17 GB, free: 1.547 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005677/0.978, allocations: 123.6 kB / 1.17 GB, free: 1.426 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0001394/0.9782, allocations: 79.72 kB / 1.17 GB, free: 1.348 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001006/0.9783, allocations: 15.98 kB / 1.17 GB, free: 1.332 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000103/0.9784, allocations: 51.78 kB / 1.17 GB, free: 1.281 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 8.388e-05/0.9785, allocations: 35.89 kB / 1.17 GB, free: 1.246 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 2.096e-05/0.9785, allocations: 4 kB / 1.17 GB, free: 1.242 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001927/0.9787, allocations: 99.78 kB / 1.17 GB, free: 1.145 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 2.981e-05/0.9787, allocations: 19.97 kB / 1.17 GB, free: 1.125 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 5.691e-05/0.9788, allocations: 35.8 kB / 1.17 GB, free: 1.09 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0002892/0.9791, allocations: 148.1 kB / 1.17 GB, free: 0.9492 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.9791, allocations: 0 / 1.17 GB, free: 0.9492 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.332e-06/0.9791, allocations: 0 / 1.17 GB, free: 0.9492 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 9.758e-06/0.9791, allocations: 0 / 1.17 GB, free: 0.9492 MB / 0.8887 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.0008345/0.98, allocations: 470.3 kB / 1.171 GB, free: 440 kB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.976e-05/0.98, allocations: 11.97 kB / 1.171 GB, free: 428 kB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.628e-05/0.9801, allocations: 8.891 kB / 1.171 GB, free: 420 kB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001712/0.9802, allocations: 184.1 kB / 1.171 GB, free: 196 kB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.226e-05/0.9803, allocations: 12.38 kB / 1.171 GB, free: 184 kB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.989e-05/0.9803, allocations: 4.375 kB / 1.171 GB, free: 180 kB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000196/0.9805, allocations: 77.95 kB / 1.171 GB, free: 96 kB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.468e-06/0.9805, allocations: 4 kB / 1.171 GB, free: 92 kB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.379e-05/0.9805, allocations: 0 / 1.171 GB, free: 92 kB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.227e-06/0.9806, allocations: 0 / 1.171 GB, free: 92 kB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001484/0.9807, allocations: 43.97 kB / 1.171 GB, free: 48 kB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005885/0.9813, allocations: 320.7 kB / 1.171 GB, free: 15.68 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001789/0.9815, allocations: 62.55 kB / 1.171 GB, free: 15.61 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.773e-05/0.9816, allocations: 36.84 kB / 1.171 GB, free: 15.57 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 2.438e-05/0.9816, allocations: 4 kB / 1.171 GB, free: 15.57 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002524/0.9819, allocations: 91.39 kB / 1.171 GB, free: 15.47 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=10): time 1.663e-06/0.9819, allocations: 0 / 1.171 GB, free: 15.47 MB / 0.9044 GB Notification: Performance of matching and sorting (n=10): time 0.0004475/0.9823, allocations: 161.5 kB / 1.172 GB, free: 15.3 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.737e-05/0.9824, allocations: 55.41 kB / 1.172 GB, free: 15.24 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001308/0.9825, allocations: 131.7 kB / 1.172 GB, free: 15.1 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.325e-05/0.9826, allocations: 25.7 kB / 1.172 GB, free: 15.07 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 6.138e-05/0.9826, allocations: 92.38 kB / 1.172 GB, free: 14.97 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 3.34e-05/0.9827, allocations: 31.92 kB / 1.172 GB, free: 14.94 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.834e-05/0.9828, allocations: 34.08 kB / 1.172 GB, free: 14.9 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001527/0.9829, allocations: 322.8 kB / 1.172 GB, free: 14.58 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.757e-05/0.983, allocations: 31.98 kB / 1.172 GB, free: 14.55 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001094/0.9831, allocations: 61.14 kB / 1.172 GB, free: 14.47 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001966/0.9833, allocations: 108.9 kB / 1.172 GB, free: 14.34 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.9834, allocations: 0 / 1.172 GB, free: 14.34 MB / 0.9044 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002694/0.9836, allocations: 133.5 kB / 1.173 GB, free: 14.21 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.875e-05/0.9837, allocations: 8 kB / 1.173 GB, free: 14.2 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.9837, allocations: 0 / 1.173 GB, free: 14.2 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.711e-05/0.9837, allocations: 4 kB / 1.173 GB, free: 14.2 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001131/0.9838, allocations: 16.11 kB / 1.173 GB, free: 14.18 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.175e-05/0.9838, allocations: 7.938 kB / 1.173 GB, free: 14.17 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001016/0.9839, allocations: 15.94 kB / 1.173 GB, free: 14.16 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.685e-05/0.984, allocations: 8 kB / 1.173 GB, free: 14.15 MB / 0.9044 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 (lig.curSeed,$PRE.lig.curSeed,lig.on,$PRE.lig.on,$whenCondition3,lig.sampleTrigger,$whenCondition2,occ.pulseStart,$PRE.occ.pulseStart,occ.y,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001101/0.9841, allocations: 123.4 kB / 1.173 GB, free: 14.02 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.384e-05/0.9841, allocations: 7.953 kB / 1.173 GB, free: 14.01 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000346/0.9845, allocations: 149.9 kB / 1.173 GB, free: 13.86 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.559e-06/0.9845, allocations: 8 kB / 1.173 GB, free: 13.85 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.9845, allocations: 0 / 1.173 GB, free: 13.85 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.242e-06/0.9845, allocations: 3.984 kB / 1.173 GB, free: 13.85 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006187/0.9851, allocations: 422.3 kB / 1.173 GB, free: 13.38 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.9851, allocations: 0 / 1.173 GB, free: 13.38 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.235e-05/0.9852, allocations: 15.92 kB / 1.173 GB, free: 13.36 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.9852, allocations: 0 / 1.173 GB, free: 13.36 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.458e-05/0.9852, allocations: 4 kB / 1.173 GB, free: 13.36 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.9852, allocations: 4 kB / 1.173 GB, free: 13.36 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.769e-06/0.9853, allocations: 7.922 kB / 1.173 GB, free: 13.35 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000319/0.9856, allocations: 219.5 kB / 1.173 GB, free: 13.12 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 6.259e-05/0.9857, allocations: 93.06 kB / 1.174 GB, free: 13.01 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.237e-05/0.9857, allocations: 0 / 1.174 GB, free: 13.01 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001149/0.9858, allocations: 7.984 kB / 1.174 GB, free: 13 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.727e-05/0.9859, allocations: 23.86 kB / 1.174 GB, free: 12.98 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.53e-05/0.9859, allocations: 4 kB / 1.174 GB, free: 12.97 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 6.844e-05/0.986, allocations: 100.7 kB / 1.174 GB, free: 12.88 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.41e-07/0.986, allocations: 0 / 1.174 GB, free: 12.88 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.000324/0.9863, allocations: 51.86 kB / 1.174 GB, free: 12.82 MB / 0.9044 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 (occ.y,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003943/0.9867, allocations: 167.1 kB / 1.174 GB, free: 12.67 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0002573/0.987, allocations: 87.89 kB / 1.174 GB, free: 12.58 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 1.734e-06/0.987, allocations: 0 / 1.174 GB, free: 12.58 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0001225/0.9871, allocations: 43.92 kB / 1.174 GB, free: 12.54 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002886/0.9874, allocations: 15.98 kB / 1.174 GB, free: 12.52 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004798/0.9879, allocations: 219.7 kB / 1.174 GB, free: 12.28 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003285/0.9882, allocations: 0.6924 MB / 1.175 GB, free: 11.56 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 4.592e-05/0.9883, allocations: 12.42 kB / 1.175 GB, free: 11.55 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.574e-05/0.9883, allocations: 11.44 kB / 1.175 GB, free: 11.54 MB / 0.9044 GB Notification: Performance of SimCode: time 2.4e-07/0.9883, allocations: 0 / 1.175 GB, free: 11.54 MB / 0.9044 GB Notification: Performance of Templates: time 0.005271/0.9936, allocations: 1.815 MB / 1.177 GB, free: 9.73 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.makefile (rm -f Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.pipe ; mkfifo Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.pipe ; head -c 1048576 < Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.pipe >> ../files/Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.sim & ./Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2 -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Occupants_Office_Lighting_Validation_Love1998Light2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches