Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.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.Reinhart2003Light,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light",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.004183/0.004183, allocations: 101.1 kB / 15.73 MB, free: 6.062 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.001255/0.001255, allocations: 189.6 kB / 16.67 MB, free: 5.973 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.413/1.413, allocations: 222.9 MB / 240.4 MB, free: 4.145 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.928/2.928, allocations: 482.4 MB / 0.7548 GB, free: 10.86 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001993/0.001993, allocations: 59.91 kB / 1.083 GB, free: 12.61 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2785/0.2805, allocations: 162.2 MB / 1.241 GB, free: 10.27 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light): time 0.002671/0.2832, allocations: 1.544 MB / 1.243 GB, free: 8.711 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001333/0.2845, allocations: 0.7634 MB / 1.244 GB, free: 7.941 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.692e-05/0.2846, allocations: 4 kB / 1.244 GB, free: 7.938 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 3.015e-05/0.2846, allocations: 7.875 kB / 1.244 GB, free: 7.93 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 8.801e-05/0.2847, allocations: 23.8 kB / 1.244 GB, free: 7.906 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004917/0.2852, allocations: 123.6 kB / 1.244 GB, free: 7.785 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0001431/0.2854, allocations: 103.6 kB / 1.244 GB, free: 7.684 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 8.63e-05/0.2855, allocations: 23.95 kB / 1.244 GB, free: 7.66 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001012/0.2856, allocations: 47.84 kB / 1.244 GB, free: 7.613 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 8.284e-05/0.2857, allocations: 47.75 kB / 1.244 GB, free: 7.566 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 2.282e-05/0.2857, allocations: 8 kB / 1.244 GB, free: 7.559 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002008/0.2859, allocations: 99.84 kB / 1.244 GB, free: 7.461 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 3.248e-05/0.2859, allocations: 19.92 kB / 1.244 GB, free: 7.441 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 6.382e-05/0.286, allocations: 43.78 kB / 1.244 GB, free: 7.398 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.000252/0.2863, allocations: 163.4 kB / 1.244 GB, free: 7.238 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 2.755e-06/0.2863, allocations: 0 / 1.244 GB, free: 7.238 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.132e-06/0.2863, allocations: 0 / 1.244 GB, free: 7.238 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 4.348e-06/0.2863, allocations: 4 kB / 1.244 GB, free: 7.234 MB / 0.9981 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.0008164/0.2871, allocations: 0.5115 MB / 1.245 GB, free: 6.656 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.391e-05/0.2872, allocations: 12.03 kB / 1.245 GB, free: 6.645 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.658e-05/0.2872, allocations: 30.75 kB / 1.245 GB, free: 6.605 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.675e-05/0.2873, allocations: 12.84 kB / 1.245 GB, free: 6.594 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001659/0.2874, allocations: 186.5 kB / 1.245 GB, free: 6.375 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.572e-05/0.2874, allocations: 8.375 kB / 1.245 GB, free: 6.367 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.001e-05/0.2875, allocations: 4.375 kB / 1.245 GB, free: 6.363 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001999/0.2877, allocations: 89.7 kB / 1.245 GB, free: 6.27 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.826e-06/0.2877, allocations: 0 / 1.245 GB, free: 6.27 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.552e-05/0.2877, allocations: 8 kB / 1.245 GB, free: 6.262 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.957e-06/0.2877, allocations: 0 / 1.245 GB, free: 6.262 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001651/0.2879, allocations: 47.95 kB / 1.245 GB, free: 6.215 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005588/0.2885, allocations: 332.7 kB / 1.246 GB, free: 5.84 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002305/0.2887, allocations: 82.66 kB / 1.246 GB, free: 5.75 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001017/0.2888, allocations: 40.84 kB / 1.246 GB, free: 5.707 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.528e-05/0.2888, allocations: 0 / 1.246 GB, free: 5.707 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002221/0.2891, allocations: 99.44 kB / 1.246 GB, free: 5.598 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=11): time 1.533e-06/0.2891, allocations: 7.938 kB / 1.246 GB, free: 5.59 MB / 0.9981 GB Notification: Performance of matching and sorting (n=11): time 0.0004622/0.2896, allocations: 177.5 kB / 1.246 GB, free: 5.41 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.318e-05/0.2896, allocations: 55.41 kB / 1.246 GB, free: 5.344 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001307/0.2897, allocations: 133.8 kB / 1.246 GB, free: 5.203 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.199e-05/0.2898, allocations: 29.7 kB / 1.246 GB, free: 5.168 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 8.791e-05/0.2899, allocations: 104.1 kB / 1.246 GB, free: 5.062 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 3.337e-05/0.2899, allocations: 31.73 kB / 1.246 GB, free: 5.031 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.231e-05/0.29, allocations: 33.7 kB / 1.246 GB, free: 4.992 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001574/0.2901, allocations: 334.8 kB / 1.247 GB, free: 4.656 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.678e-05/0.2902, allocations: 31.92 kB / 1.247 GB, free: 4.625 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001264/0.2904, allocations: 71.73 kB / 1.247 GB, free: 4.539 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001985/0.2906, allocations: 101.1 kB / 1.247 GB, free: 4.422 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.2906, allocations: 0 / 1.247 GB, free: 4.422 MB / 0.9981 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002831/0.2909, allocations: 141.5 kB / 1.247 GB, free: 4.277 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.558e-05/0.2909, allocations: 9.547 kB / 1.247 GB, free: 4.27 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.374e-06/0.2909, allocations: 4 kB / 1.247 GB, free: 4.266 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.208e-05/0.2909, allocations: 4.094 kB / 1.247 GB, free: 4.262 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001127/0.291, allocations: 15.98 kB / 1.247 GB, free: 4.246 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.053e-06/0.2911, allocations: 7.938 kB / 1.247 GB, free: 4.238 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001147/0.2912, allocations: 19.88 kB / 1.247 GB, free: 4.219 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.501e-05/0.2912, allocations: 11.94 kB / 1.247 GB, free: 4.207 MB / 0.9981 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.0001084/0.2913, allocations: 121 kB / 1.247 GB, free: 4.082 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.467e-05/0.2914, allocations: 11.95 kB / 1.247 GB, free: 4.07 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003929/0.2917, allocations: 174.3 kB / 1.247 GB, free: 3.891 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.182e-06/0.2918, allocations: 4 kB / 1.247 GB, free: 3.887 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.2918, allocations: 4 kB / 1.247 GB, free: 3.883 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.357e-06/0.2918, allocations: 0 / 1.247 GB, free: 3.883 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006866/0.2925, allocations: 466.2 kB / 1.248 GB, free: 3.371 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.948e-06/0.2925, allocations: 3.984 kB / 1.248 GB, free: 3.367 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.376e-05/0.2926, allocations: 8 kB / 1.248 GB, free: 3.359 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.559e-06/0.2926, allocations: 4 kB / 1.248 GB, free: 3.355 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.512e-05/0.2926, allocations: 7.984 kB / 1.248 GB, free: 3.348 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.647e-06/0.2926, allocations: 3.938 kB / 1.248 GB, free: 3.344 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.2926, allocations: 0 / 1.248 GB, free: 3.344 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003656/0.293, allocations: 251.2 kB / 1.248 GB, free: 3.086 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.236e-05/0.2931, allocations: 85.06 kB / 1.248 GB, free: 2.984 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.498e-05/0.2931, allocations: 7.938 kB / 1.248 GB, free: 2.977 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001363/0.2932, allocations: 19.92 kB / 1.248 GB, free: 2.957 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.616e-05/0.2933, allocations: 11.98 kB / 1.248 GB, free: 2.945 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.85e-05/0.2933, allocations: 4 kB / 1.248 GB, free: 2.941 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 7.963e-05/0.2934, allocations: 109 kB / 1.248 GB, free: 2.836 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.41e-07/0.2934, allocations: 0 / 1.248 GB, free: 2.836 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0003089/0.2937, allocations: 43.89 kB / 1.248 GB, free: 2.793 MB / 0.9981 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 (14): * Single equations (assignments): 11 * 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.0009333/0.2947, allocations: 0.8537 MB / 1.249 GB, free: 1.926 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0002652/0.2949, allocations: 91.89 kB / 1.249 GB, free: 1.836 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 3.576e-06/0.295, allocations: 0 / 1.249 GB, free: 1.836 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001413/0.2951, allocations: 64.03 kB / 1.249 GB, free: 1.773 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003066/0.2954, allocations: 23.92 kB / 1.249 GB, free: 1.754 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4573/0.7527, allocations: 1.666 MB / 1.251 GB, free: 14.71 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001195/0.7529, allocations: 0.7001 MB / 1.252 GB, free: 14.02 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 8.116e-05/0.753, allocations: 12.34 kB / 1.252 GB, free: 14.02 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.795e-05/0.7531, allocations: 33.92 kB / 1.252 GB, free: 14.01 MB / 0.9981 GB Notification: Performance of SimCode: time 6.51e-07/0.7531, allocations: 0 / 1.252 GB, free: 14.01 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02456/0.7776, allocations: 3.472 MB / 1.255 GB, free: 13.64 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.845/8.623, allocations: 14.41 kB / 1.255 GB, free: 13.63 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light_res.csv --start-time 0 --stop-time 3600 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.44 Buildings_latest_Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light.fmu > Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.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.Reinhart2003Light_res.csv. Warning: Get data of variable lig.occ from file Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light_res.csv failed! Error: Could not read variable lig.on in file Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light_res.csv. Warning: Get data of variable lig.on from file Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light_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