Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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.Love1998Light1,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Lighting_Validation_Love1998Light1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Love1998Light1,fileNamePrefix="Buildings_9_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.001749/0.001749, 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.001897/0.001897, allocations: 196.6 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.422/1.422, allocations: 222.9 MB / 240.2 MB, free: 4.398 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.414/2.414, allocations: 390.2 MB / 0.6647 GB, free: 244 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001344/0.001344, allocations: 63.89 kB / 0.8126 GB, free: 14.17 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.637/0.6383, allocations: 140.4 MB / 0.9497 GB, free: 9.223 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Love1998Light1): time 0.003106/0.6415, allocations: 1.495 MB / 0.9512 GB, free: 8.043 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001207/0.6427, allocations: 0.7598 MB / 0.9519 GB, free: 7.453 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.361e-05/0.6428, allocations: 5.5 kB / 0.9519 GB, free: 7.449 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.302e-05/0.6428, allocations: 3.938 kB / 0.9519 GB, free: 7.445 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.891e-05/0.6429, allocations: 17.02 kB / 0.9519 GB, free: 7.43 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004775/0.6434, allocations: 122.9 kB / 0.9521 GB, free: 7.344 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001049/0.6435, allocations: 85.98 kB / 0.9521 GB, free: 7.293 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.615e-05/0.6436, allocations: 22.14 kB / 0.9522 GB, free: 7.277 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.895e-05/0.6437, allocations: 39.3 kB / 0.9522 GB, free: 7.254 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.309e-05/0.6438, allocations: 43.47 kB / 0.9522 GB, free: 7.223 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.095e-05/0.6438, allocations: 7.75 kB / 0.9523 GB, free: 7.223 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001696/0.644, allocations: 93.84 kB / 0.9523 GB, free: 7.176 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.431e-05/0.644, allocations: 19.8 kB / 0.9524 GB, free: 7.16 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.795e-05/0.6441, allocations: 40.2 kB / 0.9524 GB, free: 7.129 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002108/0.6443, allocations: 147.3 kB / 0.9525 GB, free: 7.035 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.066e-06/0.6443, allocations: 0 / 0.9525 GB, free: 7.035 MB / 0.7169 GB Notification: Performance of FrontEnd: time 7.21e-07/0.6443, allocations: 0 / 0.9525 GB, free: 7.035 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.133e-06/0.6443, allocations: 1.344 kB / 0.9525 GB, free: 7.035 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.0006402/0.645, allocations: 469.2 kB / 0.953 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.978e-05/0.645, allocations: 13.62 kB / 0.953 GB, free: 6.555 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.27e-05/0.6451, allocations: 36.41 kB / 0.953 GB, free: 6.512 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.465e-05/0.6451, allocations: 8.906 kB / 0.953 GB, free: 6.508 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001/0.6452, allocations: 175.9 kB / 0.9532 GB, free: 6.301 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.635e-05/0.6452, allocations: 3.906 kB / 0.9532 GB, free: 6.301 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.611e-05/0.6452, allocations: 8.219 kB / 0.9532 GB, free: 6.297 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001718/0.6454, allocations: 81.39 kB / 0.9533 GB, free: 6.23 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.993e-06/0.6454, allocations: 0 / 0.9533 GB, free: 6.23 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.327e-05/0.6455, allocations: 1.531 kB / 0.9533 GB, free: 6.23 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.419e-06/0.6455, allocations: 3.938 kB / 0.9533 GB, free: 6.227 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001256/0.6456, allocations: 41.72 kB / 0.9533 GB, free: 6.207 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004818/0.6461, allocations: 322.6 kB / 0.9537 GB, free: 5.875 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001383/0.6462, allocations: 63.98 kB / 0.9537 GB, free: 5.828 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.549e-05/0.6463, allocations: 31.44 kB / 0.9537 GB, free: 5.809 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.998e-05/0.6464, allocations: 1.125 kB / 0.9537 GB, free: 5.809 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002294/0.6466, allocations: 100.6 kB / 0.9538 GB, free: 5.723 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=10): time 1.563e-06/0.6466, allocations: 5.125 kB / 0.9538 GB, free: 5.719 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10): time 0.0003995/0.647, allocations: 158 kB / 0.954 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.402e-05/0.647, allocations: 54 kB / 0.9541 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.065e-05/0.6471, allocations: 123.9 kB / 0.9542 GB, free: 5.453 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.632e-05/0.6472, allocations: 30.83 kB / 0.9542 GB, free: 5.418 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.83e-05/0.6472, allocations: 86.91 kB / 0.9543 GB, free: 5.328 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.571e-05/0.6472, allocations: 27.45 kB / 0.9543 GB, free: 5.305 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.889e-05/0.6473, allocations: 35.98 kB / 0.9543 GB, free: 5.273 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.988e-05/0.6474, allocations: 328.8 kB / 0.9547 GB, free: 4.945 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.524e-05/0.6474, allocations: 22.73 kB / 0.9547 GB, free: 4.938 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.482e-05/0.6475, allocations: 72.78 kB / 0.9547 GB, free: 4.867 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001543/0.6477, allocations: 101.2 kB / 0.9548 GB, free: 4.785 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.6477, allocations: 0 / 0.9548 GB, free: 4.785 MB / 0.7169 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002267/0.6479, allocations: 128.3 kB / 0.955 GB, free: 4.707 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.601e-05/0.648, allocations: 6.062 kB / 0.955 GB, free: 4.707 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.421e-06/0.648, allocations: 5.625 kB / 0.955 GB, free: 4.703 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.46e-05/0.648, allocations: 2.906 kB / 0.955 GB, free: 4.703 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001096/0.6481, allocations: 14.58 kB / 0.955 GB, free: 4.699 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.877e-06/0.6481, allocations: 1.562 kB / 0.955 GB, free: 4.699 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001028/0.6482, allocations: 18.98 kB / 0.955 GB, free: 4.688 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.233e-05/0.6483, allocations: 4.531 kB / 0.955 GB, free: 4.688 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 7.868e-05/0.6483, allocations: 131.8 kB / 0.9551 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.049e-05/0.6484, allocations: 7.812 kB / 0.9552 GB, free: 4.551 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003205/0.6487, allocations: 158.2 kB / 0.9553 GB, free: 4.449 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.877e-06/0.6487, allocations: 1.375 kB / 0.9553 GB, free: 4.449 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.6487, allocations: 3.984 kB / 0.9553 GB, free: 4.445 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.6487, allocations: 1.344 kB / 0.9553 GB, free: 4.445 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004902/0.6492, allocations: 422.5 kB / 0.9557 GB, free: 4.059 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/0.6492, allocations: 8 kB / 0.9557 GB, free: 4.051 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.711e-05/0.6493, allocations: 17.14 kB / 0.9557 GB, free: 4.043 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.844e-06/0.6493, allocations: 0 / 0.9557 GB, free: 4.043 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.419e-05/0.6493, allocations: 5.344 kB / 0.9557 GB, free: 4.039 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.495e-06/0.6493, allocations: 3.938 kB / 0.9557 GB, free: 4.035 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.6493, allocations: 0 / 0.9557 GB, free: 4.035 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002379/0.6496, allocations: 220.5 kB / 0.956 GB, free: 3.863 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.699e-05/0.6496, allocations: 88.98 kB / 0.956 GB, free: 3.762 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.317e-05/0.6497, allocations: 4 kB / 0.956 GB, free: 3.758 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001162/0.6498, allocations: 17.23 kB / 0.9561 GB, free: 3.746 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.506e-05/0.6498, allocations: 9.172 kB / 0.9561 GB, free: 3.742 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.561e-05/0.6498, allocations: 7.281 kB / 0.9561 GB, free: 3.738 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.959e-05/0.6499, allocations: 101.7 kB / 0.9562 GB, free: 3.652 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6499, allocations: 0 / 0.9562 GB, free: 3.652 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003159/0.6502, allocations: 43.23 kB / 0.9562 GB, free: 3.641 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.0006141/0.6508, allocations: 0.8205 MB / 0.957 GB, free: 2.906 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002353/0.6511, allocations: 98.64 kB / 0.9571 GB, free: 2.859 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.6511, allocations: 0 / 0.9571 GB, free: 2.859 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001005/0.6512, allocations: 45.17 kB / 0.9572 GB, free: 2.844 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00028/0.6515, allocations: 17.67 kB / 0.9572 GB, free: 2.832 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00138/0.6529, allocations: 1.58 MB / 0.9587 GB, free: 1.379 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001184/0.653, allocations: 0.6966 MB / 0.9594 GB, free: 0.6719 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.533e-05/0.6531, allocations: 13.73 kB / 0.9594 GB, free: 0.6641 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.303e-05/0.6531, allocations: 28.8 kB / 0.9594 GB, free: 0.6406 MB / 0.7169 GB Notification: Performance of SimCode: time 2.2e-07/0.6531, allocations: 7.938 kB / 0.9594 GB, free: 0.6328 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01961/0.6727, allocations: 3.055 MB / 0.9624 GB, free: 15.03 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.395/8.068, allocations: 1.188 kB / 0.9624 GB, free: 15.03 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1.sim & python3 -m fmpy simulate --output-file Buildings_9_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_9_Buildings_Occupants_Office_Lighting_Validation_Love1998Light1.fmu > Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Lighting_Validation_Love1998Light1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1_res.csv. Warning: Get data of variable lig.occ from file Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1_res.csv failed! Error: Could not read variable lig.on in file Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Love1998Light1_res.csv. Warning: Get data of variable lig.on from file Buildings_9_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