Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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.Gunay2016Light,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light,fileNamePrefix="Buildings_9_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.001669/0.001669, allocations: 108 kB / 15.6 MB, free: 132 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.001913/0.001914, allocations: 193.4 kB / 16.53 MB, free: 6.391 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.361/1.361, allocations: 222.9 MB / 240.2 MB, free: 4.43 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.407/2.407, allocations: 390.3 MB / 0.6647 GB, free: 464 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001426/0.001426, allocations: 67.89 kB / 0.8127 GB, free: 14.36 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7776/0.779, allocations: 140.3 MB / 0.9497 GB, free: 9.148 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light): time 0.003516/0.7826, allocations: 1.535 MB / 0.9512 GB, free: 7.934 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.00149/0.7841, allocations: 0.7461 MB / 0.9519 GB, free: 7.355 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.315e-05/0.7843, allocations: 1.094 kB / 0.9519 GB, free: 7.355 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 4.897e-05/0.7843, allocations: 7.922 kB / 0.9519 GB, free: 7.348 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001187/0.7845, allocations: 13.41 kB / 0.952 GB, free: 7.336 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007623/0.7852, allocations: 131.7 kB / 0.9521 GB, free: 7.242 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001725/0.7854, allocations: 103.4 kB / 0.9522 GB, free: 7.18 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001349/0.7856, allocations: 18.56 kB / 0.9522 GB, free: 7.168 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001734/0.7858, allocations: 38.48 kB / 0.9522 GB, free: 7.148 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001176/0.7859, allocations: 48.69 kB / 0.9523 GB, free: 7.113 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.184e-05/0.7859, allocations: 8 kB / 0.9523 GB, free: 7.113 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003316/0.7863, allocations: 99.5 kB / 0.9524 GB, free: 7.062 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 4.424e-05/0.7863, allocations: 28.22 kB / 0.9524 GB, free: 7.039 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 8.208e-05/0.7864, allocations: 41.97 kB / 0.9525 GB, free: 7.008 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0004405/0.7869, allocations: 156.9 kB / 0.9526 GB, free: 6.906 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.7869, allocations: 1 kB / 0.9526 GB, free: 6.906 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.806e-06/0.7869, allocations: 0 / 0.9526 GB, free: 6.906 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 8.246e-06/0.7869, allocations: 3.938 kB / 0.9526 GB, free: 6.902 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0008456/0.7877, allocations: 496 kB / 0.9531 GB, free: 6.395 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.172e-05/0.7878, allocations: 13.38 kB / 0.9531 GB, free: 6.391 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.003e-05/0.7879, allocations: 36.22 kB / 0.9531 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.277e-05/0.7879, allocations: 9.219 kB / 0.9531 GB, free: 6.344 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001306/0.788, allocations: 182.8 kB / 0.9533 GB, free: 6.133 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.032e-05/0.7881, allocations: 10.78 kB / 0.9533 GB, free: 6.125 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.268e-05/0.7881, allocations: 3.938 kB / 0.9533 GB, free: 6.125 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002058/0.7883, allocations: 88.67 kB / 0.9534 GB, free: 6.055 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.255e-06/0.7883, allocations: 0 / 0.9534 GB, free: 6.055 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.643e-05/0.7884, allocations: 4 kB / 0.9534 GB, free: 6.051 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.793e-06/0.7884, allocations: 6.484 kB / 0.9534 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001577/0.7885, allocations: 49.78 kB / 0.9535 GB, free: 6.023 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006122/0.7892, allocations: 337.7 kB / 0.9538 GB, free: 5.68 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002314/0.7894, allocations: 82.86 kB / 0.9539 GB, free: 5.625 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.024e-05/0.7895, allocations: 42.16 kB / 0.9539 GB, free: 5.598 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.536e-05/0.7895, allocations: 1.188 kB / 0.9539 GB, free: 5.598 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002674/0.7898, allocations: 98.62 kB / 0.954 GB, free: 5.516 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=11): time 1.964e-06/0.7898, allocations: 0 / 0.954 GB, free: 5.516 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.0005053/0.7903, allocations: 184.2 kB / 0.9542 GB, free: 5.41 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.879e-05/0.7904, allocations: 57.47 kB / 0.9542 GB, free: 5.344 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001108/0.7905, allocations: 133.3 kB / 0.9544 GB, free: 5.223 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.664e-05/0.7905, allocations: 26.89 kB / 0.9544 GB, free: 5.191 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.646e-05/0.7906, allocations: 91.73 kB / 0.9545 GB, free: 5.102 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.143e-05/0.7906, allocations: 31 kB / 0.9545 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.923e-05/0.7907, allocations: 36.77 kB / 0.9545 GB, free: 5.043 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.402e-05/0.7907, allocations: 325.3 kB / 0.9548 GB, free: 4.719 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.685e-05/0.7908, allocations: 27.89 kB / 0.9549 GB, free: 4.707 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001039/0.7909, allocations: 71 kB / 0.9549 GB, free: 4.641 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001855/0.7911, allocations: 108.4 kB / 0.955 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.7911, allocations: 0 / 0.955 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000283/0.7914, allocations: 143 kB / 0.9552 GB, free: 4.465 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.018e-05/0.7915, allocations: 5.656 kB / 0.9552 GB, free: 4.465 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.257e-06/0.7915, allocations: 2.094 kB / 0.9552 GB, free: 4.465 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.782e-05/0.7915, allocations: 1.375 kB / 0.9552 GB, free: 4.465 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001127/0.7916, allocations: 20.45 kB / 0.9552 GB, free: 4.457 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.798e-06/0.7916, allocations: 2.938 kB / 0.9552 GB, free: 4.457 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001106/0.7918, allocations: 18.45 kB / 0.9552 GB, free: 4.445 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.482e-05/0.7918, allocations: 3.938 kB / 0.9552 GB, free: 4.445 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,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.302e-05/0.7919, allocations: 125.5 kB / 0.9554 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.62e-05/0.7919, allocations: 15.22 kB / 0.9554 GB, free: 4.309 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000355/0.7923, allocations: 167 kB / 0.9555 GB, free: 4.207 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.49e-06/0.7923, allocations: 2.594 kB / 0.9555 GB, free: 4.207 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.601e-06/0.7923, allocations: 0 / 0.9555 GB, free: 4.207 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.7923, allocations: 4 kB / 0.9555 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005865/0.7929, allocations: 450.7 kB / 0.956 GB, free: 3.797 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.345e-06/0.7929, allocations: 1.469 kB / 0.956 GB, free: 3.797 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.551e-05/0.793, allocations: 17.06 kB / 0.956 GB, free: 3.789 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.889e-06/0.793, allocations: 0 / 0.956 GB, free: 3.789 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.565e-05/0.793, allocations: 6.641 kB / 0.956 GB, free: 3.785 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.386e-06/0.793, allocations: 3.938 kB / 0.956 GB, free: 3.781 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.793, allocations: 4 kB / 0.956 GB, free: 3.777 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002881/0.7933, allocations: 239.1 kB / 0.9562 GB, free: 3.594 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.733e-05/0.7934, allocations: 84.05 kB / 0.9563 GB, free: 3.496 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.845e-05/0.7934, allocations: 1.156 kB / 0.9563 GB, free: 3.496 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001238/0.7935, allocations: 16.52 kB / 0.9563 GB, free: 3.484 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.26e-05/0.7936, allocations: 10.05 kB / 0.9563 GB, free: 3.48 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.918e-05/0.7936, allocations: 3.062 kB / 0.9563 GB, free: 3.48 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 5.734e-05/0.7937, allocations: 108.5 kB / 0.9564 GB, free: 3.387 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7937, allocations: 3.938 kB / 0.9564 GB, free: 3.383 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003716/0.7941, allocations: 45.75 kB / 0.9565 GB, free: 3.371 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 (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.0008226/0.7949, allocations: 0.8283 MB / 0.9573 GB, free: 2.637 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002989/0.7952, allocations: 98.73 kB / 0.9574 GB, free: 2.594 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 4.689e-06/0.7952, allocations: 5.094 kB / 0.9574 GB, free: 2.59 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001254/0.7954, allocations: 54.25 kB / 0.9574 GB, free: 2.566 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003398/0.7957, allocations: 37.66 kB / 0.9575 GB, free: 2.539 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001631/0.7974, allocations: 1.633 MB / 0.9591 GB, free: 1.051 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001389/0.7975, allocations: 0.7026 MB / 0.9598 GB, free: 348 kB / 0.7169 GB Notification: Performance of simCode: alias equations: time 5.556e-05/0.7976, allocations: 13.81 kB / 0.9598 GB, free: 340 kB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.84e-05/0.7976, allocations: 34.05 kB / 0.9598 GB, free: 312 kB / 0.7169 GB Notification: Performance of SimCode: time 5.31e-07/0.7977, allocations: 0 / 0.9598 GB, free: 312 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02595/0.8236, allocations: 3.255 MB / 0.963 GB, free: 14.61 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.479/8.303, allocations: 10.77 kB / 0.963 GB, free: 14.6 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.sim & python3 -m fmpy simulate --output-file Buildings_9_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_9_Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light.fmu > Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Lighting_Validation_Gunay2016Light.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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_9_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light_res.csv. Warning: Get data of variable lig.occ from file Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light_res.csv failed! Error: Could not read variable lig.on in file Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Gunay2016Light_res.csv. Warning: Get data of variable lig.on from file Buildings_9_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