Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light,fileNamePrefix="Buildings_11_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.004216/0.004216, allocations: 101 kB / 15.73 MB, free: 6.047 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.001238/0.001238, allocations: 188.3 kB / 16.67 MB, free: 5.969 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.42/1.42, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.86/2.86, allocations: 469.8 MB / 0.7425 GB, free: 7.301 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001952/0.001952, allocations: 63.89 kB / 1.065 GB, free: 13.59 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2695/0.2715, allocations: 159.1 MB / 1.22 GB, free: 14.34 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light): time 0.002624/0.2742, allocations: 1.559 MB / 1.222 GB, free: 12.77 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001279/0.2755, allocations: 0.7595 MB / 1.222 GB, free: 12 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.008e-05/0.2755, allocations: 4 kB / 1.222 GB, free: 12 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.274e-05/0.2756, allocations: 11.88 kB / 1.222 GB, free: 11.99 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 8.654e-05/0.2757, allocations: 19.8 kB / 1.222 GB, free: 11.97 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004978/0.2762, allocations: 127.6 kB / 1.223 GB, free: 11.84 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001375/0.2763, allocations: 103.6 kB / 1.223 GB, free: 11.74 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 8.004e-05/0.2764, allocations: 12 kB / 1.223 GB, free: 11.73 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 9.609e-05/0.2765, allocations: 47.84 kB / 1.223 GB, free: 11.68 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 8.883e-05/0.2766, allocations: 47.81 kB / 1.223 GB, free: 11.64 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.187e-05/0.2766, allocations: 8 kB / 1.223 GB, free: 11.63 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000195/0.2768, allocations: 99.84 kB / 1.223 GB, free: 11.53 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 3.354e-05/0.2769, allocations: 23.91 kB / 1.223 GB, free: 11.51 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 5.923e-05/0.2769, allocations: 35.8 kB / 1.223 GB, free: 11.47 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002572/0.2772, allocations: 167.4 kB / 1.223 GB, free: 11.31 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.066e-06/0.2772, allocations: 0 / 1.223 GB, free: 11.31 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.172e-06/0.2772, allocations: 0 / 1.223 GB, free: 11.31 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 4.058e-06/0.2772, allocations: 0 / 1.223 GB, free: 11.31 MB / 0.9825 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.0008057/0.278, allocations: 0.5116 MB / 1.224 GB, free: 10.73 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.032e-05/0.2781, allocations: 8.031 kB / 1.224 GB, free: 10.72 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.525e-05/0.2781, allocations: 38.73 kB / 1.224 GB, free: 10.68 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.497e-05/0.2782, allocations: 16.78 kB / 1.224 GB, free: 10.66 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001616/0.2783, allocations: 182.5 kB / 1.224 GB, free: 10.45 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.221e-05/0.2783, allocations: 4.375 kB / 1.224 GB, free: 10.44 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.895e-05/0.2784, allocations: 4.375 kB / 1.224 GB, free: 10.44 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002019/0.2786, allocations: 97.69 kB / 1.224 GB, free: 10.34 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.979e-06/0.2786, allocations: 3.984 kB / 1.224 GB, free: 10.33 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.487e-05/0.2786, allocations: 4 kB / 1.224 GB, free: 10.33 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.997e-06/0.2786, allocations: 0 / 1.224 GB, free: 10.33 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001547/0.2788, allocations: 47.97 kB / 1.224 GB, free: 10.28 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005514/0.2793, allocations: 332.7 kB / 1.224 GB, free: 9.906 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002264/0.2796, allocations: 82.67 kB / 1.224 GB, free: 9.816 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001023/0.2797, allocations: 36.84 kB / 1.224 GB, free: 9.777 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.081e-05/0.2797, allocations: 3.984 kB / 1.224 GB, free: 9.773 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002232/0.28, allocations: 95.36 kB / 1.224 GB, free: 9.668 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=11): time 3.567e-06/0.28, allocations: 96 / 1.224 GB, free: 9.668 MB / 0.9825 GB Notification: Performance of matching and sorting (n=11): time 0.00045/0.2804, allocations: 189.3 kB / 1.225 GB, free: 9.477 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.208e-05/0.2805, allocations: 55.41 kB / 1.225 GB, free: 9.41 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001264/0.2806, allocations: 141.8 kB / 1.225 GB, free: 9.262 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.268e-05/0.2806, allocations: 29.7 kB / 1.225 GB, free: 9.227 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 6.364e-05/0.2807, allocations: 104.1 kB / 1.225 GB, free: 9.121 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.036e-05/0.2807, allocations: 27.78 kB / 1.225 GB, free: 9.094 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.165e-05/0.2808, allocations: 29.7 kB / 1.225 GB, free: 9.059 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001408/0.281, allocations: 334.8 kB / 1.225 GB, free: 8.723 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.271e-05/0.281, allocations: 23.98 kB / 1.225 GB, free: 8.699 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001158/0.2812, allocations: 73.06 kB / 1.225 GB, free: 8.609 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002039/0.2814, allocations: 109.1 kB / 1.226 GB, free: 8.484 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.2814, allocations: 0 / 1.226 GB, free: 8.484 MB / 0.9825 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002811/0.2817, allocations: 137.4 kB / 1.226 GB, free: 8.344 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.337e-05/0.2817, allocations: 8 kB / 1.226 GB, free: 8.336 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.232e-06/0.2817, allocations: 4 kB / 1.226 GB, free: 8.332 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.276e-05/0.2817, allocations: 4 kB / 1.226 GB, free: 8.328 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001092/0.2818, allocations: 20.08 kB / 1.226 GB, free: 8.309 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.896e-06/0.2819, allocations: 3.938 kB / 1.226 GB, free: 8.305 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001108/0.282, allocations: 15.92 kB / 1.226 GB, free: 8.289 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.321e-05/0.282, allocations: 7.938 kB / 1.226 GB, free: 8.281 MB / 0.9825 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.0001114/0.2821, allocations: 136.1 kB / 1.226 GB, free: 8.141 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.196e-05/0.2821, allocations: 11.89 kB / 1.226 GB, free: 8.129 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003858/0.2825, allocations: 178.2 kB / 1.226 GB, free: 7.941 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.414e-06/0.2826, allocations: 4 kB / 1.226 GB, free: 7.938 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.466e-06/0.2826, allocations: 0 / 1.226 GB, free: 7.938 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.427e-06/0.2826, allocations: 0 / 1.226 GB, free: 7.938 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006784/0.2832, allocations: 462.3 kB / 1.227 GB, free: 7.43 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.2833, allocations: 0 / 1.227 GB, free: 7.43 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.977e-05/0.2834, allocations: 15.98 kB / 1.227 GB, free: 7.414 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.2834, allocations: 0 / 1.227 GB, free: 7.414 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.236e-05/0.2834, allocations: 0 / 1.227 GB, free: 7.414 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.21e-06/0.2834, allocations: 11.94 kB / 1.227 GB, free: 7.402 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.2834, allocations: 0 / 1.227 GB, free: 7.402 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003592/0.2838, allocations: 251 kB / 1.227 GB, free: 7.145 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 5.162e-05/0.2838, allocations: 85.05 kB / 1.227 GB, free: 7.043 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.108e-05/0.2839, allocations: 8 kB / 1.227 GB, free: 7.035 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001392/0.284, allocations: 15.86 kB / 1.227 GB, free: 7.02 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.51e-05/0.2841, allocations: 11.98 kB / 1.227 GB, free: 7.008 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.659e-05/0.2841, allocations: 8 kB / 1.227 GB, free: 7 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 8.237e-05/0.2842, allocations: 108.9 kB / 1.227 GB, free: 6.895 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2842, allocations: 0 / 1.227 GB, free: 6.895 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003075/0.2845, allocations: 47.92 kB / 1.227 GB, free: 6.848 MB / 0.9825 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.0008906/0.2854, allocations: 0.8414 MB / 1.228 GB, free: 6 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002637/0.2857, allocations: 91.89 kB / 1.228 GB, free: 5.91 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.2857, allocations: 0 / 1.228 GB, free: 5.91 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001356/0.2858, allocations: 63.83 kB / 1.228 GB, free: 5.848 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000309/0.2861, allocations: 32.38 kB / 1.228 GB, free: 5.816 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001901/0.288, allocations: 1.687 MB / 1.23 GB, free: 4.02 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003154/0.2884, allocations: 0.6963 MB / 1.23 GB, free: 3.297 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 5.648e-05/0.2884, allocations: 16.55 kB / 1.23 GB, free: 3.281 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.759e-05/0.2885, allocations: 35.42 kB / 1.23 GB, free: 3.25 MB / 0.9825 GB Notification: Performance of SimCode: time 2.4e-07/0.2885, allocations: 0 / 1.23 GB, free: 3.25 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02391/0.3124, allocations: 3.461 MB / 1.234 GB, free: 15.92 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.875/8.188, allocations: 10.62 kB / 1.234 GB, free: 15.91 MB / 0.9981 GB (rm -f Buildings_11_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe ; mkfifo Buildings_11_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe ; head -c 1048576 < Buildings_11_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe >> ../files/Buildings_11_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.sim & python3 -m fmpy simulate --output-file Buildings_11_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_11_Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light.fmu > Buildings_11_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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_11_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light_res.csv. Warning: Get data of variable lig.occ from file Buildings_11_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light_res.csv failed! Error: Could not read variable lig.on in file Buildings_11_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light_res.csv. Warning: Get data of variable lig.on from file Buildings_11_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