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.001089/0.001089, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001056/0.001056, allocations: 194.4 kB / 16.14 MB, free: 6.711 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.422/1.422, allocations: 222.9 MB / 239.8 MB, free: 4.578 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.623/2.623, allocations: 437 MB / 0.7099 GB, free: 5.309 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001279/0.001279, allocations: 55.91 kB / 0.8685 GB, free: 5.184 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.761/0.7623, allocations: 151.6 MB / 1.017 GB, free: 2.777 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light): time 0.002743/0.765, allocations: 1.603 MB / 1.018 GB, free: 1.168 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001307/0.7664, allocations: 0.7752 MB / 1.019 GB, free: 396 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.491e-05/0.7664, allocations: 4 kB / 1.019 GB, free: 392 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 4.147e-05/0.7665, allocations: 7.875 kB / 1.019 GB, free: 384 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 9.677e-05/0.7666, allocations: 19.84 kB / 1.019 GB, free: 364 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004675/0.7671, allocations: 103.8 kB / 1.019 GB, free: 260 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001173/0.7672, allocations: 95.64 kB / 1.019 GB, free: 164 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 9.006e-05/0.7673, allocations: 12 kB / 1.019 GB, free: 152 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 9.263e-05/0.7674, allocations: 43.83 kB / 1.019 GB, free: 108 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 7.858e-05/0.7675, allocations: 43.83 kB / 1.019 GB, free: 64 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.214e-05/0.7675, allocations: 7.984 kB / 1.019 GB, free: 56 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001817/0.7677, allocations: 91.86 kB / 1.019 GB, free: 15.96 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.872e-05/0.7677, allocations: 19.91 kB / 1.019 GB, free: 15.95 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 5.531e-05/0.7678, allocations: 47.72 kB / 1.019 GB, free: 15.9 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002663/0.7681, allocations: 149.6 kB / 1.02 GB, free: 15.75 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.7681, allocations: 0 / 1.02 GB, free: 15.75 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.112e-06/0.7681, allocations: 0 / 1.02 GB, free: 15.75 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.128e-06/0.7681, allocations: 4 kB / 1.02 GB, free: 15.75 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.000792/0.7689, allocations: 0.4984 MB / 1.02 GB, free: 15.19 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.668e-05/0.7689, allocations: 12.03 kB / 1.02 GB, free: 15.18 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.57e-05/0.769, allocations: 8.844 kB / 1.02 GB, free: 15.17 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000134/0.7692, allocations: 192 kB / 1.02 GB, free: 14.94 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.793e-05/0.7692, allocations: 4.359 kB / 1.02 GB, free: 14.94 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.609e-05/0.7692, allocations: 4.375 kB / 1.02 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001884/0.7694, allocations: 89.95 kB / 1.02 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.845e-06/0.7694, allocations: 0 / 1.02 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.554e-05/0.7694, allocations: 4 kB / 1.02 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.977e-06/0.7694, allocations: 0 / 1.02 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001454/0.7696, allocations: 55.89 kB / 1.02 GB, free: 14.78 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005465/0.7701, allocations: 328.7 kB / 1.021 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002169/0.7704, allocations: 90.69 kB / 1.021 GB, free: 14.31 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.394e-05/0.7705, allocations: 40.83 kB / 1.021 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.095e-05/0.7705, allocations: 4 kB / 1.021 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002602/0.7708, allocations: 87.36 kB / 1.021 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=11): time 1.704e-06/0.7708, allocations: 4 kB / 1.021 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11): time 0.0004303/0.7712, allocations: 185.4 kB / 1.021 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.516e-05/0.7713, allocations: 51.41 kB / 1.021 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001527/0.7714, allocations: 140.1 kB / 1.021 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.902e-05/0.7714, allocations: 29.7 kB / 1.021 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.884e-05/0.7715, allocations: 104 kB / 1.021 GB, free: 13.63 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.724e-05/0.7715, allocations: 23.66 kB / 1.021 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.525e-05/0.7716, allocations: 37.7 kB / 1.021 GB, free: 13.56 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001857/0.7718, allocations: 326.8 kB / 1.022 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.641e-05/0.7719, allocations: 31.97 kB / 1.022 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001013/0.772, allocations: 61.14 kB / 1.022 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001917/0.7722, allocations: 113 kB / 1.022 GB, free: 13 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.7722, allocations: 0 / 1.022 GB, free: 13 MB / 0.7794 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002354/0.7724, allocations: 137.4 kB / 1.022 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.622e-05/0.7725, allocations: 7.938 kB / 1.022 GB, free: 12.85 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.7725, allocations: 0 / 1.022 GB, free: 12.85 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.617e-05/0.7725, allocations: 8.094 kB / 1.022 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001212/0.7726, allocations: 19.97 kB / 1.022 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.083e-06/0.7726, allocations: 0 / 1.022 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001113/0.7728, allocations: 15.91 kB / 1.022 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.417e-05/0.7728, allocations: 7.984 kB / 1.022 GB, free: 12.8 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.000108/0.7729, allocations: 132.2 kB / 1.022 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.322e-05/0.7729, allocations: 7.906 kB / 1.022 GB, free: 12.65 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003579/0.7733, allocations: 178.3 kB / 1.022 GB, free: 12.47 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.294e-06/0.7733, allocations: 0 / 1.022 GB, free: 12.47 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/0.7733, allocations: 0 / 1.022 GB, free: 12.47 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.7733, allocations: 0 / 1.022 GB, free: 12.47 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006195/0.7739, allocations: 470.1 kB / 1.023 GB, free: 11.96 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.7739, allocations: 0 / 1.023 GB, free: 11.96 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.171e-05/0.774, allocations: 15.98 kB / 1.023 GB, free: 11.94 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.824e-06/0.774, allocations: 7.938 kB / 1.023 GB, free: 11.93 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.598e-05/0.7741, allocations: 4 kB / 1.023 GB, free: 11.93 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.865e-06/0.7741, allocations: 3.984 kB / 1.023 GB, free: 11.93 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.7741, allocations: 3.938 kB / 1.023 GB, free: 11.92 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004203/0.7745, allocations: 243.4 kB / 1.023 GB, free: 11.67 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.57e-05/0.7746, allocations: 88.86 kB / 1.023 GB, free: 11.56 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.562e-05/0.7746, allocations: 8 kB / 1.023 GB, free: 11.55 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001193/0.7747, allocations: 15.98 kB / 1.023 GB, free: 11.54 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.02e-05/0.7748, allocations: 15.92 kB / 1.023 GB, free: 11.52 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.88e-05/0.7748, allocations: 4 kB / 1.023 GB, free: 11.52 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 8.422e-05/0.7749, allocations: 107.2 kB / 1.023 GB, free: 11.41 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.61e-07/0.7749, allocations: 0 / 1.023 GB, free: 11.41 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.000294/0.7752, allocations: 40 kB / 1.023 GB, free: 11.38 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.0003217/0.7755, allocations: 169.2 kB / 1.024 GB, free: 11.21 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002504/0.7758, allocations: 99.88 kB / 1.024 GB, free: 11.12 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.043e-06/0.7758, allocations: 0 / 1.024 GB, free: 11.12 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.000118/0.7759, allocations: 59.17 kB / 1.024 GB, free: 11.06 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002967/0.7762, allocations: 25.3 kB / 1.024 GB, free: 11.04 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005103/0.7767, allocations: 253.5 kB / 1.024 GB, free: 10.76 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002899/0.777, allocations: 0.7043 MB / 1.025 GB, free: 10.03 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 5.155e-05/0.7771, allocations: 8.562 kB / 1.025 GB, free: 10.02 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.483e-05/0.7771, allocations: 19.42 kB / 1.025 GB, free: 10.01 MB / 0.7794 GB Notification: Performance of SimCode: time 2.4e-07/0.7772, allocations: 0 / 1.025 GB, free: 10.01 MB / 0.7794 GB Notification: Performance of Templates: time 0.004601/0.7818, allocations: 1.872 MB / 1.027 GB, free: 8.145 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/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