Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1.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: "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Love1998Light1,fileNamePrefix="Buildings_10_Buildings_Occupants_Office_Lighting_Validation_Love1998Light1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Love1998Light1,fileNamePrefix="Buildings_10_Buildings_Occupants_Office_Lighting_Validation_Love1998Light1",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.001183/0.001183, 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.001349/0.001349, allocations: 195.5 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.491/1.491, allocations: 222.9 MB / 240.2 MB, free: 4.41 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.676/2.676, allocations: 437 MB / 0.7104 GB, free: 5.113 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001384/0.001384, allocations: 59.91 kB / 0.8693 GB, free: 4.574 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5914/0.5928, allocations: 151.6 MB / 1.017 GB, free: 2.5 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Love1998Light1): time 0.002745/0.5956, allocations: 1.514 MB / 1.019 GB, free: 0.9766 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001336/0.597, allocations: 0.7556 MB / 1.02 GB, free: 220 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.816e-05/0.5971, allocations: 0 / 1.02 GB, free: 220 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.919e-05/0.5971, allocations: 7.922 kB / 1.02 GB, free: 212 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 9.721e-05/0.5972, allocations: 11.88 kB / 1.02 GB, free: 200 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006222/0.5979, allocations: 131.5 kB / 1.02 GB, free: 68 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001542/0.598, allocations: 83.81 kB / 1.02 GB, free: 15.98 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 9.703e-05/0.5981, allocations: 15.88 kB / 1.02 GB, free: 15.97 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001145/0.5983, allocations: 43.8 kB / 1.02 GB, free: 15.93 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 8.393e-05/0.5984, allocations: 43.81 kB / 1.02 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.216e-05/0.5984, allocations: 12 kB / 1.02 GB, free: 15.87 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002182/0.5986, allocations: 91.91 kB / 1.02 GB, free: 15.78 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 3.042e-05/0.5986, allocations: 11.98 kB / 1.02 GB, free: 15.77 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 5.605e-05/0.5987, allocations: 35.8 kB / 1.02 GB, free: 15.73 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002827/0.599, allocations: 149.9 kB / 1.02 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.599, allocations: 0 / 1.02 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.272e-06/0.599, allocations: 0 / 1.02 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 6.292e-06/0.599, allocations: 0 / 1.02 GB, free: 15.59 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0007797/0.5998, allocations: 475.3 kB / 1.021 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.032e-05/0.5999, allocations: 8.031 kB / 1.021 GB, free: 15.06 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.214e-05/0.5999, allocations: 38.75 kB / 1.021 GB, free: 15.01 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.365e-05/0.6, allocations: 12.83 kB / 1.021 GB, free: 15 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001369/0.6001, allocations: 172.2 kB / 1.021 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.043e-05/0.6001, allocations: 8.375 kB / 1.021 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.632e-05/0.6002, allocations: 4.375 kB / 1.021 GB, free: 14.78 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001924/0.6004, allocations: 77.7 kB / 1.021 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.015e-06/0.6004, allocations: 4 kB / 1.021 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.377e-05/0.6004, allocations: 0 / 1.021 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.969e-06/0.6004, allocations: 4 kB / 1.021 GB, free: 14.69 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001385/0.6005, allocations: 43.97 kB / 1.021 GB, free: 14.65 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00053/0.6011, allocations: 316.6 kB / 1.021 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001528/0.6012, allocations: 58.55 kB / 1.021 GB, free: 14.22 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.44e-05/0.6013, allocations: 40.84 kB / 1.021 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.267e-05/0.6014, allocations: 0 / 1.021 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000238/0.6016, allocations: 99.53 kB / 1.022 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=10): time 1.482e-06/0.6016, allocations: 0 / 1.022 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of matching and sorting (n=10): time 0.0003978/0.602, allocations: 161.4 kB / 1.022 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.929e-05/0.6021, allocations: 55.41 kB / 1.022 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000105/0.6022, allocations: 129.8 kB / 1.022 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.854e-05/0.6022, allocations: 25.7 kB / 1.022 GB, free: 13.67 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.097e-05/0.6023, allocations: 96.36 kB / 1.022 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.666e-05/0.6023, allocations: 23.66 kB / 1.022 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.285e-05/0.6024, allocations: 29.7 kB / 1.022 GB, free: 13.51 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.724e-05/0.6025, allocations: 326.8 kB / 1.022 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.886e-05/0.6026, allocations: 27.98 kB / 1.022 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.741e-05/0.6027, allocations: 69.12 kB / 1.022 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001685/0.6028, allocations: 93.08 kB / 1.023 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.6028, allocations: 4 kB / 1.023 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002612/0.6031, allocations: 137.3 kB / 1.023 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.732e-05/0.6031, allocations: 10.19 kB / 1.023 GB, free: 12.81 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.6032, allocations: 0 / 1.023 GB, free: 12.81 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.919e-05/0.6032, allocations: 4 kB / 1.023 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001111/0.6033, allocations: 15.92 kB / 1.023 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.356e-06/0.6033, allocations: 8.125 kB / 1.023 GB, free: 12.78 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001052/0.6034, allocations: 11.89 kB / 1.023 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.533e-05/0.6034, allocations: 12 kB / 1.023 GB, free: 12.76 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,occ.pulseStart,$PRE.occ.pulseStart,occ.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 14 * 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.527e-05/0.6035, allocations: 121.7 kB / 1.023 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.411e-05/0.6036, allocations: 11.89 kB / 1.023 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003182/0.6039, allocations: 145.9 kB / 1.023 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.756e-06/0.6039, allocations: 4 kB / 1.023 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.259e-06/0.6039, allocations: 4 kB / 1.023 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.987e-06/0.6039, allocations: 0 / 1.023 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005467/0.6045, allocations: 430.2 kB / 1.023 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.6045, allocations: 4 kB / 1.023 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.27e-05/0.6046, allocations: 11.98 kB / 1.023 GB, free: 11.96 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.699e-06/0.6046, allocations: 0 / 1.023 GB, free: 11.96 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.172e-05/0.6046, allocations: 3.938 kB / 1.023 GB, free: 11.96 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.592e-06/0.6046, allocations: 11.94 kB / 1.023 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.6046, allocations: 0 / 1.023 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002858/0.6049, allocations: 223.3 kB / 1.024 GB, free: 11.71 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.757e-05/0.605, allocations: 89.02 kB / 1.024 GB, free: 11.61 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.49e-05/0.605, allocations: 384 / 1.024 GB, free: 11.61 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000121/0.6051, allocations: 11.92 kB / 1.024 GB, free: 11.6 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.569e-05/0.6052, allocations: 15.98 kB / 1.024 GB, free: 11.58 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.755e-05/0.6052, allocations: 4 kB / 1.024 GB, free: 11.58 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 6.492e-05/0.6053, allocations: 100.5 kB / 1.024 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.41e-07/0.6053, allocations: 0 / 1.024 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003565/0.6057, allocations: 47.98 kB / 1.024 GB, free: 11.43 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 (occ.y,lig.sampleTrigger,$whenCondition3,$whenCondition2,$whenCondition1,lig.on,lig.curSeed,occ.pulseStart) * Number of discrete states: 1 (lig.on) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 9 * 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.0008645/0.6065, allocations: 0.8253 MB / 1.025 GB, free: 10.6 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002672/0.6068, allocations: 87.83 kB / 1.025 GB, free: 10.51 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.6068, allocations: 0 / 1.025 GB, free: 10.51 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001224/0.607, allocations: 47.98 kB / 1.025 GB, free: 10.46 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003137/0.6073, allocations: 21.38 kB / 1.025 GB, free: 10.45 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001755/0.609, allocations: 1.581 MB / 1.026 GB, free: 8.758 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002237/0.6093, allocations: 0.6963 MB / 1.027 GB, free: 8.035 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 5.07e-05/0.6093, allocations: 8.438 kB / 1.027 GB, free: 8.027 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.993e-05/0.6094, allocations: 27.42 kB / 1.027 GB, free: 8 MB / 0.7794 GB Notification: Performance of SimCode: time 5.11e-07/0.6094, allocations: 0 / 1.027 GB, free: 8 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02014/0.6296, allocations: 3.053 MB / 1.03 GB, free: 5.047 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.258/7.887, allocations: 9.344 kB / 1.03 GB, free: 5.043 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1.pipe ; mkfifo Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1.pipe ; head -c 1048576 < Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1.pipe >> ../files/Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1_res.csv --start-time 0 --stop-time 3600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.44 Buildings_10_Buildings_Occupants_Office_Lighting_Validation_Love1998Light1.fmu > Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Occupants_Office_Lighting_Validation_Love1998Light1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1.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_10_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1_res.csv. Warning: Get data of variable lig.occ from file Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1_res.csv failed! Error: Could not read variable lig.on in file Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1_res.csv. Warning: Get data of variable lig.on from file Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1_res.csv failed! " Variables in the reference:time,lig.ill,lig.occ,lig.p,lig.on Variables in the result:time,lig.ill,lig.p,ill.amplitude,ill.f,ill.offset