Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.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.Gunay2016Light,fileNamePrefix="Buildings_10_Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light,fileNamePrefix="Buildings_10_Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light",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.001442/0.001442, 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.001724/0.001724, allocations: 195.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.452/1.452, allocations: 222.9 MB / 240.2 MB, free: 4.406 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.623/2.623, allocations: 437.1 MB / 0.7104 GB, free: 5.121 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002439/0.002439, allocations: 64.14 kB / 0.8693 GB, free: 4.59 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7448/0.7472, allocations: 151.6 MB / 1.017 GB, free: 2.5 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light): time 0.003252/0.7505, allocations: 1.536 MB / 1.019 GB, free: 0.9531 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001624/0.7522, allocations: 0.7478 MB / 1.02 GB, free: 204 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.7e-05/0.7523, allocations: 4 kB / 1.02 GB, free: 200 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 4.22e-05/0.7524, allocations: 3.938 kB / 1.02 GB, free: 196 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.0001614/0.7526, allocations: 23.78 kB / 1.02 GB, free: 172 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007686/0.7534, allocations: 127.6 kB / 1.02 GB, free: 44 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001901/0.7536, allocations: 91.84 kB / 1.02 GB, free: 15.95 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001246/0.7537, allocations: 12 kB / 1.02 GB, free: 15.94 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001602/0.7539, allocations: 51.69 kB / 1.02 GB, free: 15.89 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 9.701e-05/0.754, allocations: 43.83 kB / 1.02 GB, free: 15.85 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.064e-05/0.754, allocations: 8 kB / 1.02 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002643/0.7543, allocations: 103.8 kB / 1.02 GB, free: 15.74 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 3.73e-05/0.7543, allocations: 23.91 kB / 1.02 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 7.56e-05/0.7544, allocations: 39.78 kB / 1.02 GB, free: 15.68 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002934/0.7547, allocations: 153.9 kB / 1.02 GB, free: 15.53 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.7547, allocations: 0 / 1.02 GB, free: 15.53 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.403e-06/0.7547, allocations: 0 / 1.02 GB, free: 15.53 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 6.181e-06/0.7547, allocations: 0 / 1.02 GB, free: 15.53 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0008568/0.7556, allocations: 0.4884 MB / 1.021 GB, free: 14.97 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.99e-05/0.7557, allocations: 15.97 kB / 1.021 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.919e-05/0.7557, allocations: 42.73 kB / 1.021 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.051e-05/0.7558, allocations: 12.75 kB / 1.021 GB, free: 14.89 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001603/0.7559, allocations: 182.5 kB / 1.021 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.82e-05/0.756, allocations: 8.375 kB / 1.021 GB, free: 14.67 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.799e-05/0.756, allocations: 4.375 kB / 1.021 GB, free: 14.67 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002075/0.7562, allocations: 81.77 kB / 1.021 GB, free: 14.58 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.558e-06/0.7562, allocations: 0 / 1.021 GB, free: 14.58 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.584e-05/0.7562, allocations: 4 kB / 1.021 GB, free: 14.58 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.991e-06/0.7563, allocations: 0 / 1.021 GB, free: 14.58 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001533/0.7564, allocations: 59.89 kB / 1.021 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005972/0.757, allocations: 328.7 kB / 1.021 GB, free: 14.15 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002256/0.7573, allocations: 78.67 kB / 1.022 GB, free: 14.06 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.655e-05/0.7574, allocations: 48.86 kB / 1.022 GB, free: 14.01 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.901e-05/0.7574, allocations: 4 kB / 1.022 GB, free: 14.01 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002832/0.7577, allocations: 103.2 kB / 1.022 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=11): time 2.013e-06/0.7577, allocations: 0 / 1.022 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11): time 0.0004529/0.7582, allocations: 173.5 kB / 1.022 GB, free: 13.72 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.696e-05/0.7582, allocations: 59.41 kB / 1.022 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001236/0.7584, allocations: 134 kB / 1.022 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.138e-05/0.7584, allocations: 25.7 kB / 1.022 GB, free: 13.47 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.17e-05/0.7585, allocations: 96.12 kB / 1.022 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.289e-05/0.7585, allocations: 23.66 kB / 1.022 GB, free: 13.35 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.478e-05/0.7586, allocations: 37.7 kB / 1.022 GB, free: 13.31 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001258/0.7587, allocations: 322.8 kB / 1.023 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.412e-05/0.7588, allocations: 27.98 kB / 1.023 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000107/0.7589, allocations: 78.81 kB / 1.023 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001851/0.7591, allocations: 109 kB / 1.023 GB, free: 12.74 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.199e-06/0.7591, allocations: 4 kB / 1.023 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002575/0.7594, allocations: 133.3 kB / 1.023 GB, free: 12.6 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.894e-05/0.7594, allocations: 11.98 kB / 1.023 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.7594, allocations: 0 / 1.023 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.44e-05/0.7594, allocations: 0 / 1.023 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000113/0.7596, allocations: 23.92 kB / 1.023 GB, free: 12.56 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.029e-05/0.7596, allocations: 4 kB / 1.023 GB, free: 12.56 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001038/0.7597, allocations: 16.03 kB / 1.023 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.407e-05/0.7597, allocations: 11.92 kB / 1.023 GB, free: 12.53 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,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,booleanPulse.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * 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.912e-05/0.7598, allocations: 125.7 kB / 1.023 GB, free: 12.4 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.234e-05/0.7598, allocations: 7.906 kB / 1.023 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003275/0.7602, allocations: 170.2 kB / 1.023 GB, free: 12.22 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.786e-06/0.7602, allocations: 0 / 1.023 GB, free: 12.22 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.7602, allocations: 0 / 1.023 GB, free: 12.22 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.7602, allocations: 8 kB / 1.023 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006084/0.7608, allocations: 446.2 kB / 1.024 GB, free: 11.72 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.7608, allocations: 0 / 1.024 GB, free: 11.72 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.07e-05/0.7609, allocations: 15.98 kB / 1.024 GB, free: 11.7 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.795e-06/0.7609, allocations: 0 / 1.024 GB, free: 11.7 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.453e-05/0.7609, allocations: 4 kB / 1.024 GB, free: 11.7 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.196e-06/0.761, allocations: 3.938 kB / 1.024 GB, free: 11.7 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.761, allocations: 0 / 1.024 GB, free: 11.7 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003129/0.7613, allocations: 247.3 kB / 1.024 GB, free: 11.44 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.42e-05/0.7613, allocations: 85.02 kB / 1.024 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.682e-05/0.7614, allocations: 3.984 kB / 1.024 GB, free: 11.33 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001189/0.7615, allocations: 11.94 kB / 1.024 GB, free: 11.32 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.639e-05/0.7615, allocations: 8.125 kB / 1.024 GB, free: 11.31 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.681e-05/0.7616, allocations: 7.984 kB / 1.024 GB, free: 11.3 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 8.29e-05/0.7617, allocations: 107.3 kB / 1.024 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7617, allocations: 0 / 1.024 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.000329/0.762, allocations: 43.94 kB / 1.024 GB, free: 11.16 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 (booleanPulse.y,lig.sampleTrigger,$whenCondition3,$whenCondition2,$whenCondition1,lig.on,lig.curSeed,booleanPulse.pulseStart) * Number of discrete states: 1 (lig.on) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 10 * 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.0009845/0.763, allocations: 0.8523 MB / 1.025 GB, free: 10.3 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002968/0.7633, allocations: 103.8 kB / 1.025 GB, free: 10.2 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.7633, allocations: 0 / 1.025 GB, free: 10.2 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001168/0.7634, allocations: 51.92 kB / 1.025 GB, free: 10.14 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003145/0.7638, allocations: 28.09 kB / 1.025 GB, free: 10.12 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001957/0.7657, allocations: 1.624 MB / 1.027 GB, free: 8.383 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002559/0.766, allocations: 0.6963 MB / 1.027 GB, free: 7.66 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 5.545e-05/0.7661, allocations: 12.42 kB / 1.027 GB, free: 7.648 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.569e-05/0.7661, allocations: 31.42 kB / 1.027 GB, free: 7.617 MB / 0.7794 GB Notification: Performance of SimCode: time 3.21e-07/0.7661, allocations: 0 / 1.027 GB, free: 7.617 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02139/0.7875, allocations: 3.265 MB / 1.031 GB, free: 4.457 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.354/8.142, allocations: 15.69 kB / 1.031 GB, free: 4.445 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe ; mkfifo Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe ; head -c 1048576 < Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe >> ../files/Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light_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_Gunay2016Light.fmu > Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.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.Gunay2016Light_res.csv. Warning: Get data of variable lig.occ from file Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light_res.csv failed! Error: Could not read variable lig.on in file Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light_res.csv. Warning: Get data of variable lig.on from file Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light_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,lig.pInter,booleanPulse.period,booleanPulse.startTime