Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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.Hunt1979Light,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|lig.ill|lig.occ|lig.pArriv|lig.on",fileNamePrefix="Buildings_latest_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_latest_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001785/0.001785, allocations: 113.2 kB / 16.41 MB, free: 6.516 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.001857/0.001857, allocations: 189.2 kB / 17.34 MB, free: 5.738 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.443/1.443, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.772/2.772, allocations: 474.5 MB / 0.7477 GB, free: 14.06 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001933/0.001933, allocations: 63.91 kB / 1.073 GB, free: 7.223 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8703/0.8722, allocations: 160.3 MB / 1.229 GB, free: 10.95 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light): time 0.002767/0.875, allocations: 1.517 MB / 1.231 GB, free: 9.422 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.001393/0.8764, allocations: 0.7648 MB / 1.231 GB, free: 8.652 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.428e-05/0.8765, allocations: 3.938 kB / 1.231 GB, free: 8.648 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 3.56e-05/0.8765, allocations: 3.938 kB / 1.231 GB, free: 8.645 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 9.799e-05/0.8767, allocations: 23.78 kB / 1.231 GB, free: 8.621 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005351/0.8772, allocations: 123.6 kB / 1.231 GB, free: 8.5 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0001538/0.8774, allocations: 87.77 kB / 1.232 GB, free: 8.414 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 9.278e-05/0.8775, allocations: 8 kB / 1.232 GB, free: 8.406 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001067/0.8776, allocations: 51.77 kB / 1.232 GB, free: 8.355 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 8.037e-05/0.8777, allocations: 35.84 kB / 1.232 GB, free: 8.32 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 2.34e-05/0.8777, allocations: 12 kB / 1.232 GB, free: 8.309 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001914/0.8779, allocations: 95.84 kB / 1.232 GB, free: 8.215 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 3.743e-05/0.878, allocations: 23.91 kB / 1.232 GB, free: 8.191 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 5.658e-05/0.878, allocations: 35.86 kB / 1.232 GB, free: 8.156 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0002668/0.8783, allocations: 148 kB / 1.232 GB, free: 8.016 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 7.074e-06/0.8783, allocations: 4 kB / 1.232 GB, free: 8.012 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.463e-06/0.8783, allocations: 0 / 1.232 GB, free: 8.012 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 1.037e-05/0.8783, allocations: 0 / 1.232 GB, free: 8.012 MB / 0.9512 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.0008541/0.8792, allocations: 490.2 kB / 1.232 GB, free: 7.473 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.216e-05/0.8792, allocations: 8.031 kB / 1.232 GB, free: 7.465 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.936e-05/0.8793, allocations: 16.83 kB / 1.232 GB, free: 7.449 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001551/0.8795, allocations: 172.3 kB / 1.233 GB, free: 7.242 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.137e-05/0.8795, allocations: 34.25 kB / 1.233 GB, free: 7.203 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.248e-05/0.8796, allocations: 8.375 kB / 1.233 GB, free: 7.195 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002269/0.8798, allocations: 81.77 kB / 1.233 GB, free: 7.109 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.037e-05/0.8798, allocations: 7.938 kB / 1.233 GB, free: 7.102 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.276e-05/0.8798, allocations: 3.938 kB / 1.233 GB, free: 7.098 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.643e-06/0.8799, allocations: 0 / 1.233 GB, free: 7.098 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001973/0.8801, allocations: 55.89 kB / 1.233 GB, free: 7.043 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005618/0.8806, allocations: 312.7 kB / 1.233 GB, free: 6.688 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002307/0.8809, allocations: 78.56 kB / 1.233 GB, free: 6.602 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001126/0.881, allocations: 36.84 kB / 1.233 GB, free: 6.562 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.786e-05/0.881, allocations: 4.141 kB / 1.233 GB, free: 6.559 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002643/0.8813, allocations: 99.34 kB / 1.233 GB, free: 6.449 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=10): time 3.817e-06/0.8813, allocations: 7.984 kB / 1.233 GB, free: 6.441 MB / 0.9512 GB Notification: Performance of matching and sorting (n=10): time 0.0005171/0.8818, allocations: 165.5 kB / 1.233 GB, free: 6.273 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.797e-05/0.8819, allocations: 55.41 kB / 1.234 GB, free: 6.207 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001225/0.882, allocations: 133.1 kB / 1.234 GB, free: 6.066 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.117e-05/0.8821, allocations: 25.7 kB / 1.234 GB, free: 6.035 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 6.997e-05/0.8821, allocations: 96.33 kB / 1.234 GB, free: 5.934 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 3.378e-05/0.8822, allocations: 27.78 kB / 1.234 GB, free: 5.906 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.837e-05/0.8822, allocations: 37.7 kB / 1.234 GB, free: 5.863 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001529/0.8824, allocations: 322.8 kB / 1.234 GB, free: 5.539 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001165/0.8825, allocations: 31.92 kB / 1.234 GB, free: 5.508 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001348/0.8827, allocations: 69.12 kB / 1.234 GB, free: 5.422 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002919/0.883, allocations: 105 kB / 1.234 GB, free: 5.301 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.883, allocations: 0 / 1.234 GB, free: 5.301 MB / 0.9512 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003201/0.8833, allocations: 141.5 kB / 1.234 GB, free: 5.156 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.751e-05/0.8833, allocations: 4 kB / 1.234 GB, free: 5.152 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.496e-06/0.8833, allocations: 7.984 kB / 1.234 GB, free: 5.145 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.557e-05/0.8834, allocations: 0 / 1.234 GB, free: 5.145 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001173/0.8835, allocations: 19.92 kB / 1.235 GB, free: 5.125 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.045e-06/0.8835, allocations: 4 kB / 1.235 GB, free: 5.121 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001076/0.8836, allocations: 16.44 kB / 1.235 GB, free: 5.105 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.621e-05/0.8836, allocations: 12 kB / 1.235 GB, free: 5.094 MB / 0.9512 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.0001195/0.8838, allocations: 124.2 kB / 1.235 GB, free: 4.965 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.955e-05/0.8838, allocations: 7.953 kB / 1.235 GB, free: 4.957 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.563e-05/0.8838, allocations: 16.66 kB / 1.235 GB, free: 4.938 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/0.8838, allocations: 0 / 1.235 GB, free: 4.938 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/0.8838, allocations: 0 / 1.235 GB, free: 4.938 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.8839, allocations: 3.938 kB / 1.235 GB, free: 4.934 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006578/0.8845, allocations: 438.2 kB / 1.235 GB, free: 4.449 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.8845, allocations: 0 / 1.235 GB, free: 4.449 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.167e-05/0.8846, allocations: 11.98 kB / 1.235 GB, free: 4.438 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.8846, allocations: 4 kB / 1.235 GB, free: 4.434 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.567e-05/0.8846, allocations: 4 kB / 1.235 GB, free: 4.43 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.757e-06/0.8846, allocations: 3.938 kB / 1.235 GB, free: 4.426 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.8847, allocations: 0 / 1.235 GB, free: 4.426 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003585/0.885, allocations: 235.3 kB / 1.235 GB, free: 4.18 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 5.33e-05/0.8851, allocations: 85.06 kB / 1.235 GB, free: 4.078 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.235e-05/0.8851, allocations: 0 / 1.235 GB, free: 4.078 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001253/0.8852, allocations: 15.92 kB / 1.235 GB, free: 4.062 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.924e-05/0.8853, allocations: 11.98 kB / 1.235 GB, free: 4.051 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.86e-05/0.8853, allocations: 7.984 kB / 1.235 GB, free: 4.043 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 7.197e-05/0.8854, allocations: 103.3 kB / 1.236 GB, free: 3.941 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8854, allocations: 0 / 1.236 GB, free: 3.941 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0003074/0.8857, allocations: 39.94 kB / 1.236 GB, free: 3.902 MB / 0.9512 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 (10): * Single equations (assignments): 7 * 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.0003887/0.8861, allocations: 180 kB / 1.236 GB, free: 3.734 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0003217/0.8865, allocations: 91.88 kB / 1.236 GB, free: 3.645 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.8865, allocations: 0 / 1.236 GB, free: 3.645 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0001412/0.8866, allocations: 47.91 kB / 1.236 GB, free: 3.598 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002871/0.8869, allocations: 11.98 kB / 1.236 GB, free: 3.586 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005171/0.8874, allocations: 215.8 kB / 1.236 GB, free: 3.348 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003266/0.8878, allocations: 0.6963 MB / 1.237 GB, free: 2.625 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 4.946e-05/0.8878, allocations: 8.656 kB / 1.237 GB, free: 2.617 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.86e-05/0.8879, allocations: 11.44 kB / 1.237 GB, free: 2.605 MB / 0.9512 GB Notification: Performance of SimCode: time 9.82e-07/0.8879, allocations: 4 kB / 1.237 GB, free: 2.602 MB / 0.9512 GB Notification: Performance of Templates: time 0.005244/0.8931, allocations: 1.816 MB / 1.239 GB, free: 0.793 MB / 0.9512 GB make -j1 -f Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.makefile (rm -f Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.sim & ./Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Lighting_Validation_Hunt1979Light.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches