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.009113/0.009113, allocations: 104.1 kB / 15.73 MB, free: 6.051 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.002133/0.002134, allocations: 196.2 kB / 16.68 MB, free: 5.961 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.408/1.408, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.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.182/2.182, allocations: 390.3 MB / 0.6648 GB, free: 0.6133 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.00126/0.00126, allocations: 63.91 kB / 0.9504 GB, free: 8.148 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7537/0.755, allocations: 140.4 MB / 1.087 GB, free: 5.262 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light): time 0.003142/0.7582, allocations: 1.55 MB / 1.089 GB, free: 4.18 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001306/0.7595, allocations: 0.7521 MB / 1.09 GB, free: 3.672 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.465e-05/0.7596, allocations: 0 / 1.09 GB, free: 3.672 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.491e-05/0.7596, allocations: 13 kB / 1.09 GB, free: 3.66 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 9.712e-05/0.7597, allocations: 25.41 kB / 1.09 GB, free: 3.641 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005442/0.7603, allocations: 128.4 kB / 1.09 GB, free: 3.578 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001576/0.7604, allocations: 96.8 kB / 1.09 GB, free: 3.535 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001019/0.7606, allocations: 16.33 kB / 1.09 GB, free: 3.527 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001075/0.7607, allocations: 43.84 kB / 1.09 GB, free: 3.508 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 9.575e-05/0.7608, allocations: 54.7 kB / 1.09 GB, free: 3.48 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.02e-05/0.7608, allocations: 11.47 kB / 1.09 GB, free: 3.477 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001934/0.761, allocations: 95.28 kB / 1.09 GB, free: 3.449 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.316e-05/0.761, allocations: 17.2 kB / 1.09 GB, free: 3.441 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 5.603e-05/0.7611, allocations: 44.38 kB / 1.09 GB, free: 3.414 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003113/0.7614, allocations: 169.1 kB / 1.09 GB, free: 3.352 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.7614, allocations: 1 kB / 1.09 GB, free: 3.352 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.214e-06/0.7614, allocations: 0 / 1.09 GB, free: 3.352 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.118e-05/0.7615, allocations: 0 / 1.09 GB, free: 3.352 MB / 0.8575 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.0007487/0.7622, allocations: 0.5069 MB / 1.091 GB, free: 2.848 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.162e-05/0.7623, allocations: 9.656 kB / 1.091 GB, free: 2.848 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.53e-05/0.7623, allocations: 37.72 kB / 1.091 GB, free: 2.805 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.085e-05/0.7624, allocations: 10.83 kB / 1.091 GB, free: 2.801 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001122/0.7625, allocations: 183.8 kB / 1.091 GB, free: 2.59 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.804e-05/0.7625, allocations: 4.359 kB / 1.091 GB, free: 2.59 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.326e-05/0.7625, allocations: 4.969 kB / 1.091 GB, free: 2.59 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002107/0.7627, allocations: 88.58 kB / 1.091 GB, free: 2.535 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.967e-06/0.7628, allocations: 4 kB / 1.091 GB, free: 2.531 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.482e-05/0.7628, allocations: 1.578 kB / 1.091 GB, free: 2.531 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.19e-06/0.7628, allocations: 1.312 kB / 1.091 GB, free: 2.531 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001527/0.7629, allocations: 46.98 kB / 1.091 GB, free: 2.52 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005054/0.7635, allocations: 344 kB / 1.092 GB, free: 2.207 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002216/0.7637, allocations: 82.84 kB / 1.092 GB, free: 2.16 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.075e-05/0.7638, allocations: 35.72 kB / 1.092 GB, free: 2.145 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.419e-05/0.7638, allocations: 5.281 kB / 1.092 GB, free: 2.141 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002504/0.7641, allocations: 100.2 kB / 1.092 GB, free: 2.074 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=11): time 1.393e-06/0.7641, allocations: 0.6875 kB / 1.092 GB, free: 2.074 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11): time 0.0004474/0.7645, allocations: 176.6 kB / 1.092 GB, free: 1.996 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.042e-05/0.7646, allocations: 53.89 kB / 1.092 GB, free: 1.934 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001108/0.7647, allocations: 143.2 kB / 1.092 GB, free: 1.82 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.541e-05/0.7647, allocations: 31.02 kB / 1.092 GB, free: 1.785 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.074e-05/0.7648, allocations: 93.77 kB / 1.092 GB, free: 1.695 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.931e-05/0.7648, allocations: 34.88 kB / 1.092 GB, free: 1.668 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.702e-05/0.7649, allocations: 36.12 kB / 1.092 GB, free: 1.641 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.172e-05/0.7649, allocations: 329.1 kB / 1.093 GB, free: 1.316 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.317e-05/0.765, allocations: 28.45 kB / 1.093 GB, free: 1.309 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001043/0.7651, allocations: 72.55 kB / 1.093 GB, free: 1.25 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001667/0.7653, allocations: 110.3 kB / 1.093 GB, free: 1.168 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.7653, allocations: 0.7812 kB / 1.093 GB, free: 1.168 MB / 0.8575 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000261/0.7656, allocations: 134.5 kB / 1.093 GB, free: 1.102 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.689e-05/0.7656, allocations: 6.25 kB / 1.093 GB, free: 1.102 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.081e-06/0.7656, allocations: 1.812 kB / 1.093 GB, free: 1.102 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.627e-05/0.7656, allocations: 2.391 kB / 1.093 GB, free: 1.102 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001148/0.7657, allocations: 25.05 kB / 1.093 GB, free: 1.094 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.995e-06/0.7658, allocations: 6.719 kB / 1.093 GB, free: 1.09 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001009/0.7659, allocations: 13.83 kB / 1.093 GB, free: 1.086 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.422e-05/0.7659, allocations: 9.297 kB / 1.093 GB, free: 1.082 MB / 0.8575 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.935e-05/0.766, allocations: 130.3 kB / 1.093 GB, free: 0.9531 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.181e-05/0.766, allocations: 8.781 kB / 1.093 GB, free: 0.9492 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003659/0.7664, allocations: 168.3 kB / 1.093 GB, free: 0.8672 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.497e-06/0.7664, allocations: 5.812 kB / 1.093 GB, free: 0.8633 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.7664, allocations: 1.453 kB / 1.093 GB, free: 0.8633 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.957e-06/0.7664, allocations: 0.75 kB / 1.093 GB, free: 0.8633 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005751/0.767, allocations: 464.6 kB / 1.094 GB, free: 0.5 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.764e-06/0.767, allocations: 0 / 1.094 GB, free: 0.5 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.167e-05/0.7671, allocations: 13.52 kB / 1.094 GB, free: 0.5 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.446e-06/0.7671, allocations: 2.484 kB / 1.094 GB, free: 0.5 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.426e-05/0.7671, allocations: 2.156 kB / 1.094 GB, free: 0.5 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.334e-06/0.7671, allocations: 8.844 kB / 1.094 GB, free: 0.4922 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.7671, allocations: 0.875 kB / 1.094 GB, free: 0.4922 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003206/0.7674, allocations: 247.1 kB / 1.094 GB, free: 328 kB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.774e-05/0.7675, allocations: 93.03 kB / 1.094 GB, free: 220 kB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.551e-05/0.7675, allocations: 2.062 kB / 1.094 GB, free: 220 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001243/0.7676, allocations: 12.41 kB / 1.094 GB, free: 216 kB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.424e-05/0.7677, allocations: 21.75 kB / 1.094 GB, free: 204 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.063e-05/0.7677, allocations: 9.25 kB / 1.094 GB, free: 200 kB / 0.8575 GB Notification: Performance of sorting global known variables: time 6.099e-05/0.7678, allocations: 111.8 kB / 1.094 GB, free: 112 kB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7678, allocations: 0 / 1.094 GB, free: 112 kB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003525/0.7682, allocations: 43.59 kB / 1.094 GB, free: 104 kB / 0.8575 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.0008444/0.769, allocations: 0.847 MB / 1.095 GB, free: 15.38 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0002934/0.7693, allocations: 91.75 kB / 1.095 GB, free: 15.35 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.063e-06/0.7693, allocations: 0.7812 kB / 1.095 GB, free: 15.35 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001509/0.7695, allocations: 54.73 kB / 1.095 GB, free: 15.34 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000317/0.7698, allocations: 28.42 kB / 1.095 GB, free: 15.32 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001909/0.7717, allocations: 1.674 MB / 1.097 GB, free: 13.89 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002795/0.772, allocations: 0.6989 MB / 1.098 GB, free: 13.2 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 6.182e-05/0.7721, allocations: 13.78 kB / 1.098 GB, free: 13.2 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.115e-05/0.7722, allocations: 35.2 kB / 1.098 GB, free: 13.18 MB / 0.8731 GB Notification: Performance of SimCode: time 3.11e-07/0.7722, allocations: 0 / 1.098 GB, free: 13.18 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02119/0.7934, allocations: 3.459 MB / 1.101 GB, free: 12.64 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.674/8.468, allocations: 12.27 kB / 1.101 GB, free: 12.63 MB / 0.8731 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