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.00687/0.006869, allocations: 100.5 kB / 15.73 MB, free: 6.039 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.001186/0.001186, allocations: 195.5 kB / 16.68 MB, free: 5.957 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.365/1.365, allocations: 222.9 MB / 240.4 MB, free: 15.13 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.521/2.521, allocations: 437.1 MB / 0.7105 GB, free: 4.336 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001371/0.001371, allocations: 67.89 kB / 1.018 GB, free: 9.902 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9738/0.9752, allocations: 151.6 MB / 1.166 GB, free: 3.75 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light): time 0.002744/0.978, allocations: 1.54 MB / 1.168 GB, free: 2.199 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001361/0.9794, allocations: 0.7789 MB / 1.168 GB, free: 1.414 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.045e-05/0.9795, allocations: 0 / 1.168 GB, free: 1.414 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 2.828e-05/0.9795, allocations: 3.938 kB / 1.168 GB, free: 1.41 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 9.58e-05/0.9796, allocations: 23.78 kB / 1.168 GB, free: 1.387 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005226/0.9801, allocations: 131.5 kB / 1.169 GB, free: 1.258 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0001283/0.9803, allocations: 103.7 kB / 1.169 GB, free: 1.156 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 9.356e-05/0.9804, allocations: 11.98 kB / 1.169 GB, free: 1.145 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000104/0.9805, allocations: 43.84 kB / 1.169 GB, free: 1.102 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 8.868e-05/0.9806, allocations: 51.75 kB / 1.169 GB, free: 1.051 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 2.16e-05/0.9806, allocations: 8 kB / 1.169 GB, free: 1.043 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001844/0.9808, allocations: 99.84 kB / 1.169 GB, free: 0.9453 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 3.065e-05/0.9808, allocations: 19.92 kB / 1.169 GB, free: 0.9258 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 6.07e-05/0.9809, allocations: 43.8 kB / 1.169 GB, free: 0.8828 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0002568/0.9812, allocations: 165.8 kB / 1.169 GB, free: 0.7227 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.9812, allocations: 0 / 1.169 GB, free: 0.7227 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.393e-06/0.9812, allocations: 0 / 1.169 GB, free: 0.7227 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 1.01e-05/0.9812, allocations: 0 / 1.169 GB, free: 0.7227 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.0008105/0.982, allocations: 0.4962 MB / 1.17 GB, free: 164 kB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.176e-05/0.9821, allocations: 12.92 kB / 1.17 GB, free: 152 kB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.076e-05/0.9821, allocations: 34.75 kB / 1.17 GB, free: 108 kB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.003e-05/0.9822, allocations: 12.84 kB / 1.17 GB, free: 96 kB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001654/0.9824, allocations: 193.8 kB / 1.17 GB, free: 15.87 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.92e-05/0.9824, allocations: 4.375 kB / 1.17 GB, free: 15.86 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.353e-05/0.9824, allocations: 8.375 kB / 1.17 GB, free: 15.86 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001949/0.9826, allocations: 81.7 kB / 1.17 GB, free: 15.77 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.348e-06/0.9826, allocations: 0 / 1.17 GB, free: 15.77 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.489e-05/0.9826, allocations: 4 kB / 1.17 GB, free: 15.77 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.759e-06/0.9827, allocations: 0 / 1.17 GB, free: 15.77 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001481/0.9828, allocations: 55.89 kB / 1.17 GB, free: 15.71 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005388/0.9834, allocations: 336.7 kB / 1.17 GB, free: 15.33 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002206/0.9836, allocations: 82.69 kB / 1.17 GB, free: 15.24 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.16e-05/0.9837, allocations: 40.84 kB / 1.17 GB, free: 15.2 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 2.471e-05/0.9837, allocations: 4 kB / 1.17 GB, free: 15.2 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002434/0.984, allocations: 103.3 kB / 1.17 GB, free: 15.08 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=11): time 1.563e-06/0.984, allocations: 0 / 1.17 GB, free: 15.08 MB / 0.9044 GB Notification: Performance of matching and sorting (n=11): time 0.0004182/0.9844, allocations: 173.4 kB / 1.171 GB, free: 14.91 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.542e-05/0.9845, allocations: 59.34 kB / 1.171 GB, free: 14.84 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001032/0.9846, allocations: 139.9 kB / 1.171 GB, free: 14.69 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 1.557e-05/0.9846, allocations: 29.7 kB / 1.171 GB, free: 14.66 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 5.059e-05/0.9847, allocations: 100.1 kB / 1.171 GB, free: 14.55 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 3.202e-05/0.9847, allocations: 31.62 kB / 1.171 GB, free: 14.52 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.069e-05/0.9848, allocations: 33.7 kB / 1.171 GB, free: 14.48 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 9.962e-05/0.9849, allocations: 326.8 kB / 1.171 GB, free: 14.16 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.736e-05/0.9849, allocations: 27.98 kB / 1.171 GB, free: 14.13 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.866e-05/0.985, allocations: 73.12 kB / 1.171 GB, free: 14.04 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001638/0.9852, allocations: 97.06 kB / 1.172 GB, free: 13.93 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.317e-06/0.9852, allocations: 3.984 kB / 1.172 GB, free: 13.92 MB / 0.9044 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000241/0.9855, allocations: 145.3 kB / 1.172 GB, free: 13.77 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.296e-05/0.9855, allocations: 4 kB / 1.172 GB, free: 13.77 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.9855, allocations: 4 kB / 1.172 GB, free: 13.77 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.302e-05/0.9855, allocations: 0 / 1.172 GB, free: 13.77 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001104/0.9856, allocations: 19.92 kB / 1.172 GB, free: 13.75 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.953e-06/0.9857, allocations: 4 kB / 1.172 GB, free: 13.74 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.93e-05/0.9858, allocations: 19.98 kB / 1.172 GB, free: 13.72 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.292e-05/0.9858, allocations: 4 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.231e-05/0.9859, allocations: 136 kB / 1.172 GB, free: 13.58 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.118e-05/0.9859, allocations: 11.91 kB / 1.172 GB, free: 13.57 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003463/0.9863, allocations: 172 kB / 1.172 GB, free: 13.39 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.841e-06/0.9863, allocations: 4 kB / 1.172 GB, free: 13.39 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.9863, allocations: 0 / 1.172 GB, free: 13.39 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.397e-06/0.9863, allocations: 0 / 1.172 GB, free: 13.39 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005697/0.9869, allocations: 454.3 kB / 1.172 GB, free: 12.89 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.896e-06/0.9869, allocations: 4 kB / 1.172 GB, free: 12.89 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.824e-05/0.987, allocations: 11.94 kB / 1.172 GB, free: 12.88 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.987, allocations: 0 / 1.172 GB, free: 12.88 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.55e-05/0.987, allocations: 11.98 kB / 1.172 GB, free: 12.86 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.979e-06/0.987, allocations: 3.938 kB / 1.172 GB, free: 12.86 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.987, allocations: 3.938 kB / 1.172 GB, free: 12.86 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003085/0.9873, allocations: 256.5 kB / 1.173 GB, free: 12.59 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 4.447e-05/0.9874, allocations: 89.09 kB / 1.173 GB, free: 12.48 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.522e-05/0.9874, allocations: 7.984 kB / 1.173 GB, free: 12.48 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00012/0.9875, allocations: 11.92 kB / 1.173 GB, free: 12.46 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.614e-05/0.9876, allocations: 11.98 kB / 1.173 GB, free: 12.45 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.481e-05/0.9876, allocations: 11.98 kB / 1.173 GB, free: 12.44 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 6.057e-05/0.9877, allocations: 103.3 kB / 1.173 GB, free: 12.34 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.41e-07/0.9877, allocations: 3.938 kB / 1.173 GB, free: 12.34 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0003126/0.988, allocations: 40 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.0007639/0.9888, allocations: 0.8542 MB / 1.174 GB, free: 11.43 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.000246/0.989, allocations: 95.89 kB / 1.174 GB, free: 11.34 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.9891, allocations: 0 / 1.174 GB, free: 11.34 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0001167/0.9892, allocations: 61.41 kB / 1.174 GB, free: 11.28 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002916/0.9895, allocations: 22.27 kB / 1.174 GB, free: 11.26 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001658/0.9911, allocations: 1.679 MB / 1.176 GB, free: 9.473 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002312/0.9914, allocations: 0.7002 MB / 1.176 GB, free: 8.746 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 4.433e-05/0.9914, allocations: 8.562 kB / 1.176 GB, free: 8.738 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.71e-05/0.9915, allocations: 39.41 kB / 1.176 GB, free: 8.699 MB / 0.9044 GB Notification: Performance of SimCode: time 2.7e-07/0.9915, allocations: 3.938 kB / 1.176 GB, free: 8.695 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02009/1.012, allocations: 3.465 MB / 1.18 GB, free: 5.359 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.975/8.986, allocations: 26.16 kB / 1.18 GB, free: 5.34 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light_res.mat --tempDir=temp_Buildings_10_Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 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.mat","/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) "" Variables in the reference:time,lig.ill,lig.occ,lig.pArriv,lig.on Variables in the result:booleanPulse.period,booleanPulse.startTime,booleanPulse.width,booleanPulse.y,ill.amplitude,ill.f,ill.offset,ill.phase,ill.startTime,ill.y,lig.AArriv,lig.AInter,lig.BArriv,lig.BInter,lig.CArriv,lig.CInter,lig.MArriv,lig.MInter,lig.ill,lig.occ,lig.on,lig.pArriv,lig.pInter,lig.samplePeriod,lig.seed,time