Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.001461/0.001461, allocations: 108 kB / 15.61 MB, free: 152 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.001638/0.001638, allocations: 195.8 kB / 16.53 MB, free: 6.699 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.398/1.398, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.478/2.478, allocations: 390.2 MB / 0.6647 GB, free: 432 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001418/0.001418, allocations: 63.91 kB / 0.8125 GB, free: 14.45 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7468/0.7483, allocations: 140.4 MB / 0.9496 GB, free: 9.223 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light): time 0.002654/0.751, allocations: 1.546 MB / 0.9511 GB, free: 8 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001298/0.7523, allocations: 0.7623 MB / 0.9518 GB, free: 7.41 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.981e-05/0.7524, allocations: 4 kB / 0.9518 GB, free: 7.406 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.646e-05/0.7524, allocations: 7.875 kB / 0.9518 GB, free: 7.398 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001061/0.7526, allocations: 25.41 kB / 0.9519 GB, free: 7.375 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000589/0.7532, allocations: 128.7 kB / 0.952 GB, free: 7.285 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001368/0.7533, allocations: 95.95 kB / 0.9521 GB, free: 7.23 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001183/0.7534, allocations: 15.61 kB / 0.9521 GB, free: 7.223 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001087/0.7535, allocations: 48.48 kB / 0.9521 GB, free: 7.191 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.48e-05/0.7536, allocations: 49.89 kB / 0.9522 GB, free: 7.156 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.527e-05/0.7537, allocations: 7.438 kB / 0.9522 GB, free: 7.156 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001983/0.7539, allocations: 100.1 kB / 0.9523 GB, free: 7.105 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.263e-05/0.7539, allocations: 27.38 kB / 0.9523 GB, free: 7.082 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.236e-05/0.754, allocations: 43.31 kB / 0.9524 GB, free: 7.051 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002684/0.7543, allocations: 161.7 kB / 0.9525 GB, free: 6.945 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.7543, allocations: 0 / 0.9525 GB, free: 6.945 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.014e-06/0.7543, allocations: 1.438 kB / 0.9525 GB, free: 6.945 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.063e-06/0.7543, allocations: 0 / 0.9525 GB, free: 6.945 MB / 0.7169 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.0007428/0.755, allocations: 0.503 MB / 0.953 GB, free: 6.422 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/0.7551, allocations: 9.312 kB / 0.953 GB, free: 6.422 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.738e-05/0.7551, allocations: 9.781 kB / 0.953 GB, free: 6.418 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001377/0.7553, allocations: 188 kB / 0.9532 GB, free: 6.203 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.795e-05/0.7553, allocations: 11.27 kB / 0.9532 GB, free: 6.195 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.16e-05/0.7553, allocations: 3.969 kB / 0.9532 GB, free: 6.195 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000202/0.7555, allocations: 87.39 kB / 0.9533 GB, free: 6.125 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.015e-05/0.7556, allocations: 1.406 kB / 0.9533 GB, free: 6.125 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.651e-05/0.7556, allocations: 4 kB / 0.9533 GB, free: 6.121 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.101e-06/0.7556, allocations: 1.344 kB / 0.9533 GB, free: 6.121 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000154/0.7557, allocations: 50.3 kB / 0.9534 GB, free: 6.098 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005235/0.7563, allocations: 321 kB / 0.9537 GB, free: 5.77 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002013/0.7565, allocations: 89.72 kB / 0.9537 GB, free: 5.707 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.509e-05/0.7566, allocations: 39.03 kB / 0.9538 GB, free: 5.684 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.265e-05/0.7566, allocations: 5.422 kB / 0.9538 GB, free: 5.68 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002486/0.7569, allocations: 101.3 kB / 0.9539 GB, free: 5.594 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=11): time 1.383e-06/0.7569, allocations: 4 kB / 0.9539 GB, free: 5.59 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.000448/0.7573, allocations: 179.1 kB / 0.9541 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.631e-05/0.7574, allocations: 58.12 kB / 0.9541 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001169/0.7575, allocations: 142.3 kB / 0.9542 GB, free: 5.301 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.718e-05/0.7575, allocations: 31.05 kB / 0.9543 GB, free: 5.266 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.941e-05/0.7576, allocations: 99.88 kB / 0.9544 GB, free: 5.168 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.694e-05/0.7576, allocations: 27.44 kB / 0.9544 GB, free: 5.145 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.823e-05/0.7577, allocations: 31.61 kB / 0.9544 GB, free: 5.117 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.433e-05/0.7577, allocations: 329.9 kB / 0.9547 GB, free: 4.789 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.815e-05/0.7578, allocations: 32.47 kB / 0.9548 GB, free: 4.773 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.773e-05/0.7579, allocations: 64.77 kB / 0.9548 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001659/0.7581, allocations: 115.8 kB / 0.9549 GB, free: 4.617 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.568e-06/0.7581, allocations: 0 / 0.9549 GB, free: 4.617 MB / 0.7169 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002309/0.7584, allocations: 135.5 kB / 0.9551 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.062e-05/0.7584, allocations: 6 kB / 0.9551 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.634e-06/0.7584, allocations: 1.094 kB / 0.9551 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.503e-05/0.7584, allocations: 6.375 kB / 0.9551 GB, free: 4.531 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001161/0.7585, allocations: 24.31 kB / 0.9551 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.263e-05/0.7586, allocations: 10.22 kB / 0.9551 GB, free: 4.512 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.986e-05/0.7587, allocations: 10.78 kB / 0.9551 GB, free: 4.508 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.732e-05/0.7587, allocations: 8.766 kB / 0.9551 GB, free: 4.504 MB / 0.7169 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 9.342e-05/0.7588, allocations: 127.5 kB / 0.9553 GB, free: 4.375 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.28e-05/0.7588, allocations: 9.75 kB / 0.9553 GB, free: 4.371 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003611/0.7592, allocations: 176.5 kB / 0.9554 GB, free: 4.262 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.7592, allocations: 1 kB / 0.9554 GB, free: 4.262 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.7592, allocations: 1.031 kB / 0.9554 GB, free: 4.262 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.7592, allocations: 0 / 0.9554 GB, free: 4.262 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005151/0.7597, allocations: 457.3 kB / 0.9559 GB, free: 3.855 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.7597, allocations: 0 / 0.9559 GB, free: 3.855 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.222e-05/0.7598, allocations: 27.39 kB / 0.9559 GB, free: 3.84 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.687e-06/0.7598, allocations: 1.344 kB / 0.9559 GB, free: 3.84 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.395e-05/0.7599, allocations: 1.156 kB / 0.9559 GB, free: 3.84 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.956e-06/0.7599, allocations: 5.203 kB / 0.9559 GB, free: 3.836 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.7599, allocations: 3.938 kB / 0.9559 GB, free: 3.832 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002924/0.7602, allocations: 241.6 kB / 0.9561 GB, free: 3.652 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.029e-05/0.7602, allocations: 88.3 kB / 0.9562 GB, free: 3.551 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.721e-05/0.7602, allocations: 7.344 kB / 0.9562 GB, free: 3.547 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001156/0.7604, allocations: 13.45 kB / 0.9563 GB, free: 3.539 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.305e-05/0.7604, allocations: 16.3 kB / 0.9563 GB, free: 3.527 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.71e-05/0.7605, allocations: 7.25 kB / 0.9563 GB, free: 3.523 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.715e-05/0.7605, allocations: 111.7 kB / 0.9564 GB, free: 3.43 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7605, allocations: 0 / 0.9564 GB, free: 3.43 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003186/0.7608, allocations: 42.03 kB / 0.9564 GB, free: 3.422 MB / 0.7169 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.0003635/0.7612, allocations: 161.4 kB / 0.9566 GB, free: 3.305 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002919/0.7615, allocations: 105.2 kB / 0.9567 GB, free: 3.258 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.7615, allocations: 0 / 0.9567 GB, free: 3.258 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001149/0.7616, allocations: 53.77 kB / 0.9567 GB, free: 3.238 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003106/0.762, allocations: 22.27 kB / 0.9567 GB, free: 3.227 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005151/0.7625, allocations: 230.1 kB / 0.957 GB, free: 3.047 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001429/0.7626, allocations: 0.7072 MB / 0.9577 GB, free: 2.332 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 5.275e-05/0.7627, allocations: 7.5 kB / 0.9577 GB, free: 2.332 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.178e-05/0.7627, allocations: 21.67 kB / 0.9577 GB, free: 2.316 MB / 0.7169 GB Notification: Performance of SimCode: time 2.51e-07/0.7628, allocations: 1.312 kB / 0.9577 GB, free: 2.316 MB / 0.7169 GB Notification: Performance of Templates: time 0.005212/0.768, allocations: 2.008 MB / 0.9596 GB, free: 1.289 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.makefile (rm -f Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.sim & ./Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches