Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Occupants_Office_Lighting_Validation_Hunt1979Light",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light,fileNamePrefix="Buildings_10_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.002028/0.002029, 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.002101/0.002101, 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.377/1.377, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.593/2.593, allocations: 437 MB / 0.7104 GB, free: 5.133 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001369/0.001369, allocations: 55.91 kB / 0.8693 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7188/0.7202, allocations: 151.6 MB / 1.017 GB, free: 2.48 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light): time 0.00349/0.7237, allocations: 1.516 MB / 1.019 GB, free: 0.9531 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001645/0.7254, allocations: 0.7673 MB / 1.02 GB, free: 184 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.007e-05/0.7255, allocations: 0 / 1.02 GB, free: 184 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.37e-05/0.7255, allocations: 3.938 kB / 1.02 GB, free: 180 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 9.843e-05/0.7256, allocations: 15.8 kB / 1.02 GB, free: 164 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005808/0.7262, allocations: 127.5 kB / 1.02 GB, free: 36 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001377/0.7264, allocations: 91.77 kB / 1.02 GB, free: 15.95 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 8.95e-05/0.7265, allocations: 15.98 kB / 1.02 GB, free: 15.93 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001037/0.7266, allocations: 43.8 kB / 1.02 GB, free: 15.89 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 8.32e-05/0.7267, allocations: 39.83 kB / 1.02 GB, free: 15.85 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.207e-05/0.7267, allocations: 8 kB / 1.02 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002104/0.7269, allocations: 91.84 kB / 1.02 GB, free: 15.75 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 3.289e-05/0.727, allocations: 23.91 kB / 1.02 GB, free: 15.73 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 5.739e-05/0.727, allocations: 51.78 kB / 1.02 GB, free: 15.68 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002402/0.7273, allocations: 137.9 kB / 1.02 GB, free: 15.54 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.7273, allocations: 0 / 1.02 GB, free: 15.54 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.633e-06/0.7273, allocations: 0 / 1.02 GB, free: 15.54 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.88e-06/0.7273, allocations: 0 / 1.02 GB, free: 15.54 MB / 0.7794 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.0009314/0.7282, allocations: 482.5 kB / 1.021 GB, free: 15.01 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 6.407e-05/0.7283, allocations: 8.031 kB / 1.021 GB, free: 15 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.098e-05/0.7284, allocations: 30.75 kB / 1.021 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.979e-05/0.7285, allocations: 16.84 kB / 1.021 GB, free: 14.95 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001791/0.7287, allocations: 184.1 kB / 1.021 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.513e-05/0.7288, allocations: 34.27 kB / 1.021 GB, free: 14.69 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.819e-05/0.7288, allocations: 4.375 kB / 1.021 GB, free: 14.69 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002282/0.729, allocations: 81.58 kB / 1.021 GB, free: 14.6 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.328e-06/0.729, allocations: 0 / 1.021 GB, free: 14.6 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.281e-05/0.7291, allocations: 3.938 kB / 1.021 GB, free: 14.6 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.771e-06/0.7291, allocations: 0 / 1.021 GB, free: 14.6 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001997/0.7293, allocations: 59.89 kB / 1.021 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006074/0.7299, allocations: 320.8 kB / 1.021 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002726/0.7302, allocations: 70.55 kB / 1.021 GB, free: 14.1 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001445/0.7303, allocations: 40.83 kB / 1.022 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.372e-05/0.7304, allocations: 3.984 kB / 1.022 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000358/0.7307, allocations: 95.39 kB / 1.022 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=10): time 1.613e-06/0.7307, allocations: 0 / 1.022 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of matching and sorting (n=10): time 0.0004819/0.7312, allocations: 177.4 kB / 1.022 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.219e-05/0.7313, allocations: 51.41 kB / 1.022 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001178/0.7314, allocations: 140.1 kB / 1.022 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 6.063e-05/0.7315, allocations: 33.7 kB / 1.022 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.545e-05/0.7315, allocations: 88.38 kB / 1.022 GB, free: 13.42 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.745e-05/0.7316, allocations: 27.84 kB / 1.022 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.679e-05/0.7316, allocations: 33.7 kB / 1.022 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001164/0.7318, allocations: 326.8 kB / 1.022 GB, free: 13.03 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001207/0.7319, allocations: 27.98 kB / 1.022 GB, free: 13 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001288/0.732, allocations: 73.06 kB / 1.023 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002286/0.7323, allocations: 109 kB / 1.023 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.7323, allocations: 0 / 1.023 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003105/0.7326, allocations: 133.5 kB / 1.023 GB, free: 12.65 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.125e-05/0.7326, allocations: 8 kB / 1.023 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.654e-06/0.7326, allocations: 0 / 1.023 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.623e-05/0.7327, allocations: 4 kB / 1.023 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001202/0.7328, allocations: 11.98 kB / 1.023 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.186e-05/0.7328, allocations: 7.938 kB / 1.023 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001282/0.7329, allocations: 23.92 kB / 1.023 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.458e-05/0.733, allocations: 4 kB / 1.023 GB, free: 12.59 MB / 0.7794 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.0001187/0.7331, allocations: 130.7 kB / 1.023 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.634e-05/0.7331, allocations: 11.81 kB / 1.023 GB, free: 12.44 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.382e-05/0.7331, allocations: 12.72 kB / 1.023 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/0.7332, allocations: 0 / 1.023 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.7332, allocations: 0 / 1.023 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/0.7332, allocations: 0 / 1.023 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006921/0.7339, allocations: 430.3 kB / 1.023 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.415e-06/0.7339, allocations: 4.406 kB / 1.023 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.051e-05/0.734, allocations: 11.98 kB / 1.023 GB, free: 11.93 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.587e-06/0.734, allocations: 0 / 1.023 GB, free: 11.93 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.152e-05/0.734, allocations: 0 / 1.023 GB, free: 11.93 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.729e-06/0.734, allocations: 3.938 kB / 1.023 GB, free: 11.93 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.734, allocations: 7.938 kB / 1.023 GB, free: 11.92 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005135/0.7345, allocations: 231.3 kB / 1.024 GB, free: 11.68 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.142e-05/0.7346, allocations: 81.02 kB / 1.024 GB, free: 11.58 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.797e-05/0.7346, allocations: 8 kB / 1.024 GB, free: 11.57 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001273/0.7348, allocations: 11.92 kB / 1.024 GB, free: 11.56 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.008e-05/0.7348, allocations: 11.98 kB / 1.024 GB, free: 11.55 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.045e-05/0.7349, allocations: 7.984 kB / 1.024 GB, free: 11.54 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 7.429e-05/0.735, allocations: 100.5 kB / 1.024 GB, free: 11.45 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.21e-07/0.735, allocations: 4 kB / 1.024 GB, free: 11.44 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003537/0.7353, allocations: 44 kB / 1.024 GB, free: 11.4 MB / 0.7794 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.00115/0.7365, allocations: 0.8232 MB / 1.025 GB, free: 10.57 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003963/0.7369, allocations: 99.81 kB / 1.025 GB, free: 10.47 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.7369, allocations: 0 / 1.025 GB, free: 10.47 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001418/0.737, allocations: 47.91 kB / 1.025 GB, free: 10.42 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003376/0.7374, allocations: 17.39 kB / 1.025 GB, free: 10.41 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002132/0.7395, allocations: 1.631 MB / 1.026 GB, free: 8.664 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003436/0.7399, allocations: 0.6926 MB / 1.027 GB, free: 7.945 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 6.174e-05/0.74, allocations: 4.672 kB / 1.027 GB, free: 7.941 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.392e-05/0.74, allocations: 35.42 kB / 1.027 GB, free: 7.906 MB / 0.7794 GB Notification: Performance of SimCode: time 4.51e-07/0.74, allocations: 0 / 1.027 GB, free: 7.906 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02145/0.7615, allocations: 3.067 MB / 1.03 GB, free: 4.938 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.436/8.198, allocations: 15.83 kB / 1.03 GB, free: 4.926 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe ; mkfifo Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe ; head -c 1048576 < Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe >> ../files/Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.sim & python3 -m fmpy simulate --output-file Buildings_10_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_10_Buildings_Occupants_Office_Lighting_Validation_Hunt1979Light.fmu > Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Occupants_Office_Lighting_Validation_Hunt1979Light.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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_10_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light_res.csv. Warning: Get data of variable lig.occ from file Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light_res.csv failed! Error: Could not read variable lig.on in file Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Hunt1979Light_res.csv. Warning: Get data of variable lig.on from file Buildings_10_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