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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001099/0.001099, allocations: 86.72 kB / 15.06 MB, free: 1.09 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.001594/0.001594, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.404/1.404, allocations: 223.3 MB / 240 MB, free: 5.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.445/2.445, allocations: 390.9 MB / 0.666 GB, free: 2.531 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004005/0.0004009, allocations: 8 kB / 0.8153 GB, free: 13.66 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7687/0.7692, allocations: 142.4 MB / 0.9544 GB, free: 7.824 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light): time 0.001976/0.7712, allocations: 1.244 MB / 0.9556 GB, free: 6.836 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001305/0.7725, allocations: 0.7126 MB / 0.9563 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.611e-05/0.7726, allocations: 1.062 kB / 0.9563 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.167e-05/0.7727, allocations: 7.922 kB / 0.9563 GB, free: 6.277 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001219/0.7728, allocations: 13.94 kB / 0.9564 GB, free: 6.266 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006438/0.7734, allocations: 110.5 kB / 0.9565 GB, free: 6.188 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001712/0.7736, allocations: 90.08 kB / 0.9565 GB, free: 6.133 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001145/0.7737, allocations: 10.58 kB / 0.9566 GB, free: 6.129 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001475/0.7739, allocations: 41.86 kB / 0.9566 GB, free: 6.105 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001015/0.774, allocations: 40.89 kB / 0.9566 GB, free: 6.078 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.265e-05/0.774, allocations: 8.688 kB / 0.9566 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00026/0.7743, allocations: 87.02 kB / 0.9567 GB, free: 6.031 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.861e-05/0.7743, allocations: 14.5 kB / 0.9567 GB, free: 6.02 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.838e-05/0.7744, allocations: 40.11 kB / 0.9568 GB, free: 5.98 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002107/0.7746, allocations: 115.7 kB / 0.9569 GB, free: 5.906 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.72e-06/0.7746, allocations: 0 / 0.9569 GB, free: 5.906 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.613e-06/0.7746, allocations: 0 / 0.9569 GB, free: 5.906 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.801e-06/0.7747, allocations: 1.094 kB / 0.9569 GB, free: 5.906 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.0007546/0.7754, allocations: 498.9 kB / 0.9574 GB, free: 5.398 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.641e-05/0.7755, allocations: 9.281 kB / 0.9574 GB, free: 5.398 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.204e-05/0.7755, allocations: 12.98 kB / 0.9574 GB, free: 5.391 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000125/0.7757, allocations: 189.2 kB / 0.9576 GB, free: 5.172 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.474e-05/0.7757, allocations: 6.344 kB / 0.9576 GB, free: 5.168 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.982e-05/0.7757, allocations: 4.594 kB / 0.9576 GB, free: 5.168 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002047/0.7759, allocations: 81.58 kB / 0.9577 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.062e-05/0.7759, allocations: 3.984 kB / 0.9577 GB, free: 5.102 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.824e-05/0.776, allocations: 3.953 kB / 0.9577 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.52e-06/0.776, allocations: 1.562 kB / 0.9577 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001531/0.7761, allocations: 62.02 kB / 0.9577 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005123/0.7767, allocations: 328.3 kB / 0.958 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001987/0.7769, allocations: 86.28 kB / 0.9581 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.461e-05/0.777, allocations: 44.88 kB / 0.9582 GB, free: 4.648 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.737e-05/0.777, allocations: 5.234 kB / 0.9582 GB, free: 4.645 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002418/0.7772, allocations: 108 kB / 0.9583 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=11): time 2.324e-06/0.7773, allocations: 3.938 kB / 0.9583 GB, free: 4.551 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.0004181/0.7777, allocations: 176.1 kB / 0.9584 GB, free: 4.457 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.457e-05/0.7777, allocations: 53.69 kB / 0.9585 GB, free: 4.395 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001064/0.7778, allocations: 155.9 kB / 0.9586 GB, free: 4.258 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.509e-05/0.7779, allocations: 28.02 kB / 0.9587 GB, free: 4.227 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.125e-05/0.7779, allocations: 98.88 kB / 0.9588 GB, free: 4.129 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.577e-05/0.7779, allocations: 27.77 kB / 0.9588 GB, free: 4.105 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.234e-06/0.778, allocations: 0 / 0.9588 GB, free: 4.105 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.895e-05/0.778, allocations: 321.6 kB / 0.9591 GB, free: 3.785 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.744e-05/0.7781, allocations: 33.84 kB / 0.9591 GB, free: 3.77 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001032/0.7782, allocations: 67.14 kB / 0.9592 GB, free: 3.707 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.987e-05/0.7783, allocations: 36.61 kB / 0.9592 GB, free: 3.691 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.7783, allocations: 0 / 0.9592 GB, free: 3.691 MB / 0.7169 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002362/0.7786, allocations: 145.9 kB / 0.9594 GB, free: 3.602 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.776e-05/0.7786, allocations: 11 kB / 0.9594 GB, free: 3.598 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/0.7786, allocations: 2.75 kB / 0.9594 GB, free: 3.598 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.354e-05/0.7786, allocations: 1.375 kB / 0.9594 GB, free: 3.598 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000111/0.7787, allocations: 25.66 kB / 0.9594 GB, free: 3.586 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.316e-06/0.7787, allocations: 1.375 kB / 0.9594 GB, free: 3.586 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.972e-05/0.7789, allocations: 19 kB / 0.9594 GB, free: 3.578 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.998e-05/0.7789, allocations: 16.09 kB / 0.9594 GB, free: 3.566 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 ($PRE.lig.curSeed,lig.curSeed,$PRE.lig.on,lig.on,$whenCondition3,$whenCondition2,lig.sampleTrigger,$whenCondition1,booleanPulse.y,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.062e-05/0.779, allocations: 124.6 kB / 0.9596 GB, free: 3.441 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.281e-05/0.779, allocations: 11.98 kB / 0.9596 GB, free: 3.434 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003418/0.7794, allocations: 172.7 kB / 0.9597 GB, free: 3.332 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.14e-06/0.7794, allocations: 9.359 kB / 0.9597 GB, free: 3.324 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.103e-06/0.7794, allocations: 0 / 0.9597 GB, free: 3.324 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-06/0.7794, allocations: 0 / 0.9597 GB, free: 3.324 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005573/0.78, allocations: 474.3 kB / 0.9602 GB, free: 2.91 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.78, allocations: 1.312 kB / 0.9602 GB, free: 2.91 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.098e-05/0.7801, allocations: 18.48 kB / 0.9602 GB, free: 2.902 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.437e-06/0.7801, allocations: 1.281 kB / 0.9602 GB, free: 2.902 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.573e-05/0.7801, allocations: 2.5 kB / 0.9602 GB, free: 2.902 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.958e-06/0.7801, allocations: 3.984 kB / 0.9602 GB, free: 2.898 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.7801, allocations: 0 / 0.9602 GB, free: 2.898 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003256/0.7804, allocations: 261.8 kB / 0.9605 GB, free: 2.699 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.737e-05/0.7805, allocations: 88.61 kB / 0.9606 GB, free: 2.598 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.674e-05/0.7805, allocations: 1.844 kB / 0.9606 GB, free: 2.598 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001156/0.7806, allocations: 10.86 kB / 0.9606 GB, free: 2.594 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.645e-05/0.7807, allocations: 13.8 kB / 0.9606 GB, free: 2.586 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.973e-05/0.7807, allocations: 4.281 kB / 0.9606 GB, free: 2.586 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 6.61e-05/0.7808, allocations: 107.8 kB / 0.9607 GB, free: 2.496 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7808, allocations: 1.312 kB / 0.9607 GB, free: 2.496 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003676/0.7812, allocations: 48.56 kB / 0.9607 GB, free: 2.48 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003979/0.7816, allocations: 172.1 kB / 0.9609 GB, free: 2.355 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003075/0.7819, allocations: 109.8 kB / 0.961 GB, free: 2.309 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.564e-06/0.7819, allocations: 0 / 0.961 GB, free: 2.309 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001435/0.7821, allocations: 58.95 kB / 0.9611 GB, free: 2.285 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003539/0.7824, allocations: 21.47 kB / 0.9611 GB, free: 2.273 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005662/0.783, allocations: 261.7 kB / 0.9613 GB, free: 2.062 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001806/0.7832, allocations: 0.7006 MB / 0.962 GB, free: 1.355 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 6.674e-05/0.7833, allocations: 10.94 kB / 0.962 GB, free: 1.348 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.016e-05/0.7833, allocations: 17.83 kB / 0.962 GB, free: 1.336 MB / 0.7169 GB Notification: Performance of SimCode: time 4.41e-07/0.7833, allocations: 0 / 0.962 GB, free: 1.336 MB / 0.7169 GB Notification: Performance of Templates: time 0.005493/0.7888, allocations: 1.807 MB / 0.9638 GB, free: 416 kB / 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