Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.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.Hunt1979Light,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Lighting_Validation_Hunt1979Light",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Lighting_Validation_Hunt1979Light",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.001535/0.001535, 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.002624/0.002624, allocations: 194.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.386/1.386, allocations: 222.9 MB / 240.2 MB, free: 4.395 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.52/2.52, allocations: 390.2 MB / 0.6647 GB, free: 448 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002428/0.002428, allocations: 68.09 kB / 0.8126 GB, free: 14.37 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6813/0.6838, allocations: 140.4 MB / 0.9497 GB, free: 9.312 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light): time 0.002235/0.686, allocations: 1.508 MB / 0.9512 GB, free: 8.121 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001009/0.687, allocations: 0.7598 MB / 0.9519 GB, free: 7.531 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.305e-05/0.6871, allocations: 1.594 kB / 0.9519 GB, free: 7.531 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.985e-05/0.6871, allocations: 3.938 kB / 0.9519 GB, free: 7.527 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.563e-05/0.6872, allocations: 21.28 kB / 0.952 GB, free: 7.508 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004422/0.6877, allocations: 126.5 kB / 0.9521 GB, free: 7.418 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.545e-05/0.6878, allocations: 88.61 kB / 0.9522 GB, free: 7.367 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.052e-05/0.6879, allocations: 18.5 kB / 0.9522 GB, free: 7.355 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.125e-05/0.688, allocations: 43.88 kB / 0.9522 GB, free: 7.328 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.651e-05/0.6881, allocations: 43.45 kB / 0.9523 GB, free: 7.297 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.987e-05/0.6881, allocations: 6.469 kB / 0.9523 GB, free: 7.297 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001627/0.6882, allocations: 95.31 kB / 0.9524 GB, free: 7.25 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.566e-05/0.6883, allocations: 19.86 kB / 0.9524 GB, free: 7.234 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.406e-05/0.6883, allocations: 41.56 kB / 0.9524 GB, free: 7.203 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001964/0.6885, allocations: 155.6 kB / 0.9526 GB, free: 7.102 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.367e-06/0.6885, allocations: 0 / 0.9526 GB, free: 7.102 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.653e-06/0.6885, allocations: 1.344 kB / 0.9526 GB, free: 7.102 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.408e-06/0.6886, allocations: 0 / 0.9526 GB, free: 7.102 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.0006218/0.6892, allocations: 470.9 kB / 0.953 GB, free: 6.625 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.659e-05/0.6892, allocations: 9.656 kB / 0.953 GB, free: 6.625 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.926e-05/0.6893, allocations: 44.17 kB / 0.9531 GB, free: 6.574 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.703e-05/0.6893, allocations: 10.62 kB / 0.9531 GB, free: 6.57 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.024e-05/0.6894, allocations: 180 kB / 0.9532 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.478e-05/0.6895, allocations: 39.41 kB / 0.9533 GB, free: 6.324 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.641e-05/0.6895, allocations: 12.58 kB / 0.9533 GB, free: 6.316 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001847/0.6897, allocations: 79.45 kB / 0.9534 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.133e-06/0.6897, allocations: 0 / 0.9534 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.169e-05/0.6897, allocations: 0 / 0.9534 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.009e-06/0.6897, allocations: 5.312 kB / 0.9534 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001882/0.6899, allocations: 50.33 kB / 0.9534 GB, free: 6.227 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004184/0.6903, allocations: 317.8 kB / 0.9537 GB, free: 5.898 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001951/0.6905, allocations: 76.12 kB / 0.9538 GB, free: 5.844 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.792e-05/0.6906, allocations: 38.41 kB / 0.9538 GB, free: 5.82 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.995e-05/0.6907, allocations: 0.8438 kB / 0.9538 GB, free: 5.82 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002005/0.6909, allocations: 102.1 kB / 0.9539 GB, free: 5.734 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=10): time 1.383e-06/0.6909, allocations: 0 / 0.9539 GB, free: 5.734 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10): time 0.0004542/0.6913, allocations: 168.8 kB / 0.9541 GB, free: 5.641 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.096e-05/0.6914, allocations: 61.45 kB / 0.9542 GB, free: 5.57 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.488e-05/0.6915, allocations: 138 kB / 0.9543 GB, free: 5.441 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.327e-05/0.6915, allocations: 27.89 kB / 0.9543 GB, free: 5.41 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.195e-05/0.6915, allocations: 90.47 kB / 0.9544 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.136e-05/0.6916, allocations: 24.3 kB / 0.9544 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.651e-05/0.6916, allocations: 35.27 kB / 0.9545 GB, free: 5.266 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.26e-05/0.6917, allocations: 320.8 kB / 0.9548 GB, free: 4.945 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001023/0.6918, allocations: 33.12 kB / 0.9548 GB, free: 4.93 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001099/0.6919, allocations: 66.69 kB / 0.9549 GB, free: 4.867 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001982/0.6921, allocations: 107.6 kB / 0.955 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.6921, allocations: 0 / 0.955 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000269/0.6924, allocations: 143.6 kB / 0.9551 GB, free: 4.691 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.257e-05/0.6924, allocations: 5.688 kB / 0.9551 GB, free: 4.691 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.6924, allocations: 1.125 kB / 0.9551 GB, free: 4.691 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.36e-05/0.6924, allocations: 2.156 kB / 0.9551 GB, free: 4.691 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001074/0.6925, allocations: 15.48 kB / 0.9551 GB, free: 4.688 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.104e-06/0.6925, allocations: 2.406 kB / 0.9551 GB, free: 4.688 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001058/0.6927, allocations: 19.05 kB / 0.9551 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.295e-05/0.6927, allocations: 9 kB / 0.9552 GB, free: 4.672 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.576e-05/0.6927, allocations: 124.1 kB / 0.9553 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.052e-05/0.6928, allocations: 12.61 kB / 0.9553 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.716e-05/0.6928, allocations: 10.97 kB / 0.9553 GB, free: 4.531 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.534e-06/0.6928, allocations: 1.281 kB / 0.9553 GB, free: 4.531 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.078e-06/0.6928, allocations: 4.359 kB / 0.9553 GB, free: 4.527 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-06/0.6928, allocations: 4 kB / 0.9553 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004873/0.6933, allocations: 440.6 kB / 0.9557 GB, free: 4.117 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.6933, allocations: 1.281 kB / 0.9557 GB, free: 4.117 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.941e-05/0.6934, allocations: 9.938 kB / 0.9557 GB, free: 4.113 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.955e-06/0.6934, allocations: 5.172 kB / 0.9557 GB, free: 4.109 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.096e-05/0.6934, allocations: 1.094 kB / 0.9557 GB, free: 4.109 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.6934, allocations: 3.938 kB / 0.9557 GB, free: 4.105 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.6934, allocations: 1.125 kB / 0.9557 GB, free: 4.105 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000282/0.6937, allocations: 230.9 kB / 0.956 GB, free: 3.922 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.157e-05/0.6938, allocations: 83.77 kB / 0.956 GB, free: 3.824 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.339e-05/0.6938, allocations: 1.312 kB / 0.956 GB, free: 3.824 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001244/0.6939, allocations: 13.52 kB / 0.9561 GB, free: 3.816 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.424e-05/0.694, allocations: 17.39 kB / 0.9561 GB, free: 3.805 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.409e-05/0.694, allocations: 3.375 kB / 0.9561 GB, free: 3.805 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.298e-05/0.694, allocations: 113.4 kB / 0.9562 GB, free: 3.707 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.694, allocations: 0 / 0.9562 GB, free: 3.707 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002944/0.6943, allocations: 38.88 kB / 0.9562 GB, free: 3.699 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 (10): * Single equations (assignments): 7 * 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.0006404/0.695, allocations: 0.8224 MB / 0.957 GB, free: 2.965 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002705/0.6953, allocations: 91.59 kB / 0.9571 GB, free: 2.926 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.482e-06/0.6953, allocations: 0 / 0.9571 GB, free: 2.926 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001214/0.6954, allocations: 47.2 kB / 0.9572 GB, free: 2.906 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002668/0.6957, allocations: 26.22 kB / 0.9572 GB, free: 2.887 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001437/0.6971, allocations: 1.616 MB / 0.9588 GB, free: 1.406 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001022/0.6972, allocations: 0.6971 MB / 0.9594 GB, free: 0.6992 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 5.218e-05/0.6973, allocations: 10.42 kB / 0.9595 GB, free: 0.6914 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.635e-05/0.6973, allocations: 28.45 kB / 0.9595 GB, free: 0.6719 MB / 0.7169 GB Notification: Performance of SimCode: time 2.51e-07/0.6974, allocations: 0 / 0.9595 GB, free: 0.6719 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0189/0.7163, allocations: 3.085 MB / 0.9625 GB, free: 15.04 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.276/7.992, allocations: 1.406 kB / 0.9625 GB, free: 15.04 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light_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_Hunt1979Light.fmu > Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Lighting_Validation_Hunt1979Light.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.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.Hunt1979Light_res.csv. Warning: Get data of variable lig.occ from file Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light_res.csv failed! Error: Could not read variable lig.on in file Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light_res.csv. Warning: Get data of variable lig.on from file Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light_res.csv failed! " Variables in the reference:time,lig.ill,lig.occ,lig.pArriv,lig.on Variables in the result:time,lig.ill,lig.pArriv,ill.amplitude,ill.f,ill.offset