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: "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001199/0.001199, 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.001198/0.001198, allocations: 196 kB / 16.53 MB, free: 6.664 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.391/1.391, allocations: 222.9 MB / 240.2 MB, free: 4.387 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.45/2.45, allocations: 390.2 MB / 0.6647 GB, free: 0.4922 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001413/0.001413, allocations: 63.91 kB / 0.8126 GB, free: 14.42 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6621/0.6636, allocations: 140.4 MB / 0.9497 GB, free: 9.258 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light): time 0.002369/0.666, allocations: 1.537 MB / 0.9512 GB, free: 8.043 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001123/0.6671, allocations: 0.7648 MB / 0.952 GB, free: 7.449 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.724e-05/0.6672, allocations: 6 kB / 0.952 GB, free: 7.445 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.024e-05/0.6672, allocations: 7.938 kB / 0.952 GB, free: 7.438 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.051e-05/0.6673, allocations: 17.8 kB / 0.952 GB, free: 7.422 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004856/0.6678, allocations: 131.2 kB / 0.9521 GB, free: 7.328 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001063/0.6679, allocations: 96.7 kB / 0.9522 GB, free: 7.273 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.375e-05/0.668, allocations: 18.45 kB / 0.9522 GB, free: 7.262 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.41e-05/0.6681, allocations: 45.98 kB / 0.9523 GB, free: 7.234 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.344e-05/0.6682, allocations: 53.48 kB / 0.9523 GB, free: 7.195 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.245e-05/0.6682, allocations: 7.25 kB / 0.9523 GB, free: 7.195 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001744/0.6684, allocations: 95.31 kB / 0.9524 GB, free: 7.148 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.612e-05/0.6684, allocations: 28.78 kB / 0.9524 GB, free: 7.125 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.663e-05/0.6685, allocations: 38.73 kB / 0.9525 GB, free: 7.098 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002067/0.6687, allocations: 162.1 kB / 0.9526 GB, free: 6.992 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.6687, allocations: 0 / 0.9526 GB, free: 6.992 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.542e-06/0.6687, allocations: 0 / 0.9526 GB, free: 6.992 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.659e-06/0.6687, allocations: 1.031 kB / 0.9526 GB, free: 6.992 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.0006304/0.6694, allocations: 0.5036 MB / 0.9531 GB, free: 6.469 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.525e-05/0.6694, allocations: 8.75 kB / 0.9531 GB, free: 6.469 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.334e-05/0.6695, allocations: 37.91 kB / 0.9532 GB, free: 6.426 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.744e-05/0.6695, allocations: 9.062 kB / 0.9532 GB, free: 6.422 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.473e-05/0.6696, allocations: 194.8 kB / 0.9534 GB, free: 6.199 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.383e-05/0.6696, allocations: 5.969 kB / 0.9534 GB, free: 6.195 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.69e-05/0.6696, allocations: 8.438 kB / 0.9534 GB, free: 6.191 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001718/0.6698, allocations: 84.08 kB / 0.9535 GB, free: 6.125 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.253e-06/0.6698, allocations: 4.875 kB / 0.9535 GB, free: 6.121 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.295e-05/0.6699, allocations: 0 / 0.9535 GB, free: 6.121 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.509e-06/0.6699, allocations: 2 kB / 0.9535 GB, free: 6.121 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001392/0.67, allocations: 49.73 kB / 0.9535 GB, free: 6.098 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000445/0.6705, allocations: 329.7 kB / 0.9538 GB, free: 5.762 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001974/0.6707, allocations: 85.25 kB / 0.9539 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.364e-05/0.6708, allocations: 46.23 kB / 0.954 GB, free: 5.672 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.896e-05/0.6708, allocations: 5.547 kB / 0.954 GB, free: 5.668 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002311/0.671, allocations: 106.7 kB / 0.9541 GB, free: 5.578 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=11): time 1.603e-06/0.671, allocations: 4 kB / 0.9541 GB, free: 5.574 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.0004062/0.6715, allocations: 166.2 kB / 0.9542 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.869e-05/0.6715, allocations: 57.81 kB / 0.9543 GB, free: 5.418 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.705e-05/0.6716, allocations: 145.9 kB / 0.9544 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.326e-05/0.6716, allocations: 26.73 kB / 0.9545 GB, free: 5.262 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.403e-05/0.6716, allocations: 99.62 kB / 0.9545 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.38e-05/0.6717, allocations: 31.48 kB / 0.9546 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.684e-05/0.6717, allocations: 33.05 kB / 0.9546 GB, free: 5.109 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.406e-05/0.6718, allocations: 329.6 kB / 0.9549 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.444e-05/0.6719, allocations: 30.92 kB / 0.955 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.667e-05/0.6719, allocations: 72.3 kB / 0.955 GB, free: 4.699 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001581/0.6721, allocations: 107.1 kB / 0.9551 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.6721, allocations: 1.156 kB / 0.9551 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002278/0.6724, allocations: 135 kB / 0.9553 GB, free: 4.531 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.5e-05/0.6724, allocations: 7.594 kB / 0.9553 GB, free: 4.531 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.979e-06/0.6724, allocations: 1.438 kB / 0.9553 GB, free: 4.531 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.379e-05/0.6724, allocations: 6.375 kB / 0.9553 GB, free: 4.527 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001103/0.6725, allocations: 20.42 kB / 0.9553 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.893e-06/0.6725, allocations: 1.125 kB / 0.9553 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001046/0.6726, allocations: 23.8 kB / 0.9553 GB, free: 4.504 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.272e-05/0.6727, allocations: 4.781 kB / 0.9553 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 7.232e-05/0.6727, allocations: 127.1 kB / 0.9554 GB, free: 4.375 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.212e-05/0.6728, allocations: 13.66 kB / 0.9554 GB, free: 4.367 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000336/0.6731, allocations: 172.1 kB / 0.9556 GB, free: 4.262 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.087e-06/0.6731, allocations: 2.375 kB / 0.9556 GB, free: 4.262 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.6731, allocations: 0 / 0.9556 GB, free: 4.262 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.947e-06/0.6731, allocations: 0 / 0.9556 GB, free: 4.262 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005385/0.6737, allocations: 466.2 kB / 0.9561 GB, free: 3.848 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.6737, allocations: 0 / 0.9561 GB, free: 3.848 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.965e-05/0.6738, allocations: 10.59 kB / 0.9561 GB, free: 3.848 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.286e-06/0.6738, allocations: 7.906 kB / 0.9561 GB, free: 3.844 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.444e-05/0.6738, allocations: 7.984 kB / 0.9561 GB, free: 3.836 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.715e-06/0.6738, allocations: 3.938 kB / 0.9561 GB, free: 3.832 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.6738, allocations: 0 / 0.9561 GB, free: 3.832 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002834/0.6741, allocations: 241.8 kB / 0.9563 GB, free: 3.648 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.738e-05/0.6742, allocations: 88.36 kB / 0.9564 GB, free: 3.547 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.926e-05/0.6742, allocations: 10.09 kB / 0.9564 GB, free: 3.539 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000128/0.6743, allocations: 20.89 kB / 0.9564 GB, free: 3.523 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.811e-05/0.6744, allocations: 9.422 kB / 0.9564 GB, free: 3.52 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.815e-05/0.6744, allocations: 7.609 kB / 0.9564 GB, free: 3.516 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 5.466e-05/0.6745, allocations: 109.8 kB / 0.9566 GB, free: 3.426 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6745, allocations: 0 / 0.9566 GB, free: 3.426 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000362/0.6748, allocations: 49.61 kB / 0.9566 GB, free: 3.41 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.000754/0.6756, allocations: 0.843 MB / 0.9574 GB, free: 2.664 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002745/0.6759, allocations: 95.55 kB / 0.9575 GB, free: 2.625 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.6759, allocations: 192 / 0.9575 GB, free: 2.625 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001186/0.676, allocations: 65.5 kB / 0.9576 GB, free: 2.594 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003238/0.6763, allocations: 19.52 kB / 0.9576 GB, free: 2.582 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001509/0.6779, allocations: 1.658 MB / 0.9592 GB, free: 1.082 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000123/0.678, allocations: 0.7045 MB / 0.9599 GB, free: 380 kB / 0.7169 GB Notification: Performance of simCode: alias equations: time 5.473e-05/0.6781, allocations: 11.42 kB / 0.9599 GB, free: 376 kB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.674e-05/0.6781, allocations: 36.92 kB / 0.9599 GB, free: 344 kB / 0.7169 GB Notification: Performance of SimCode: time 2.5e-07/0.6781, allocations: 5.312 kB / 0.96 GB, free: 340 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0247/0.7029, allocations: 3.41 MB / 0.9633 GB, free: 14.57 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.471/8.174, allocations: 16.28 kB / 0.9633 GB, free: 14.55 MB / 0.7325 GB (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 & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light_res.csv --start-time 0 --stop-time 3600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.44 Buildings_9_Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light.fmu > Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[575]=3600.000000 File[1254]=2249.280000 Error: Could not read variable lig.occ in file Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light_res.csv. Warning: Get data of variable lig.occ from file Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light_res.csv failed! Error: Could not read variable lig.on in file Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light_res.csv. Warning: Get data of variable lig.on from file Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light_res.csv failed! " Variables in the reference:time,lig.ill,lig.occ,lig.pArriv,lig.on Variables in the result:time,lig.ill,lig.pArriv,lig.pInter,booleanPulse.period,booleanPulse.startTime