Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.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.Love1998Light2,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Lighting_Validation_Love1998Light2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Love1998Light2,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Lighting_Validation_Love1998Light2",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.009222/0.009222, allocations: 96.2 kB / 15.73 MB, free: 6.039 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.001951/0.001951, allocations: 198.2 kB / 16.68 MB, free: 5.969 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.363/1.363, allocations: 222.9 MB / 240.4 MB, free: 4.309 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.368/2.368, allocations: 390.2 MB / 0.6648 GB, free: 236 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001285/0.001285, allocations: 61.91 kB / 0.9504 GB, free: 5.992 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2789/0.2802, allocations: 140.4 MB / 1.087 GB, free: 2.062 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Love1998Light2): time 0.002441/0.2826, allocations: 1.509 MB / 1.089 GB, free: 0.5391 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001226/0.2839, allocations: 0.7608 MB / 1.09 GB, free: 15.77 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.584e-05/0.2839, allocations: 0 / 1.09 GB, free: 15.77 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.789e-05/0.284, allocations: 3.938 kB / 1.09 GB, free: 15.77 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 9.164e-05/0.2841, allocations: 15.86 kB / 1.09 GB, free: 15.75 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.000539/0.2846, allocations: 131.5 kB / 1.09 GB, free: 15.62 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001214/0.2848, allocations: 87.7 kB / 1.09 GB, free: 15.54 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 8.508e-05/0.2849, allocations: 15.97 kB / 1.09 GB, free: 15.52 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 9.376e-05/0.285, allocations: 39.84 kB / 1.09 GB, free: 15.48 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 6.397e-05/0.285, allocations: 35.84 kB / 1.09 GB, free: 15.45 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.48e-05/0.2851, allocations: 8 kB / 1.09 GB, free: 15.44 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001785/0.2853, allocations: 91.91 kB / 1.09 GB, free: 15.35 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.09e-05/0.2853, allocations: 27.91 kB / 1.09 GB, free: 15.32 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 5.267e-05/0.2854, allocations: 35.84 kB / 1.09 GB, free: 15.29 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002361/0.2856, allocations: 147.8 kB / 1.09 GB, free: 15.14 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.2856, allocations: 3.938 kB / 1.09 GB, free: 15.14 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.242e-06/0.2856, allocations: 0 / 1.09 GB, free: 15.14 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.694e-06/0.2856, allocations: 0 / 1.09 GB, free: 15.14 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0006727/0.2863, allocations: 470.3 kB / 1.091 GB, free: 14.62 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.407e-05/0.2863, allocations: 12.03 kB / 1.091 GB, free: 14.61 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.737e-05/0.2864, allocations: 34.75 kB / 1.091 GB, free: 14.57 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.725e-05/0.2864, allocations: 8.891 kB / 1.091 GB, free: 14.56 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001154/0.2866, allocations: 176.3 kB / 1.091 GB, free: 14.35 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.617e-05/0.2866, allocations: 4.375 kB / 1.091 GB, free: 14.34 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.907e-05/0.2866, allocations: 4.375 kB / 1.091 GB, free: 14.34 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001749/0.2868, allocations: 77.7 kB / 1.091 GB, free: 14.26 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.947e-06/0.2868, allocations: 4 kB / 1.091 GB, free: 14.25 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.319e-05/0.2868, allocations: 3.984 kB / 1.091 GB, free: 14.25 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-06/0.2868, allocations: 0 / 1.091 GB, free: 14.25 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001316/0.287, allocations: 43.97 kB / 1.091 GB, free: 14.21 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005222/0.2875, allocations: 328.6 kB / 1.091 GB, free: 13.84 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001482/0.2877, allocations: 62.55 kB / 1.091 GB, free: 13.77 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.86e-05/0.2877, allocations: 32.84 kB / 1.091 GB, free: 13.73 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.83e-05/0.2878, allocations: 4 kB / 1.091 GB, free: 13.73 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002196/0.288, allocations: 99.28 kB / 1.092 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=10): time 1.523e-06/0.288, allocations: 0 / 1.092 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of matching and sorting (n=10): time 0.0003857/0.2884, allocations: 161.5 kB / 1.092 GB, free: 13.45 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.252e-05/0.2885, allocations: 55.41 kB / 1.092 GB, free: 13.39 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001044/0.2886, allocations: 132 kB / 1.092 GB, free: 13.25 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.94e-05/0.2886, allocations: 33.7 kB / 1.092 GB, free: 13.21 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.061e-05/0.2886, allocations: 88.38 kB / 1.092 GB, free: 13.12 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.54e-05/0.2887, allocations: 23.84 kB / 1.092 GB, free: 13.09 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.307e-05/0.2887, allocations: 29.7 kB / 1.092 GB, free: 13.06 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001048/0.2888, allocations: 326.8 kB / 1.092 GB, free: 12.73 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.35e-05/0.2889, allocations: 31.92 kB / 1.092 GB, free: 12.7 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.302e-05/0.289, allocations: 65.14 kB / 1.092 GB, free: 12.62 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001777/0.2892, allocations: 101 kB / 1.093 GB, free: 12.5 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.887e-06/0.2893, allocations: 8 kB / 1.093 GB, free: 12.49 MB / 0.8575 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000257/0.2895, allocations: 129.4 kB / 1.093 GB, free: 12.36 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.593e-05/0.2895, allocations: 8 kB / 1.093 GB, free: 12.35 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.2895, allocations: 0 / 1.093 GB, free: 12.35 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.29e-05/0.2896, allocations: 0 / 1.093 GB, free: 12.35 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001103/0.2897, allocations: 15.98 kB / 1.093 GB, free: 12.34 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.384e-06/0.2897, allocations: 4 kB / 1.093 GB, free: 12.33 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001108/0.2898, allocations: 16.05 kB / 1.093 GB, free: 12.32 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.21e-05/0.2898, allocations: 8 kB / 1.093 GB, free: 12.31 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,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 0.000101/0.2899, allocations: 127.6 kB / 1.093 GB, free: 12.18 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.41e-05/0.29, allocations: 7.953 kB / 1.093 GB, free: 12.17 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003433/0.2903, allocations: 142 kB / 1.093 GB, free: 12.02 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.855e-06/0.2903, allocations: 0 / 1.093 GB, free: 12.02 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.2903, allocations: 0 / 1.093 GB, free: 12.02 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/0.2904, allocations: 11.92 kB / 1.093 GB, free: 12.01 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005586/0.2909, allocations: 434.4 kB / 1.093 GB, free: 11.53 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.2909, allocations: 96 / 1.093 GB, free: 11.53 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.254e-05/0.291, allocations: 15.92 kB / 1.093 GB, free: 11.52 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.898e-06/0.291, allocations: 4.359 kB / 1.093 GB, free: 11.51 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.105e-05/0.291, allocations: 0 / 1.093 GB, free: 11.51 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.116e-06/0.291, allocations: 3.938 kB / 1.093 GB, free: 11.51 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/0.2911, allocations: 4 kB / 1.093 GB, free: 11.5 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000287/0.2913, allocations: 235.3 kB / 1.094 GB, free: 11.26 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.974e-05/0.2914, allocations: 81.06 kB / 1.094 GB, free: 11.16 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.204e-05/0.2914, allocations: 4 kB / 1.094 GB, free: 11.16 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001224/0.2916, allocations: 15.92 kB / 1.094 GB, free: 11.14 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.491e-05/0.2916, allocations: 7.984 kB / 1.094 GB, free: 11.13 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.737e-05/0.2916, allocations: 8 kB / 1.094 GB, free: 11.12 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 6.449e-05/0.2917, allocations: 101 kB / 1.094 GB, free: 11.03 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2917, allocations: 4 kB / 1.094 GB, free: 11.02 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003132/0.292, allocations: 43.92 kB / 1.094 GB, free: 10.98 MB / 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 (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.0007471/0.2928, allocations: 0.8214 MB / 1.095 GB, free: 10.15 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002369/0.293, allocations: 79.89 kB / 1.095 GB, free: 10.07 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.293, allocations: 0 / 1.095 GB, free: 10.07 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001176/0.2932, allocations: 51.91 kB / 1.095 GB, free: 10.02 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003144/0.2935, allocations: 19.92 kB / 1.095 GB, free: 10 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001654/0.2952, allocations: 1.597 MB / 1.096 GB, free: 8.297 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002435/0.2954, allocations: 0.6929 MB / 1.097 GB, free: 7.578 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 5.216e-05/0.2955, allocations: 12.42 kB / 1.097 GB, free: 7.566 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.327e-05/0.2956, allocations: 27.42 kB / 1.097 GB, free: 7.539 MB / 0.8575 GB Notification: Performance of SimCode: time 5.51e-07/0.2956, allocations: 0 / 1.097 GB, free: 7.539 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02033/0.3159, allocations: 3.101 MB / 1.1 GB, free: 4.555 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.364/7.68, allocations: 1.75 kB / 1.1 GB, free: 4.555 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2_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_Love1998Light2.fmu > Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Lighting_Validation_Love1998Light2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2.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.Love1998Light2_res.csv. Warning: Get data of variable lig.occ from file Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2_res.csv failed! Error: Could not read variable lig.on in file Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2_res.csv. Warning: Get data of variable lig.on from file Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light2_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