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.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.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.001396/0.001396, allocations: 103.4 kB / 15.34 MB, free: 0.5039 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.001422/0.001423, allocations: 194.2 kB / 16.25 MB, free: 6.633 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.474/1.474, allocations: 222.9 MB / 239.9 MB, free: 4.512 MB / 190.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.808/2.808, allocations: 437 MB / 0.7101 GB, free: 5.238 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002175/0.002176, allocations: 63.91 kB / 0.8687 GB, free: 5.047 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7506/0.7528, allocations: 151.6 MB / 1.017 GB, free: 2.684 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light): time 0.003519/0.7564, allocations: 1.593 MB / 1.018 GB, free: 1.082 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.00159/0.758, allocations: 0.7712 MB / 1.019 GB, free: 312 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.881e-05/0.7581, allocations: 4 kB / 1.019 GB, free: 308 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 5.344e-05/0.7582, allocations: 7.922 kB / 1.019 GB, free: 300 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.0001218/0.7583, allocations: 11.86 kB / 1.019 GB, free: 288 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006384/0.7589, allocations: 115.8 kB / 1.019 GB, free: 172 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001433/0.7591, allocations: 99.7 kB / 1.019 GB, free: 72 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001129/0.7592, allocations: 11.98 kB / 1.019 GB, free: 60 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001173/0.7594, allocations: 51.78 kB / 1.019 GB, free: 8 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001125/0.7595, allocations: 43.81 kB / 1.019 GB, free: 15.96 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.222e-05/0.7595, allocations: 8 kB / 1.019 GB, free: 15.96 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002129/0.7597, allocations: 99.84 kB / 1.02 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 3.636e-05/0.7598, allocations: 19.92 kB / 1.02 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 8.107e-05/0.7599, allocations: 43.8 kB / 1.02 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002954/0.7602, allocations: 169.5 kB / 1.02 GB, free: 15.63 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.107e-06/0.7602, allocations: 3.938 kB / 1.02 GB, free: 15.63 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.303e-06/0.7602, allocations: 0 / 1.02 GB, free: 15.63 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 6.011e-06/0.7602, allocations: 0 / 1.02 GB, free: 15.63 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.0009278/0.7611, allocations: 0.4924 MB / 1.02 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.122e-05/0.7612, allocations: 8.031 kB / 1.02 GB, free: 15.06 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.239e-05/0.7612, allocations: 12.84 kB / 1.02 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001841/0.7614, allocations: 188 kB / 1.02 GB, free: 14.83 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.316e-05/0.7615, allocations: 12.31 kB / 1.02 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.13e-05/0.7615, allocations: 8.359 kB / 1.02 GB, free: 14.81 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002164/0.7617, allocations: 81.95 kB / 1.021 GB, free: 14.72 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.14e-05/0.7617, allocations: 4 kB / 1.021 GB, free: 14.72 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.354e-05/0.7618, allocations: 0 / 1.021 GB, free: 14.72 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.03e-06/0.7618, allocations: 0 / 1.021 GB, free: 14.72 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001622/0.7619, allocations: 55.91 kB / 1.021 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006363/0.7626, allocations: 332.7 kB / 1.021 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002282/0.7628, allocations: 78.67 kB / 1.021 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.795e-05/0.7629, allocations: 44.81 kB / 1.021 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.664e-05/0.763, allocations: 4.031 kB / 1.021 GB, free: 14.15 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003056/0.7633, allocations: 103.3 kB / 1.021 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=11): time 1.583e-06/0.7633, allocations: 0 / 1.021 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11): time 0.0005135/0.7638, allocations: 169.5 kB / 1.021 GB, free: 13.87 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.373e-05/0.7639, allocations: 59.39 kB / 1.021 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001577/0.764, allocations: 139.7 kB / 1.022 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.285e-05/0.7641, allocations: 29.7 kB / 1.022 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 9.299e-05/0.7642, allocations: 112 kB / 1.022 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 4.231e-05/0.7642, allocations: 23.66 kB / 1.022 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.734e-05/0.7643, allocations: 29.7 kB / 1.022 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001792/0.7645, allocations: 326.8 kB / 1.022 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.974e-05/0.7646, allocations: 31.97 kB / 1.022 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001253/0.7647, allocations: 69.14 kB / 1.022 GB, free: 13 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002017/0.765, allocations: 101.1 kB / 1.022 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.765, allocations: 0 / 1.022 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002686/0.7652, allocations: 137.4 kB / 1.022 GB, free: 12.74 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 3.137e-05/0.7653, allocations: 8 kB / 1.022 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.101e-06/0.7653, allocations: 0 / 1.022 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.57e-05/0.7653, allocations: 4 kB / 1.022 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001202/0.7654, allocations: 23.86 kB / 1.022 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.788e-06/0.7655, allocations: 3.984 kB / 1.022 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001065/0.7656, allocations: 15.91 kB / 1.022 GB, free: 12.69 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.659e-05/0.7656, allocations: 7.984 kB / 1.022 GB, free: 12.68 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.0001278/0.7657, allocations: 137.8 kB / 1.023 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.316e-05/0.7658, allocations: 7.906 kB / 1.023 GB, free: 12.53 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003989/0.7662, allocations: 170.3 kB / 1.023 GB, free: 12.35 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.805e-06/0.7662, allocations: 0 / 1.023 GB, free: 12.35 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.7662, allocations: 0 / 1.023 GB, free: 12.35 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.937e-06/0.7662, allocations: 144 / 1.023 GB, free: 12.35 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006923/0.7669, allocations: 470.2 kB / 1.023 GB, free: 11.84 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.724e-06/0.7669, allocations: 0 / 1.023 GB, free: 11.84 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.744e-05/0.767, allocations: 15.98 kB / 1.023 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.345e-06/0.767, allocations: 0 / 1.023 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.619e-05/0.767, allocations: 4 kB / 1.023 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.352e-06/0.767, allocations: 0 / 1.023 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.417e-05/0.7671, allocations: 7.938 kB / 1.023 GB, free: 11.81 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003571/0.7674, allocations: 251.3 kB / 1.023 GB, free: 11.55 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.789e-05/0.7675, allocations: 92.86 kB / 1.023 GB, free: 11.44 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.408e-05/0.7676, allocations: 12 kB / 1.024 GB, free: 11.43 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001278/0.7677, allocations: 7.984 kB / 1.024 GB, free: 11.42 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.618e-05/0.7678, allocations: 15.92 kB / 1.024 GB, free: 11.4 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.888e-05/0.7678, allocations: 4 kB / 1.024 GB, free: 11.4 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 8.852e-05/0.7679, allocations: 108.8 kB / 1.024 GB, free: 11.29 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7679, allocations: 0 / 1.024 GB, free: 11.29 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003423/0.7682, allocations: 44 kB / 1.024 GB, free: 11.25 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.000401/0.7686, allocations: 162.9 kB / 1.024 GB, free: 11.1 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002933/0.769, allocations: 103.8 kB / 1.024 GB, free: 11 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.769, allocations: 0 / 1.024 GB, free: 11 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001306/0.7691, allocations: 60.11 kB / 1.024 GB, free: 10.94 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003255/0.7694, allocations: 21.89 kB / 1.024 GB, free: 10.92 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00068/0.7701, allocations: 261 kB / 1.024 GB, free: 10.64 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003568/0.7705, allocations: 0.7002 MB / 1.025 GB, free: 9.91 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 5.746e-05/0.7706, allocations: 8.562 kB / 1.025 GB, free: 9.902 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.835e-05/0.7706, allocations: 23.42 kB / 1.025 GB, free: 9.883 MB / 0.7794 GB Notification: Performance of SimCode: time 2.71e-07/0.7706, allocations: 4 kB / 1.025 GB, free: 9.879 MB / 0.7794 GB Notification: Performance of Templates: time 0.006025/0.7767, allocations: 1.948 MB / 1.027 GB, free: 7.945 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=400 -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/jenkins/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