Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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.Reinhart2003Light,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light,fileNamePrefix="Buildings_9_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.007168/0.007168, allocations: 96.72 kB / 15.73 MB, free: 6 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.001653/0.001653, allocations: 185.7 kB / 16.67 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.382/1.382, allocations: 222.9 MB / 240.4 MB, free: 4.312 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.301/2.301, allocations: 390.2 MB / 0.6648 GB, free: 136 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00133/0.00133, allocations: 66.64 kB / 0.9504 GB, free: 5.973 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2711/0.2724, allocations: 140.4 MB / 1.087 GB, free: 2.004 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light): time 0.002752/0.2752, allocations: 1.544 MB / 1.089 GB, free: 456 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001318/0.2766, allocations: 0.7609 MB / 1.09 GB, free: 15.68 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.75e-05/0.2767, allocations: 0 / 1.09 GB, free: 15.68 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.129e-05/0.2767, allocations: 7.875 kB / 1.09 GB, free: 15.67 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 9.483e-05/0.2768, allocations: 19.8 kB / 1.09 GB, free: 15.65 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005521/0.2774, allocations: 131.6 kB / 1.09 GB, free: 15.52 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001436/0.2775, allocations: 103.6 kB / 1.09 GB, free: 15.42 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 8.935e-05/0.2776, allocations: 19.98 kB / 1.09 GB, free: 15.4 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001082/0.2777, allocations: 43.78 kB / 1.09 GB, free: 15.36 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 9.082e-05/0.2778, allocations: 51.81 kB / 1.09 GB, free: 15.31 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.934e-05/0.2779, allocations: 8 kB / 1.09 GB, free: 15.3 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001829/0.2781, allocations: 91.91 kB / 1.09 GB, free: 15.21 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.027e-05/0.2781, allocations: 23.91 kB / 1.09 GB, free: 15.19 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 5.087e-05/0.2782, allocations: 39.8 kB / 1.09 GB, free: 15.15 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.000259/0.2784, allocations: 171.6 kB / 1.09 GB, free: 14.98 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.2784, allocations: 0 / 1.09 GB, free: 14.98 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.132e-06/0.2784, allocations: 4 kB / 1.09 GB, free: 14.98 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.522e-06/0.2785, allocations: 0 / 1.09 GB, free: 14.98 MB / 0.8575 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.0007508/0.2792, allocations: 0.5038 MB / 1.091 GB, free: 14.41 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.427e-05/0.2793, allocations: 8.031 kB / 1.091 GB, free: 14.4 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.182e-05/0.2793, allocations: 38.73 kB / 1.091 GB, free: 14.35 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.941e-05/0.2793, allocations: 12.89 kB / 1.091 GB, free: 14.34 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001273/0.2795, allocations: 176.2 kB / 1.091 GB, free: 14.13 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.913e-05/0.2795, allocations: 16.31 kB / 1.091 GB, free: 14.11 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.746e-05/0.2795, allocations: 4.375 kB / 1.091 GB, free: 14.11 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001828/0.2797, allocations: 89.69 kB / 1.091 GB, free: 14.02 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.973e-06/0.2797, allocations: 0 / 1.091 GB, free: 14.02 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.422e-05/0.2797, allocations: 4 kB / 1.091 GB, free: 14.01 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.188e-06/0.2798, allocations: 0 / 1.091 GB, free: 14.01 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000142/0.2799, allocations: 47.97 kB / 1.091 GB, free: 13.96 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005304/0.2804, allocations: 344.6 kB / 1.092 GB, free: 13.58 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002019/0.2807, allocations: 74.67 kB / 1.092 GB, free: 13.5 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.619e-05/0.2808, allocations: 40.84 kB / 1.092 GB, free: 13.45 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.058e-05/0.2808, allocations: 3.984 kB / 1.092 GB, free: 13.45 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002273/0.281, allocations: 103.4 kB / 1.092 GB, free: 13.34 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=11): time 1.553e-06/0.281, allocations: 0 / 1.092 GB, free: 13.34 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11): time 0.0004117/0.2815, allocations: 169.5 kB / 1.092 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.882e-05/0.2815, allocations: 59.41 kB / 1.092 GB, free: 13.09 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001114/0.2816, allocations: 143.3 kB / 1.092 GB, free: 12.95 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.047e-05/0.2816, allocations: 33.7 kB / 1.092 GB, free: 12.91 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.13e-05/0.2817, allocations: 100.1 kB / 1.092 GB, free: 12.8 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.426e-05/0.2817, allocations: 23.84 kB / 1.092 GB, free: 12.78 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.194e-05/0.2818, allocations: 33.7 kB / 1.092 GB, free: 12.74 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001187/0.2819, allocations: 330.8 kB / 1.093 GB, free: 12.41 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.95e-05/0.282, allocations: 31.86 kB / 1.093 GB, free: 12.38 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001033/0.2821, allocations: 71.23 kB / 1.093 GB, free: 12.29 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001736/0.2823, allocations: 113 kB / 1.093 GB, free: 12.16 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.2823, allocations: 0 / 1.093 GB, free: 12.16 MB / 0.8575 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002473/0.2826, allocations: 133.4 kB / 1.093 GB, free: 12.03 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.455e-05/0.2826, allocations: 8.094 kB / 1.093 GB, free: 12.02 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.461e-06/0.2826, allocations: 4 kB / 1.093 GB, free: 12.02 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.389e-05/0.2826, allocations: 4 kB / 1.093 GB, free: 12.01 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001108/0.2827, allocations: 31.86 kB / 1.093 GB, free: 11.98 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.501e-06/0.2827, allocations: 0 / 1.093 GB, free: 11.98 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001031/0.2829, allocations: 11.98 kB / 1.093 GB, free: 11.97 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.263e-05/0.2829, allocations: 4 kB / 1.093 GB, free: 11.96 MB / 0.8575 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.79e-05/0.283, allocations: 131.2 kB / 1.093 GB, free: 11.83 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.217e-05/0.283, allocations: 15.91 kB / 1.093 GB, free: 11.81 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003395/0.2833, allocations: 170.3 kB / 1.093 GB, free: 11.64 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.2834, allocations: 4 kB / 1.093 GB, free: 11.64 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.2834, allocations: 0 / 1.093 GB, free: 11.64 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.2834, allocations: 0 / 1.093 GB, free: 11.64 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005999/0.284, allocations: 471.1 kB / 1.094 GB, free: 11.12 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.923e-06/0.284, allocations: 3.938 kB / 1.094 GB, free: 11.12 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.159e-05/0.2841, allocations: 19.98 kB / 1.094 GB, free: 11.1 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.395e-06/0.2841, allocations: 0 / 1.094 GB, free: 11.1 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.189e-05/0.2841, allocations: 0 / 1.094 GB, free: 11.1 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.328e-06/0.2841, allocations: 3.938 kB / 1.094 GB, free: 11.09 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.2841, allocations: 0 / 1.094 GB, free: 11.09 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003087/0.2844, allocations: 246.8 kB / 1.094 GB, free: 10.84 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.341e-05/0.2845, allocations: 93 kB / 1.094 GB, free: 10.73 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.484e-05/0.2845, allocations: 4 kB / 1.094 GB, free: 10.73 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001236/0.2847, allocations: 19.92 kB / 1.094 GB, free: 10.71 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.16e-05/0.2847, allocations: 11.98 kB / 1.094 GB, free: 10.7 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.523e-05/0.2847, allocations: 4 kB / 1.094 GB, free: 10.69 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 6.973e-05/0.2848, allocations: 105.3 kB / 1.094 GB, free: 10.59 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1e-07/0.2848, allocations: 0 / 1.094 GB, free: 10.59 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003061/0.2851, allocations: 51.86 kB / 1.094 GB, free: 10.54 MB / 0.8575 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.000797/0.2859, allocations: 0.8413 MB / 1.095 GB, free: 9.688 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.000243/0.2862, allocations: 91.89 kB / 1.095 GB, free: 9.598 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.2862, allocations: 4.188 kB / 1.095 GB, free: 9.594 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.000119/0.2863, allocations: 63.89 kB / 1.095 GB, free: 9.531 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002953/0.2866, allocations: 27.86 kB / 1.095 GB, free: 9.504 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001737/0.2884, allocations: 1.676 MB / 1.097 GB, free: 7.715 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002607/0.2886, allocations: 0.7002 MB / 1.098 GB, free: 6.988 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 5.027e-05/0.2887, allocations: 12.55 kB / 1.098 GB, free: 6.977 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.637e-05/0.2888, allocations: 31.42 kB / 1.098 GB, free: 6.945 MB / 0.8575 GB Notification: Performance of SimCode: time 2.31e-07/0.2888, allocations: 0 / 1.098 GB, free: 6.945 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02064/0.3094, allocations: 3.458 MB / 1.101 GB, free: 3.613 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.483/7.793, allocations: 18.72 kB / 1.101 GB, free: 3.598 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light_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_Reinhart2003Light.fmu > Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light_res.csv. Warning: Get data of variable lig.occ from file Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light_res.csv failed! Error: Could not read variable lig.on in file Buildings_9_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light_res.csv. Warning: Get data of variable lig.on from file Buildings_9_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