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.007463/0.007464, allocations: 98.38 kB / 15.73 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001805/0.001805, allocations: 191 kB / 16.67 MB, free: 5.934 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.567/1.567, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.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.576/2.576, allocations: 437 MB / 0.7105 GB, free: 4.355 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.002626/0.002626, allocations: 59.89 kB / 1.018 GB, free: 9.934 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8872/0.8899, allocations: 151.6 MB / 1.166 GB, free: 3.777 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light): time 0.002843/0.8928, allocations: 1.525 MB / 1.168 GB, free: 2.242 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001314/0.8941, allocations: 0.7556 MB / 1.168 GB, free: 1.48 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.998e-05/0.8942, allocations: 0 / 1.168 GB, free: 1.48 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 3.929e-05/0.8942, allocations: 11.86 kB / 1.168 GB, free: 1.469 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 8.89e-05/0.8943, allocations: 11.86 kB / 1.168 GB, free: 1.457 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005833/0.8949, allocations: 127.6 kB / 1.169 GB, free: 1.332 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.00016/0.8951, allocations: 99.69 kB / 1.169 GB, free: 1.234 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001037/0.8952, allocations: 12 kB / 1.169 GB, free: 1.223 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001091/0.8953, allocations: 47.83 kB / 1.169 GB, free: 1.176 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 7.957e-05/0.8954, allocations: 47.83 kB / 1.169 GB, free: 1.129 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 2.192e-05/0.8954, allocations: 8 kB / 1.169 GB, free: 1.121 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000194/0.8956, allocations: 91.84 kB / 1.169 GB, free: 1.031 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 3.456e-05/0.8957, allocations: 27.91 kB / 1.169 GB, free: 1.004 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 5.906e-05/0.8957, allocations: 43.78 kB / 1.169 GB, free: 0.9609 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0002907/0.896, allocations: 163.2 kB / 1.169 GB, free: 0.8047 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.896, allocations: 7.875 kB / 1.169 GB, free: 0.7969 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.703e-06/0.8961, allocations: 0 / 1.169 GB, free: 0.7969 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 1.074e-05/0.8961, allocations: 0 / 1.169 GB, free: 0.7969 MB / 0.8887 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.0008135/0.8969, allocations: 0.4921 MB / 1.17 GB, free: 244 kB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.125e-05/0.8969, allocations: 12.92 kB / 1.17 GB, free: 232 kB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.441e-05/0.897, allocations: 38.73 kB / 1.17 GB, free: 184 kB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.243e-05/0.897, allocations: 8.891 kB / 1.17 GB, free: 176 kB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001641/0.8972, allocations: 180.3 kB / 1.17 GB, free: 15.96 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.735e-05/0.8972, allocations: 4.375 kB / 1.17 GB, free: 15.95 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.638e-05/0.8973, allocations: 8.375 kB / 1.17 GB, free: 15.95 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002109/0.8975, allocations: 85.7 kB / 1.17 GB, free: 15.86 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.117e-06/0.8975, allocations: 0 / 1.17 GB, free: 15.86 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.091e-05/0.8975, allocations: 0 / 1.17 GB, free: 15.86 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.133e-06/0.8975, allocations: 0 / 1.17 GB, free: 15.86 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000155/0.8977, allocations: 55.95 kB / 1.17 GB, free: 15.8 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005852/0.8983, allocations: 336.6 kB / 1.17 GB, free: 15.42 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000225/0.8985, allocations: 82.67 kB / 1.17 GB, free: 15.33 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.651e-05/0.8986, allocations: 40.83 kB / 1.17 GB, free: 15.29 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 2.244e-05/0.8987, allocations: 4 kB / 1.17 GB, free: 15.29 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002969/0.899, allocations: 107.4 kB / 1.17 GB, free: 15.17 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=11): time 3.496e-06/0.899, allocations: 0 / 1.17 GB, free: 15.17 MB / 0.9044 GB Notification: Performance of matching and sorting (n=11): time 0.000495/0.8995, allocations: 169.8 kB / 1.171 GB, free: 15 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.054e-05/0.8995, allocations: 59.41 kB / 1.171 GB, free: 14.93 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000123/0.8997, allocations: 128.2 kB / 1.171 GB, free: 14.79 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.094e-05/0.8997, allocations: 29.7 kB / 1.171 GB, free: 14.75 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 6.676e-05/0.8998, allocations: 104.1 kB / 1.171 GB, free: 14.65 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 2.779e-05/0.8998, allocations: 19.86 kB / 1.171 GB, free: 14.63 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.916e-05/0.8999, allocations: 33.7 kB / 1.171 GB, free: 14.59 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001434/0.9, allocations: 322.8 kB / 1.171 GB, free: 14.27 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.767e-05/0.9001, allocations: 35.92 kB / 1.171 GB, free: 14.23 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000111/0.9002, allocations: 77.06 kB / 1.171 GB, free: 14.14 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001969/0.9004, allocations: 113 kB / 1.171 GB, free: 14.01 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.9004, allocations: 0 / 1.171 GB, free: 14.01 MB / 0.9044 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002614/0.9007, allocations: 137.5 kB / 1.172 GB, free: 13.87 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 2.441e-05/0.9007, allocations: 15.92 kB / 1.172 GB, free: 13.85 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.498e-06/0.9008, allocations: 0 / 1.172 GB, free: 13.85 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.492e-05/0.9008, allocations: 7.938 kB / 1.172 GB, free: 13.84 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001104/0.9009, allocations: 19.92 kB / 1.172 GB, free: 13.82 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.731e-06/0.9009, allocations: 0 / 1.172 GB, free: 13.82 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001008/0.901, allocations: 12 kB / 1.172 GB, free: 13.81 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.754e-05/0.901, allocations: 7.984 kB / 1.172 GB, free: 13.8 MB / 0.9044 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 0.0001142/0.9012, allocations: 130.8 kB / 1.172 GB, free: 13.67 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.126e-05/0.9012, allocations: 7.953 kB / 1.172 GB, free: 13.66 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003618/0.9015, allocations: 154.3 kB / 1.172 GB, free: 13.5 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.975e-06/0.9016, allocations: 0 / 1.172 GB, free: 13.5 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.622e-06/0.9016, allocations: 4 kB / 1.172 GB, free: 13.5 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.831e-06/0.9016, allocations: 3.984 kB / 1.172 GB, free: 13.5 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000646/0.9022, allocations: 455.5 kB / 1.172 GB, free: 13 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.9022, allocations: 4 kB / 1.172 GB, free: 12.99 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.221e-05/0.9023, allocations: 11.98 kB / 1.172 GB, free: 12.98 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.9023, allocations: 0 / 1.172 GB, free: 12.98 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.605e-05/0.9024, allocations: 4 kB / 1.172 GB, free: 12.98 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.577e-06/0.9024, allocations: 3.938 kB / 1.172 GB, free: 12.97 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.9024, allocations: 0 / 1.172 GB, free: 12.97 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003345/0.9027, allocations: 240.8 kB / 1.173 GB, free: 12.72 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 7.816e-05/0.9028, allocations: 85.06 kB / 1.173 GB, free: 12.62 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.985e-05/0.9028, allocations: 19.86 kB / 1.173 GB, free: 12.6 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000114/0.903, allocations: 4 kB / 1.173 GB, free: 12.6 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.473e-05/0.903, allocations: 15.98 kB / 1.173 GB, free: 12.58 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.242e-05/0.903, allocations: 7.984 kB / 1.173 GB, free: 12.57 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 7.006e-05/0.9031, allocations: 102.6 kB / 1.173 GB, free: 12.48 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.91e-07/0.9031, allocations: 0 / 1.173 GB, free: 12.48 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0003358/0.9035, allocations: 43.88 kB / 1.173 GB, free: 12.43 MB / 0.9044 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.0009739/0.9045, allocations: 0.8566 MB / 1.174 GB, free: 11.57 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0002815/0.9047, allocations: 96.45 kB / 1.174 GB, free: 11.47 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.9048, allocations: 0 / 1.174 GB, free: 11.47 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0001272/0.9049, allocations: 51.98 kB / 1.174 GB, free: 11.42 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003045/0.9052, allocations: 19.92 kB / 1.174 GB, free: 11.4 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001885/0.9071, allocations: 1.63 MB / 1.175 GB, free: 9.66 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003267/0.9074, allocations: 0.7002 MB / 1.176 GB, free: 8.934 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 4.798e-05/0.9075, allocations: 8.422 kB / 1.176 GB, free: 8.926 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.128e-05/0.9076, allocations: 35.42 kB / 1.176 GB, free: 8.891 MB / 0.9044 GB Notification: Performance of SimCode: time 2.1e-07/0.9076, allocations: 0 / 1.176 GB, free: 8.891 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02479/0.9324, allocations: 3.317 MB / 1.179 GB, free: 5.695 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.155/9.088, allocations: 16.09 kB / 1.179 GB, free: 5.684 MB / 0.9044 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