Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/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_latest_Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light,fileNamePrefix="Buildings_latest_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.00577/0.00577, allocations: 98.17 kB / 15.73 MB, free: 6.012 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.001105/0.001105, allocations: 196.6 kB / 16.68 MB, free: 5.93 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.324/1.324, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.618/2.618, allocations: 469.4 MB / 0.7422 GB, free: 3.578 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001441/0.001441, allocations: 55.91 kB / 1.064 GB, free: 14.32 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8291/0.8306, allocations: 159.1 MB / 1.22 GB, free: 2.312 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light): time 0.00272/0.8333, allocations: 1.529 MB / 1.221 GB, free: 0.7734 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001328/0.8347, allocations: 0.7604 MB / 1.222 GB, free: 8 kB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.275e-05/0.8347, allocations: 7.938 kB / 1.222 GB, free: 0 / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 5.004e-05/0.8348, allocations: 4.047 kB / 1.222 GB, free: 15.99 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0001005/0.8349, allocations: 15.8 kB / 1.222 GB, free: 15.98 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.000556/0.8355, allocations: 127.6 kB / 1.222 GB, free: 15.85 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0001437/0.8356, allocations: 99.73 kB / 1.222 GB, free: 15.75 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 9.645e-05/0.8357, allocations: 19.94 kB / 1.222 GB, free: 15.73 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001139/0.8359, allocations: 39.73 kB / 1.222 GB, free: 15.7 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 7.774e-05/0.8359, allocations: 51.81 kB / 1.222 GB, free: 15.65 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 2.133e-05/0.836, allocations: 8 kB / 1.222 GB, free: 15.64 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002119/0.8362, allocations: 99.84 kB / 1.222 GB, free: 15.54 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 2.798e-05/0.8362, allocations: 15.92 kB / 1.222 GB, free: 15.53 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 5.228e-05/0.8363, allocations: 39.8 kB / 1.222 GB, free: 15.49 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0002603/0.8366, allocations: 159.2 kB / 1.223 GB, free: 15.34 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 4.96e-06/0.8366, allocations: 0 / 1.223 GB, free: 15.34 MB / 0.9512 GB Notification: Performance of FrontEnd: time 3.046e-06/0.8366, allocations: 3.938 kB / 1.223 GB, free: 15.33 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 6.432e-06/0.8366, allocations: 11.94 kB / 1.223 GB, free: 15.32 MB / 0.9512 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.0007791/0.8374, allocations: 499.9 kB / 1.223 GB, free: 14.77 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.73e-05/0.8374, allocations: 12.62 kB / 1.223 GB, free: 14.75 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.028e-05/0.8375, allocations: 34.75 kB / 1.223 GB, free: 14.71 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.883e-05/0.8375, allocations: 8.891 kB / 1.223 GB, free: 14.7 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001428/0.8377, allocations: 176.3 kB / 1.223 GB, free: 14.49 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.397e-05/0.8377, allocations: 4.375 kB / 1.223 GB, free: 14.49 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.966e-05/0.8377, allocations: 8.375 kB / 1.223 GB, free: 14.48 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002059/0.8379, allocations: 89.7 kB / 1.223 GB, free: 14.39 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.354e-06/0.8379, allocations: 0 / 1.223 GB, free: 14.39 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.357e-05/0.838, allocations: 0 / 1.223 GB, free: 14.39 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.077e-06/0.838, allocations: 0 / 1.223 GB, free: 14.39 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001546/0.8381, allocations: 55.95 kB / 1.223 GB, free: 14.33 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006017/0.8387, allocations: 332.6 kB / 1.224 GB, free: 13.96 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002327/0.839, allocations: 90.7 kB / 1.224 GB, free: 13.86 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001029/0.8391, allocations: 40.78 kB / 1.224 GB, free: 13.82 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.446e-05/0.8391, allocations: 7.984 kB / 1.224 GB, free: 13.81 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003079/0.8394, allocations: 95.36 kB / 1.224 GB, free: 13.7 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=11): time 1.743e-06/0.8395, allocations: 4 kB / 1.224 GB, free: 13.7 MB / 0.9512 GB Notification: Performance of matching and sorting (n=11): time 0.0006265/0.8401, allocations: 177.5 kB / 1.224 GB, free: 13.52 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.516e-05/0.8402, allocations: 55.41 kB / 1.224 GB, free: 13.45 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001531/0.8403, allocations: 134.1 kB / 1.224 GB, free: 13.31 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 3.055e-05/0.8404, allocations: 25.7 kB / 1.224 GB, free: 13.28 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 8.836e-05/0.8405, allocations: 96.12 kB / 1.224 GB, free: 13.18 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 4.008e-05/0.8405, allocations: 19.86 kB / 1.224 GB, free: 13.16 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.407e-05/0.8406, allocations: 37.7 kB / 1.225 GB, free: 13.12 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001724/0.8408, allocations: 326.8 kB / 1.225 GB, free: 12.79 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.674e-05/0.8409, allocations: 35.92 kB / 1.225 GB, free: 12.75 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001176/0.841, allocations: 67.38 kB / 1.225 GB, free: 12.67 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002112/0.8412, allocations: 117 kB / 1.225 GB, free: 12.54 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/0.8413, allocations: 0 / 1.225 GB, free: 12.54 MB / 0.9512 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002875/0.8416, allocations: 133.4 kB / 1.225 GB, free: 12.4 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 2.779e-05/0.8416, allocations: 8 kB / 1.225 GB, free: 12.39 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/0.8416, allocations: 3.938 kB / 1.225 GB, free: 12.39 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.287e-05/0.8416, allocations: 12.08 kB / 1.225 GB, free: 12.38 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001293/0.8418, allocations: 12 kB / 1.225 GB, free: 12.37 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.34e-05/0.8418, allocations: 3.984 kB / 1.225 GB, free: 12.36 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001193/0.8419, allocations: 15.94 kB / 1.225 GB, free: 12.35 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.691e-05/0.8419, allocations: 4 kB / 1.225 GB, free: 12.34 MB / 0.9512 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.0001475/0.8421, allocations: 132.9 kB / 1.225 GB, free: 12.21 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.181e-05/0.8421, allocations: 7.953 kB / 1.225 GB, free: 12.2 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004247/0.8426, allocations: 166.2 kB / 1.226 GB, free: 12.02 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.815e-06/0.8426, allocations: 4 kB / 1.226 GB, free: 12.02 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.152e-06/0.8426, allocations: 4 kB / 1.226 GB, free: 12.01 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/0.8426, allocations: 0 / 1.226 GB, free: 12.01 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007604/0.8434, allocations: 449.8 kB / 1.226 GB, free: 11.52 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.8434, allocations: 0 / 1.226 GB, free: 11.52 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.772e-05/0.8435, allocations: 15.92 kB / 1.226 GB, free: 11.5 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.847e-06/0.8435, allocations: 4 kB / 1.226 GB, free: 11.5 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.822e-05/0.8435, allocations: 8 kB / 1.226 GB, free: 11.49 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.031e-06/0.8435, allocations: 3.938 kB / 1.226 GB, free: 11.49 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.764e-06/0.8435, allocations: 0 / 1.226 GB, free: 11.49 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003439/0.8439, allocations: 243.4 kB / 1.226 GB, free: 11.23 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 5.796e-05/0.844, allocations: 85.2 kB / 1.226 GB, free: 11.13 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.713e-05/0.844, allocations: 3.938 kB / 1.226 GB, free: 11.13 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001368/0.8441, allocations: 15.97 kB / 1.226 GB, free: 11.11 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.151e-05/0.8442, allocations: 15.98 kB / 1.226 GB, free: 11.1 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.073e-05/0.8442, allocations: 11.92 kB / 1.226 GB, free: 11.09 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 7.072e-05/0.8443, allocations: 99.27 kB / 1.226 GB, free: 10.99 MB / 0.9512 GB Notification: Performance of sort global known variables: time 2.81e-07/0.8443, allocations: 3.938 kB / 1.226 GB, free: 10.98 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0003622/0.8447, allocations: 43.88 kB / 1.226 GB, free: 10.94 MB / 0.9512 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.0008841/0.8456, allocations: 0.8398 MB / 1.227 GB, free: 10.09 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0002841/0.8459, allocations: 103.8 kB / 1.227 GB, free: 9.992 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.8459, allocations: 0 / 1.227 GB, free: 9.992 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0001268/0.846, allocations: 52.17 kB / 1.227 GB, free: 9.941 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003251/0.8463, allocations: 15.98 kB / 1.227 GB, free: 9.926 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001869/0.8482, allocations: 1.651 MB / 1.229 GB, free: 8.168 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002642/0.8485, allocations: 0.6963 MB / 1.23 GB, free: 7.445 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 5.427e-05/0.8486, allocations: 16.36 kB / 1.23 GB, free: 7.43 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.025e-05/0.8486, allocations: 31.42 kB / 1.23 GB, free: 7.398 MB / 0.9512 GB Notification: Performance of SimCode: time 4.31e-07/0.8486, allocations: 0 / 1.23 GB, free: 7.398 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02186/0.8705, allocations: 3.319 MB / 1.233 GB, free: 4.211 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.628/8.499, allocations: 21.38 kB / 1.233 GB, free: 4.195 MB / 0.9512 GB (rm -f Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.sim & python3 -m fmpy simulate --output-file Buildings_latest_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_latest_Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light.fmu > Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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_latest_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light_res.csv. Warning: Get data of variable lig.occ from file Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light_res.csv failed! Error: Could not read variable lig.on in file Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light_res.csv. Warning: Get data of variable lig.on from file Buildings_latest_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