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.005293/0.005293, allocations: 102 kB / 15.73 MB, free: 6.488 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.001235/0.001235, allocations: 196 kB / 16.68 MB, free: 6.375 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.406/1.406, allocations: 222.9 MB / 240.4 MB, free: 4.312 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.426/2.426, allocations: 390.3 MB / 0.6648 GB, free: 228 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001203/0.001203, allocations: 66.16 kB / 0.9504 GB, free: 5.957 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2749/0.2761, allocations: 140.4 MB / 1.087 GB, free: 2 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Love1998Light2): time 0.003106/0.2793, allocations: 1.5 MB / 1.089 GB, free: 500 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001429/0.2807, allocations: 0.761 MB / 1.09 GB, free: 15.72 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.399e-05/0.2808, allocations: 0 / 1.09 GB, free: 15.72 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.082e-05/0.2809, allocations: 7.875 kB / 1.09 GB, free: 15.71 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 9.22e-05/0.281, allocations: 15.86 kB / 1.09 GB, free: 15.7 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005605/0.2815, allocations: 123.6 kB / 1.09 GB, free: 15.58 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001382/0.2817, allocations: 87.69 kB / 1.09 GB, free: 15.49 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 9.639e-05/0.2818, allocations: 19.98 kB / 1.09 GB, free: 15.47 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001034/0.2819, allocations: 35.84 kB / 1.09 GB, free: 15.44 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 7.376e-05/0.282, allocations: 43.83 kB / 1.09 GB, free: 15.39 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.011e-05/0.282, allocations: 8 kB / 1.09 GB, free: 15.39 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000207/0.2822, allocations: 95.84 kB / 1.09 GB, free: 15.29 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.191e-05/0.2823, allocations: 15.92 kB / 1.09 GB, free: 15.28 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 5.535e-05/0.2823, allocations: 39.8 kB / 1.09 GB, free: 15.24 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002818/0.2826, allocations: 150.5 kB / 1.09 GB, free: 15.09 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.2826, allocations: 4 kB / 1.09 GB, free: 15.09 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.683e-06/0.2827, allocations: 0 / 1.09 GB, free: 15.09 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 9.578e-06/0.2827, allocations: 0 / 1.09 GB, free: 15.09 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.0007863/0.2835, allocations: 455.5 kB / 1.091 GB, free: 14.59 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.336e-05/0.2835, allocations: 12.03 kB / 1.091 GB, free: 14.57 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.262e-05/0.2836, allocations: 38.73 kB / 1.091 GB, free: 14.53 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.842e-05/0.2836, allocations: 8.844 kB / 1.091 GB, free: 14.52 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001332/0.2837, allocations: 172.2 kB / 1.091 GB, free: 14.31 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.612e-05/0.2838, allocations: 8.375 kB / 1.091 GB, free: 14.3 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.023e-05/0.2838, allocations: 12.36 kB / 1.091 GB, free: 14.29 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001762/0.284, allocations: 73.72 kB / 1.091 GB, free: 14.21 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.857e-06/0.284, allocations: 3.938 kB / 1.091 GB, free: 14.21 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.383e-05/0.284, allocations: 4 kB / 1.091 GB, free: 14.21 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.258e-06/0.284, allocations: 0 / 1.091 GB, free: 14.21 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001324/0.2842, allocations: 43.91 kB / 1.091 GB, free: 14.16 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005392/0.2847, allocations: 324.6 kB / 1.091 GB, free: 13.8 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000147/0.2849, allocations: 62.55 kB / 1.091 GB, free: 13.73 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.558e-05/0.285, allocations: 32.84 kB / 1.091 GB, free: 13.69 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.7e-05/0.285, allocations: 12.23 kB / 1.091 GB, free: 13.68 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002361/0.2852, allocations: 95.3 kB / 1.092 GB, free: 13.57 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=10): time 1.643e-06/0.2852, allocations: 0 / 1.092 GB, free: 13.57 MB / 0.8575 GB Notification: Performance of matching and sorting (n=10): time 0.0003981/0.2856, allocations: 153.5 kB / 1.092 GB, free: 13.42 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.333e-05/0.2857, allocations: 59.39 kB / 1.092 GB, free: 13.35 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.774e-05/0.2858, allocations: 119.7 kB / 1.092 GB, free: 13.22 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.293e-05/0.2858, allocations: 33.7 kB / 1.092 GB, free: 13.18 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.229e-05/0.2859, allocations: 96.27 kB / 1.092 GB, free: 13.08 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.596e-05/0.2859, allocations: 19.72 kB / 1.092 GB, free: 13.06 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.375e-05/0.286, allocations: 37.7 kB / 1.092 GB, free: 13.02 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 9.921e-05/0.2861, allocations: 322.8 kB / 1.092 GB, free: 12.7 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.218e-05/0.2862, allocations: 23.98 kB / 1.092 GB, free: 12.67 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001035/0.2863, allocations: 77.06 kB / 1.092 GB, free: 12.58 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001695/0.2865, allocations: 105 kB / 1.093 GB, free: 12.46 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.2865, allocations: 384 / 1.093 GB, free: 12.46 MB / 0.8575 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002375/0.2867, allocations: 121.6 kB / 1.093 GB, free: 12.33 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.411e-05/0.2867, allocations: 12 kB / 1.093 GB, free: 12.32 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/0.2868, allocations: 0 / 1.093 GB, free: 12.32 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.546e-05/0.2868, allocations: 7.938 kB / 1.093 GB, free: 12.31 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001109/0.2869, allocations: 15.92 kB / 1.093 GB, free: 12.3 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.148e-06/0.2869, allocations: 7.984 kB / 1.093 GB, free: 12.29 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001125/0.287, allocations: 15.94 kB / 1.093 GB, free: 12.27 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.426e-05/0.287, allocations: 11.98 kB / 1.093 GB, free: 12.26 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 9.082e-05/0.2871, allocations: 127.7 kB / 1.093 GB, free: 12.13 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.217e-05/0.2872, allocations: 7.906 kB / 1.093 GB, free: 12.12 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003254/0.2875, allocations: 149.9 kB / 1.093 GB, free: 11.97 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.903e-06/0.2875, allocations: 4 kB / 1.093 GB, free: 11.96 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.2875, allocations: 0 / 1.093 GB, free: 11.96 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.2875, allocations: 0 / 1.093 GB, free: 11.96 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005483/0.2881, allocations: 434.2 kB / 1.093 GB, free: 11.48 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.2881, allocations: 7.984 kB / 1.093 GB, free: 11.48 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.923e-05/0.2882, allocations: 8 kB / 1.093 GB, free: 11.47 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.2882, allocations: 0 / 1.093 GB, free: 11.47 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.774e-05/0.2882, allocations: 11.98 kB / 1.093 GB, free: 11.46 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.176e-06/0.2882, allocations: 3.938 kB / 1.093 GB, free: 11.45 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.2882, allocations: 0 / 1.093 GB, free: 11.45 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002834/0.2885, allocations: 215.4 kB / 1.094 GB, free: 11.23 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.815e-05/0.2886, allocations: 88.95 kB / 1.094 GB, free: 11.12 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.341e-05/0.2886, allocations: 7.984 kB / 1.094 GB, free: 11.11 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001192/0.2887, allocations: 11.94 kB / 1.094 GB, free: 11.1 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.515e-05/0.2888, allocations: 11.98 kB / 1.094 GB, free: 11.09 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.78e-05/0.2888, allocations: 7.984 kB / 1.094 GB, free: 11.08 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 6.011e-05/0.2889, allocations: 98.77 kB / 1.094 GB, free: 10.99 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2889, allocations: 3.938 kB / 1.094 GB, free: 10.98 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003279/0.2892, allocations: 40 kB / 1.094 GB, free: 10.95 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.0008461/0.2901, allocations: 0.825 MB / 1.095 GB, free: 10.11 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002501/0.2903, allocations: 91.95 kB / 1.095 GB, free: 10.02 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.2903, allocations: 0 / 1.095 GB, free: 10.02 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001053/0.2904, allocations: 43.98 kB / 1.095 GB, free: 9.977 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002972/0.2907, allocations: 15.92 kB / 1.095 GB, free: 9.961 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00169/0.2924, allocations: 1.59 MB / 1.096 GB, free: 8.262 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002353/0.2927, allocations: 0.7006 MB / 1.097 GB, free: 7.535 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 4.408e-05/0.2927, allocations: 8.375 kB / 1.097 GB, free: 7.527 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.973e-05/0.2928, allocations: 31.42 kB / 1.097 GB, free: 7.496 MB / 0.8575 GB Notification: Performance of SimCode: time 2.2e-07/0.2928, allocations: 0 / 1.097 GB, free: 7.496 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02065/0.3135, allocations: 3.097 MB / 1.1 GB, free: 4.516 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.644/7.958, allocations: 9.656 kB / 1.1 GB, free: 4.512 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