Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light,fileNamePrefix="Buildings_10_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.007754/0.007754, allocations: 97.2 kB / 15.73 MB, free: 5.547 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.001328/0.001328, allocations: 190 kB / 16.67 MB, free: 5.48 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.384/1.384, allocations: 222.9 MB / 240.4 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.524/2.524, allocations: 437 MB / 0.7105 GB, free: 4.371 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001885/0.001885, allocations: 72.05 kB / 1.018 GB, free: 9.922 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8941/0.896, allocations: 151.6 MB / 1.166 GB, free: 3.766 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light): time 0.003438/0.8995, allocations: 1.543 MB / 1.168 GB, free: 2.215 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001588/0.9011, allocations: 0.7712 MB / 1.168 GB, free: 1.438 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.55e-05/0.9012, allocations: 4 kB / 1.168 GB, free: 1.434 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 4.558e-05/0.9013, allocations: 3.938 kB / 1.168 GB, free: 1.43 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0001294/0.9014, allocations: 19.78 kB / 1.168 GB, free: 1.41 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006638/0.9021, allocations: 131.5 kB / 1.169 GB, free: 1.281 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0001651/0.9023, allocations: 99.7 kB / 1.169 GB, free: 1.184 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001087/0.9024, allocations: 23.97 kB / 1.169 GB, free: 1.16 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001202/0.9025, allocations: 39.86 kB / 1.169 GB, free: 1.121 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 9.956e-05/0.9026, allocations: 51.75 kB / 1.169 GB, free: 1.07 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 2.333e-05/0.9027, allocations: 8 kB / 1.169 GB, free: 1.062 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002565/0.9029, allocations: 95.84 kB / 1.169 GB, free: 0.9688 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 4.16e-05/0.903, allocations: 27.91 kB / 1.169 GB, free: 0.9414 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 6.515e-05/0.9031, allocations: 43.8 kB / 1.169 GB, free: 0.8984 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0003054/0.9034, allocations: 171 kB / 1.169 GB, free: 0.7344 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.9034, allocations: 0 / 1.169 GB, free: 0.7344 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.803e-06/0.9034, allocations: 0 / 1.169 GB, free: 0.7344 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 7.764e-06/0.9034, allocations: 0 / 1.169 GB, free: 0.7344 MB / 0.8887 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.0008362/0.9042, allocations: 0.496 MB / 1.17 GB, free: 176 kB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.497e-05/0.9043, allocations: 16.91 kB / 1.17 GB, free: 160 kB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.931e-05/0.9044, allocations: 38.75 kB / 1.17 GB, free: 112 kB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.419e-05/0.9044, allocations: 16.84 kB / 1.17 GB, free: 96 kB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001535/0.9046, allocations: 186.3 kB / 1.17 GB, free: 15.88 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.668e-05/0.9046, allocations: 4.312 kB / 1.17 GB, free: 15.87 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.944e-05/0.9046, allocations: 12.38 kB / 1.17 GB, free: 15.86 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001966/0.9048, allocations: 77.77 kB / 1.17 GB, free: 15.78 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.148e-06/0.9048, allocations: 0 / 1.17 GB, free: 15.78 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.146e-05/0.9049, allocations: 0 / 1.17 GB, free: 15.78 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.332e-06/0.9049, allocations: 4 kB / 1.17 GB, free: 15.77 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000146/0.905, allocations: 55.89 kB / 1.17 GB, free: 15.72 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005389/0.9056, allocations: 332.7 kB / 1.17 GB, free: 15.34 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002058/0.9058, allocations: 86.69 kB / 1.17 GB, free: 15.25 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.336e-05/0.9059, allocations: 36.84 kB / 1.17 GB, free: 15.21 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 2.642e-05/0.9059, allocations: 8 kB / 1.17 GB, free: 15.2 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002375/0.9062, allocations: 91.36 kB / 1.17 GB, free: 15.1 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=11): time 1.834e-06/0.9062, allocations: 4 kB / 1.17 GB, free: 15.1 MB / 0.9044 GB Notification: Performance of matching and sorting (n=11): time 0.0004139/0.9066, allocations: 181.4 kB / 1.171 GB, free: 14.91 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.15e-05/0.9066, allocations: 51.41 kB / 1.171 GB, free: 14.85 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001129/0.9068, allocations: 144.1 kB / 1.171 GB, free: 14.7 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 1.594e-05/0.9068, allocations: 29.7 kB / 1.171 GB, free: 14.67 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 6.567e-05/0.9069, allocations: 100.1 kB / 1.171 GB, free: 14.57 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 3.442e-05/0.9069, allocations: 31.73 kB / 1.171 GB, free: 14.54 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.304e-05/0.907, allocations: 37.69 kB / 1.171 GB, free: 14.49 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 9.538e-05/0.9071, allocations: 318.8 kB / 1.171 GB, free: 14.17 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.768e-05/0.9071, allocations: 31.97 kB / 1.171 GB, free: 14.14 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001005/0.9073, allocations: 73.14 kB / 1.171 GB, free: 14.05 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001661/0.9074, allocations: 101 kB / 1.172 GB, free: 13.93 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.9074, allocations: 0 / 1.172 GB, free: 13.93 MB / 0.9044 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000244/0.9077, allocations: 141.5 kB / 1.172 GB, free: 13.79 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.394e-05/0.9077, allocations: 4 kB / 1.172 GB, free: 13.79 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.049e-06/0.9077, allocations: 7.875 kB / 1.172 GB, free: 13.78 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.576e-05/0.9077, allocations: 7.984 kB / 1.172 GB, free: 13.77 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001072/0.9079, allocations: 15.98 kB / 1.172 GB, free: 13.75 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.884e-06/0.9079, allocations: 4 kB / 1.172 GB, free: 13.75 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.739e-05/0.908, allocations: 15.89 kB / 1.172 GB, free: 13.73 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.737e-05/0.908, allocations: 11.98 kB / 1.172 GB, free: 13.72 MB / 0.9044 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.966e-05/0.9081, allocations: 132 kB / 1.172 GB, free: 13.59 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.118e-05/0.9081, allocations: 7.953 kB / 1.172 GB, free: 13.58 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003406/0.9085, allocations: 167.8 kB / 1.172 GB, free: 13.41 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.415e-06/0.9085, allocations: 0 / 1.172 GB, free: 13.41 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.63e-06/0.9085, allocations: 4 kB / 1.172 GB, free: 13.41 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.9085, allocations: 0 / 1.172 GB, free: 13.41 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005817/0.9091, allocations: 466.2 kB / 1.172 GB, free: 12.89 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.9091, allocations: 0 / 1.172 GB, free: 12.89 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.894e-05/0.9092, allocations: 15.98 kB / 1.172 GB, free: 12.88 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.358e-06/0.9092, allocations: 0 / 1.172 GB, free: 12.88 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.841e-05/0.9092, allocations: 19.92 kB / 1.173 GB, free: 12.86 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.938e-06/0.9092, allocations: 3.938 kB / 1.173 GB, free: 12.86 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.9092, allocations: 0 / 1.173 GB, free: 12.86 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003021/0.9095, allocations: 256.6 kB / 1.173 GB, free: 12.59 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 4.227e-05/0.9096, allocations: 85.06 kB / 1.173 GB, free: 12.49 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.26e-05/0.9096, allocations: 0 / 1.173 GB, free: 12.49 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000136/0.9098, allocations: 15.92 kB / 1.173 GB, free: 12.47 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.724e-05/0.9098, allocations: 11.98 kB / 1.173 GB, free: 12.46 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.803e-05/0.9099, allocations: 8 kB / 1.173 GB, free: 12.45 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0001054/0.91, allocations: 107.2 kB / 1.173 GB, free: 12.35 MB / 0.9044 GB Notification: Performance of sort global known variables: time 3.4e-07/0.91, allocations: 0 / 1.173 GB, free: 12.35 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0005373/0.9106, allocations: 43.89 kB / 1.173 GB, free: 12.3 MB / 0.9044 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.0012/0.9118, allocations: 0.8499 MB / 1.174 GB, free: 11.45 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0003799/0.9122, allocations: 99.89 kB / 1.174 GB, free: 11.35 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.9122, allocations: 0 / 1.174 GB, free: 11.35 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0001968/0.9124, allocations: 55.92 kB / 1.174 GB, free: 11.29 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004946/0.9129, allocations: 23.92 kB / 1.174 GB, free: 11.27 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002348/0.9153, allocations: 1.69 MB / 1.176 GB, free: 9.473 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003058/0.9156, allocations: 0.7041 MB / 1.176 GB, free: 8.742 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 6.843e-05/0.9157, allocations: 4.562 kB / 1.176 GB, free: 8.738 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.973e-05/0.9158, allocations: 39.42 kB / 1.176 GB, free: 8.699 MB / 0.9044 GB Notification: Performance of SimCode: time 5.41e-07/0.9158, allocations: 0 / 1.176 GB, free: 8.699 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02448/0.9403, allocations: 3.455 MB / 1.18 GB, free: 5.371 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.49/8.43, allocations: 20.73 kB / 1.18 GB, free: 5.355 MB / 0.9044 GB (rm -f Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe ; mkfifo Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe ; head -c 1048576 < Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe >> ../files/Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.sim & python3 -m fmpy simulate --output-file Buildings_10_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_10_Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light.fmu > Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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_10_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light_res.csv. Warning: Get data of variable lig.occ from file Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light_res.csv failed! Error: Could not read variable lig.on in file Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light_res.csv. Warning: Get data of variable lig.on from file Buildings_10_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