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.001137/0.001137, allocations: 108 kB / 15.61 MB, free: 128 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.001455/0.001455, allocations: 198 kB / 16.53 MB, free: 6.668 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.438/1.438, allocations: 222.9 MB / 240.2 MB, free: 4.426 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.377/2.377, allocations: 390.3 MB / 0.6647 GB, free: 424 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001359/0.001359, allocations: 63.91 kB / 0.8127 GB, free: 14.34 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6631/0.6645, allocations: 140.4 MB / 0.9497 GB, free: 9.215 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Love1998Light2): time 0.00246/0.667, allocations: 1.505 MB / 0.9512 GB, free: 8.027 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001076/0.6681, allocations: 0.756 MB / 0.9519 GB, free: 7.441 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.19e-05/0.6681, allocations: 4 kB / 0.9519 GB, free: 7.438 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.692e-05/0.6681, allocations: 8.875 kB / 0.9519 GB, free: 7.43 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.942e-05/0.6682, allocations: 13.02 kB / 0.9519 GB, free: 7.418 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000464/0.6687, allocations: 122.9 kB / 0.9521 GB, free: 7.332 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001006/0.6688, allocations: 87.45 kB / 0.9522 GB, free: 7.281 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.35e-05/0.6689, allocations: 22.19 kB / 0.9522 GB, free: 7.266 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.439e-05/0.669, allocations: 42.31 kB / 0.9522 GB, free: 7.238 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.06e-05/0.6691, allocations: 39.2 kB / 0.9522 GB, free: 7.211 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.998e-05/0.6691, allocations: 6.844 kB / 0.9523 GB, free: 7.211 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000184/0.6693, allocations: 98.94 kB / 0.9524 GB, free: 7.16 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.383e-05/0.6693, allocations: 18.61 kB / 0.9524 GB, free: 7.145 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.711e-05/0.6694, allocations: 37.41 kB / 0.9524 GB, free: 7.117 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001995/0.6696, allocations: 146.7 kB / 0.9525 GB, free: 7.023 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.6696, allocations: 0 / 0.9525 GB, free: 7.023 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.633e-06/0.6696, allocations: 1.375 kB / 0.9525 GB, free: 7.023 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.511e-06/0.6696, allocations: 0 / 0.9525 GB, free: 7.023 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0005975/0.6702, allocations: 465.6 kB / 0.953 GB, free: 6.547 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.731e-05/0.6703, allocations: 10.09 kB / 0.953 GB, free: 6.547 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.739e-05/0.6703, allocations: 34.75 kB / 0.953 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.538e-05/0.6703, allocations: 9.031 kB / 0.953 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.504e-05/0.6704, allocations: 185.4 kB / 0.9532 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.454e-05/0.6705, allocations: 6.875 kB / 0.9532 GB, free: 6.281 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.983e-05/0.6705, allocations: 4.719 kB / 0.9532 GB, free: 6.281 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001655/0.6707, allocations: 77.59 kB / 0.9533 GB, free: 6.219 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.043e-06/0.6707, allocations: 0 / 0.9533 GB, free: 6.219 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.333e-05/0.6707, allocations: 1.375 kB / 0.9533 GB, free: 6.219 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.328e-06/0.6707, allocations: 3.938 kB / 0.9533 GB, free: 6.215 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001291/0.6708, allocations: 46.16 kB / 0.9534 GB, free: 6.191 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004383/0.6713, allocations: 322.4 kB / 0.9537 GB, free: 5.859 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001366/0.6714, allocations: 59.86 kB / 0.9537 GB, free: 5.816 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.481e-05/0.6715, allocations: 40.28 kB / 0.9538 GB, free: 5.789 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.007e-05/0.6715, allocations: 1.469 kB / 0.9538 GB, free: 5.789 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001826/0.6717, allocations: 88.67 kB / 0.9538 GB, free: 5.715 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=10): time 1.562e-06/0.6717, allocations: 0 / 0.9538 GB, free: 5.715 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10): time 0.0003602/0.6721, allocations: 166.1 kB / 0.954 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.577e-05/0.6721, allocations: 53.78 kB / 0.954 GB, free: 5.555 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.994e-05/0.6722, allocations: 128 kB / 0.9542 GB, free: 5.438 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.277e-05/0.6722, allocations: 27.23 kB / 0.9542 GB, free: 5.406 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.246e-05/0.6723, allocations: 94.92 kB / 0.9543 GB, free: 5.309 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.329e-05/0.6723, allocations: 27.64 kB / 0.9543 GB, free: 5.285 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.642e-05/0.6724, allocations: 30.89 kB / 0.9543 GB, free: 5.258 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.633e-05/0.6724, allocations: 325.5 kB / 0.9547 GB, free: 4.934 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.434e-05/0.6725, allocations: 30.84 kB / 0.9547 GB, free: 4.918 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.099e-05/0.6726, allocations: 65.42 kB / 0.9547 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001494/0.6727, allocations: 105 kB / 0.9548 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.6727, allocations: 0 / 0.9548 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002192/0.673, allocations: 132.2 kB / 0.955 GB, free: 4.688 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.34e-05/0.673, allocations: 8.828 kB / 0.955 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.949e-06/0.673, allocations: 2.969 kB / 0.955 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.309e-05/0.673, allocations: 5.344 kB / 0.955 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001081/0.6731, allocations: 18.95 kB / 0.955 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.252e-06/0.6731, allocations: 2.406 kB / 0.955 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001111/0.6733, allocations: 10.56 kB / 0.955 GB, free: 4.668 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.455e-05/0.6733, allocations: 12.11 kB / 0.955 GB, free: 4.66 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,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 6.559e-05/0.6733, allocations: 120.1 kB / 0.9551 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.952e-05/0.6734, allocations: 7.312 kB / 0.9552 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002944/0.6737, allocations: 157.6 kB / 0.9553 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.075e-06/0.6737, allocations: 2 kB / 0.9553 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.6737, allocations: 0 / 0.9553 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.6737, allocations: 1.188 kB / 0.9553 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004433/0.6741, allocations: 430.1 kB / 0.9557 GB, free: 4.039 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.6742, allocations: 3.844 kB / 0.9557 GB, free: 4.039 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.665e-05/0.6742, allocations: 8.094 kB / 0.9557 GB, free: 4.035 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.844e-06/0.6742, allocations: 1.125 kB / 0.9557 GB, free: 4.035 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.264e-05/0.6743, allocations: 5.016 kB / 0.9557 GB, free: 4.031 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.6743, allocations: 5.062 kB / 0.9557 GB, free: 4.027 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.6743, allocations: 1.125 kB / 0.9557 GB, free: 4.027 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002463/0.6745, allocations: 220 kB / 0.9559 GB, free: 3.855 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.367e-05/0.6746, allocations: 95.5 kB / 0.956 GB, free: 3.746 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.466e-05/0.6746, allocations: 5.562 kB / 0.956 GB, free: 3.742 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001192/0.6747, allocations: 13.33 kB / 0.9561 GB, free: 3.734 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.577e-05/0.6748, allocations: 12.83 kB / 0.9561 GB, free: 3.727 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.479e-05/0.6748, allocations: 7.562 kB / 0.9561 GB, free: 3.723 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.092e-05/0.6748, allocations: 100.6 kB / 0.9562 GB, free: 3.637 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.6748, allocations: 0 / 0.9562 GB, free: 3.637 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003076/0.6751, allocations: 43.41 kB / 0.9562 GB, free: 3.625 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 (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.000635/0.6758, allocations: 0.8278 MB / 0.957 GB, free: 2.887 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002308/0.676, allocations: 86.08 kB / 0.9571 GB, free: 2.852 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.676, allocations: 5.219 kB / 0.9571 GB, free: 2.848 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001042/0.6762, allocations: 52.72 kB / 0.9572 GB, free: 2.824 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002899/0.6764, allocations: 14.41 kB / 0.9572 GB, free: 2.816 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001332/0.6778, allocations: 1.586 MB / 0.9587 GB, free: 1.355 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001114/0.6779, allocations: 0.692 MB / 0.9594 GB, free: 0.6523 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.62e-05/0.678, allocations: 20.03 kB / 0.9594 GB, free: 0.6406 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.016e-05/0.678, allocations: 27.55 kB / 0.9594 GB, free: 0.6172 MB / 0.7169 GB Notification: Performance of SimCode: time 2.4e-07/0.678, allocations: 4 kB / 0.9594 GB, free: 0.6133 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02206/0.7001, allocations: 3.041 MB / 0.9624 GB, free: 15.02 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.464/8.164, allocations: 1.125 kB / 0.9624 GB, free: 15.02 MB / 0.7325 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