Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.Reinhart2003Light,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|lig.ill|lig.occ|lig.pArriv|lig.on",fileNamePrefix="Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light") translateModel(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|lig.ill|lig.occ|lig.pArriv|lig.on",fileNamePrefix="Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000847/0.0008471, allocations: 99.27 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008525/0.0008528, allocations: 180.9 kB / 16.92 MB, free: 6.918 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.352/1.352, allocations: 223.3 MB / 241 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.573/2.573, allocations: 437.8 MB / 0.7128 GB, free: 6.992 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003759/0.0003762, allocations: 11.94 kB / 0.8735 GB, free: 3.324 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6013/0.6017, allocations: 153.8 MB / 1.024 GB, free: 15.89 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light): time 0.001612/0.6033, allocations: 1.262 MB / 1.025 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001265/0.6046, allocations: 0.7596 MB / 1.026 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.433e-05/0.6047, allocations: 4 kB / 1.026 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 2.041e-05/0.6047, allocations: 7.938 kB / 1.026 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 9.595e-05/0.6048, allocations: 15.84 kB / 1.026 GB, free: 13.83 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004542/0.6053, allocations: 107.8 kB / 1.026 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001261/0.6054, allocations: 95.64 kB / 1.026 GB, free: 13.63 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 8.068e-05/0.6055, allocations: 19.97 kB / 1.026 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 9.663e-05/0.6056, allocations: 35.91 kB / 1.026 GB, free: 13.58 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 8.234e-05/0.6057, allocations: 43.77 kB / 1.026 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.744e-05/0.6057, allocations: 4 kB / 1.026 GB, free: 13.53 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001923/0.6059, allocations: 95.84 kB / 1.026 GB, free: 13.44 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.662e-05/0.606, allocations: 19.91 kB / 1.026 GB, free: 13.42 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 6.392e-05/0.606, allocations: 65.48 kB / 1.026 GB, free: 13.35 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001775/0.6062, allocations: 109.8 kB / 1.026 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.6062, allocations: 3.938 kB / 1.026 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.443e-06/0.6062, allocations: 0 / 1.026 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.318e-06/0.6063, allocations: 0 / 1.026 GB, free: 13.24 MB / 0.7794 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0006958/0.607, allocations: 496.3 kB / 1.027 GB, free: 12.69 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.456e-05/0.607, allocations: 8.031 kB / 1.027 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.454e-05/0.6071, allocations: 16.75 kB / 1.027 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001359/0.6072, allocations: 182.3 kB / 1.027 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.166e-05/0.6072, allocations: 8.359 kB / 1.027 GB, free: 12.44 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.988e-05/0.6072, allocations: 8.375 kB / 1.027 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001948/0.6075, allocations: 89.89 kB / 1.027 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.793e-06/0.6075, allocations: 0 / 1.027 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.379e-05/0.6075, allocations: 0 / 1.027 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.062e-06/0.6075, allocations: 4 kB / 1.027 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001662/0.6077, allocations: 59.89 kB / 1.027 GB, free: 12.28 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005707/0.6082, allocations: 336.7 kB / 1.027 GB, free: 11.9 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002224/0.6085, allocations: 86.66 kB / 1.027 GB, free: 11.8 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001005/0.6086, allocations: 44.84 kB / 1.028 GB, free: 11.76 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.335e-05/0.6086, allocations: 96 / 1.028 GB, free: 11.76 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002257/0.6089, allocations: 103.3 kB / 1.028 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=11): time 1.352e-06/0.6089, allocations: 0 / 1.028 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11): time 0.0004369/0.6093, allocations: 181.5 kB / 1.028 GB, free: 11.46 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.513e-05/0.6094, allocations: 55.41 kB / 1.028 GB, free: 11.39 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001107/0.6095, allocations: 137.8 kB / 1.028 GB, free: 11.25 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.185e-05/0.6095, allocations: 29.7 kB / 1.028 GB, free: 11.21 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.826e-05/0.6096, allocations: 104 kB / 1.028 GB, free: 11.11 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.9e-05/0.6096, allocations: 31.58 kB / 1.028 GB, free: 11.08 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.628e-05/0.6097, allocations: 21.7 kB / 1.028 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001057/0.6098, allocations: 326.8 kB / 1.028 GB, free: 10.72 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.592e-05/0.6099, allocations: 31.98 kB / 1.029 GB, free: 10.69 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00011/0.61, allocations: 73.12 kB / 1.029 GB, free: 10.6 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001852/0.6102, allocations: 105.1 kB / 1.029 GB, free: 10.48 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.6102, allocations: 0 / 1.029 GB, free: 10.48 MB / 0.7794 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002786/0.6105, allocations: 145.4 kB / 1.029 GB, free: 10.33 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.699e-05/0.6105, allocations: 4 kB / 1.029 GB, free: 10.33 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/0.6105, allocations: 8.031 kB / 1.029 GB, free: 10.32 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.319e-05/0.6105, allocations: 4 kB / 1.029 GB, free: 10.32 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001109/0.6106, allocations: 19.92 kB / 1.029 GB, free: 10.3 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.675e-06/0.6107, allocations: 4 kB / 1.029 GB, free: 10.29 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001086/0.6108, allocations: 19.89 kB / 1.029 GB, free: 10.27 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.536e-05/0.6108, allocations: 4 kB / 1.029 GB, free: 10.27 MB / 0.7794 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,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,booleanPulse.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * 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.0001074/0.6109, allocations: 138.2 kB / 1.029 GB, free: 10.12 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.973e-05/0.6109, allocations: 7.906 kB / 1.029 GB, free: 10.12 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000374/0.6113, allocations: 176.5 kB / 1.029 GB, free: 9.938 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.846e-06/0.6113, allocations: 0 / 1.029 GB, free: 9.938 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.457e-06/0.6113, allocations: 0 / 1.029 GB, free: 9.938 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.23e-06/0.6113, allocations: 3.984 kB / 1.029 GB, free: 9.934 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006405/0.612, allocations: 470.2 kB / 1.03 GB, free: 9.418 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.612, allocations: 3.938 kB / 1.03 GB, free: 9.414 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.039e-05/0.6121, allocations: 12 kB / 1.03 GB, free: 9.402 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.425e-06/0.6121, allocations: 0 / 1.03 GB, free: 9.402 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.608e-05/0.6121, allocations: 11.98 kB / 1.03 GB, free: 9.391 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.6121, allocations: 0 / 1.03 GB, free: 9.391 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.055e-06/0.6121, allocations: 7.938 kB / 1.03 GB, free: 9.383 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000333/0.6125, allocations: 252.6 kB / 1.03 GB, free: 9.121 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.216e-05/0.6125, allocations: 92.86 kB / 1.03 GB, free: 9.012 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.216e-05/0.6126, allocations: 0 / 1.03 GB, free: 9.012 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001282/0.6127, allocations: 15.98 kB / 1.03 GB, free: 8.996 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.437e-05/0.6128, allocations: 15.92 kB / 1.03 GB, free: 8.98 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.768e-05/0.6128, allocations: 7.984 kB / 1.03 GB, free: 8.973 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 6.631e-05/0.6129, allocations: 108.8 kB / 1.03 GB, free: 8.867 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6129, allocations: 0 / 1.03 GB, free: 8.867 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003209/0.6132, allocations: 47.98 kB / 1.03 GB, free: 8.82 MB / 0.7794 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 (booleanPulse.y,lig.sampleTrigger,$whenCondition3,$whenCondition2,$whenCondition1,lig.on,lig.curSeed,booleanPulse.pulseStart) * Number of discrete states: 1 (lig.on) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 11 * 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.0003125/0.6135, allocations: 172.7 kB / 1.03 GB, free: 8.66 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002688/0.6138, allocations: 99.83 kB / 1.03 GB, free: 8.562 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.6138, allocations: 0 / 1.03 GB, free: 8.562 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001266/0.6139, allocations: 59.97 kB / 1.031 GB, free: 8.504 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000308/0.6142, allocations: 29.06 kB / 1.031 GB, free: 8.477 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004838/0.6147, allocations: 292.8 kB / 1.031 GB, free: 8.156 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002452/0.615, allocations: 0.7043 MB / 1.032 GB, free: 7.426 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.095e-05/0.615, allocations: 11.44 kB / 1.032 GB, free: 7.418 MB / 0.7794 GB Notification: Performance of SimCode: time 3.31e-07/0.615, allocations: 0 / 1.032 GB, free: 7.418 MB / 0.7794 GB Notification: Performance of Templates: time 0.003869/0.6189, allocations: 1.989 MB / 1.033 GB, free: 5.43 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.makefile (rm -f Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe ; mkfifo Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe ; head -c 1048576 < Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe >> ../files/Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.sim & ./Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches