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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.0008612/0.0008612, allocations: 98.19 kB / 15.36 MB, free: 0.7344 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.005291/0.005291, allocations: 168.7 kB / 16.26 MB, free: 6.652 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: 223.3 MB / 240.3 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.341/2.341, allocations: 437.8 MB / 0.7121 GB, free: 7.039 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.000337/0.000337, allocations: 8 kB / 0.8729 GB, free: 3.227 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5546/0.5549, allocations: 153.8 MB / 1.023 GB, free: 15.85 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light): time 0.001492/0.5565, allocations: 1.254 MB / 1.024 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001194/0.5577, allocations: 0.7635 MB / 1.025 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.255e-05/0.5578, allocations: 0 / 1.025 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.758e-05/0.5578, allocations: 7.938 kB / 1.025 GB, free: 13.81 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 8.642e-05/0.5579, allocations: 15.86 kB / 1.025 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.000434/0.5583, allocations: 107.8 kB / 1.025 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.000115/0.5584, allocations: 91.69 kB / 1.025 GB, free: 13.6 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 7.734e-05/0.5585, allocations: 15.98 kB / 1.025 GB, free: 13.58 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 9.333e-05/0.5586, allocations: 35.8 kB / 1.025 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 7.774e-05/0.5587, allocations: 51.81 kB / 1.025 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.621e-05/0.5587, allocations: 4 kB / 1.025 GB, free: 13.49 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001746/0.5589, allocations: 91.84 kB / 1.026 GB, free: 13.4 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.491e-05/0.559, allocations: 15.92 kB / 1.026 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 5.817e-05/0.559, allocations: 69.47 kB / 1.026 GB, free: 13.31 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002101/0.5592, allocations: 153.8 kB / 1.026 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.5592, allocations: 0 / 1.026 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.543e-06/0.5593, allocations: 0 / 1.026 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.088e-06/0.5593, allocations: 0 / 1.026 GB, free: 13.16 MB / 0.7794 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.0006532/0.5599, allocations: 496.3 kB / 1.026 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.383e-05/0.56, allocations: 8.031 kB / 1.026 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.901e-05/0.56, allocations: 38.75 kB / 1.026 GB, free: 12.56 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.286e-05/0.56, allocations: 12.75 kB / 1.026 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001214/0.5602, allocations: 190.2 kB / 1.026 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.449e-05/0.5602, allocations: 384 / 1.026 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.946e-05/0.5602, allocations: 16.31 kB / 1.026 GB, free: 12.31 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001739/0.5604, allocations: 85.7 kB / 1.027 GB, free: 12.22 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.902e-06/0.5604, allocations: 0 / 1.027 GB, free: 12.22 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.485e-05/0.5604, allocations: 8 kB / 1.027 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.777e-06/0.5604, allocations: 0 / 1.027 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001418/0.5606, allocations: 55.89 kB / 1.027 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004985/0.5611, allocations: 344.6 kB / 1.027 GB, free: 11.77 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001904/0.5613, allocations: 78.67 kB / 1.027 GB, free: 11.68 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.865e-05/0.5614, allocations: 48.88 kB / 1.027 GB, free: 11.63 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.923e-05/0.5614, allocations: 4 kB / 1.027 GB, free: 11.63 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001995/0.5616, allocations: 99.34 kB / 1.027 GB, free: 11.52 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=11): time 1.423e-06/0.5616, allocations: 0 / 1.027 GB, free: 11.52 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11): time 0.0003883/0.562, allocations: 181.5 kB / 1.027 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.099e-05/0.5621, allocations: 51.41 kB / 1.027 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.857e-05/0.5622, allocations: 155.2 kB / 1.028 GB, free: 11.11 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.663e-05/0.5622, allocations: 25.7 kB / 1.028 GB, free: 11.08 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.888e-05/0.5623, allocations: 96.14 kB / 1.028 GB, free: 10.98 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.69e-05/0.5623, allocations: 31.62 kB / 1.028 GB, free: 10.95 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.067e-05/0.5623, allocations: 17.72 kB / 1.028 GB, free: 10.93 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001032/0.5624, allocations: 326.8 kB / 1.028 GB, free: 10.6 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.984e-05/0.5625, allocations: 31.98 kB / 1.028 GB, free: 10.57 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.486e-05/0.5626, allocations: 75.66 kB / 1.028 GB, free: 10.48 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001746/0.5628, allocations: 109 kB / 1.028 GB, free: 10.36 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/0.5628, allocations: 4 kB / 1.028 GB, free: 10.35 MB / 0.7794 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002382/0.5631, allocations: 137.4 kB / 1.028 GB, free: 10.21 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.187e-05/0.5631, allocations: 8.094 kB / 1.028 GB, free: 10.2 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.561e-06/0.5631, allocations: 4 kB / 1.028 GB, free: 10.2 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.789e-06/0.5631, allocations: 0 / 1.028 GB, free: 10.2 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001014/0.5632, allocations: 23.92 kB / 1.028 GB, free: 10.18 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.655e-06/0.5632, allocations: 3.984 kB / 1.028 GB, free: 10.17 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001019/0.5633, allocations: 19.91 kB / 1.028 GB, free: 10.15 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.141e-05/0.5633, allocations: 4 kB / 1.028 GB, free: 10.15 MB / 0.7794 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.334e-05/0.5634, allocations: 138.2 kB / 1.029 GB, free: 10 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.878e-05/0.5635, allocations: 11.91 kB / 1.029 GB, free: 9.992 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003347/0.5638, allocations: 170.3 kB / 1.029 GB, free: 9.816 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.897e-06/0.5638, allocations: 4 kB / 1.029 GB, free: 9.812 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.5638, allocations: 0 / 1.029 GB, free: 9.812 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.367e-06/0.5638, allocations: 3.938 kB / 1.029 GB, free: 9.809 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005726/0.5644, allocations: 470.2 kB / 1.029 GB, free: 9.293 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.577e-06/0.5644, allocations: 7.938 kB / 1.029 GB, free: 9.285 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.578e-05/0.5645, allocations: 11.98 kB / 1.029 GB, free: 9.273 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.328e-06/0.5645, allocations: 4 kB / 1.029 GB, free: 9.27 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.341e-05/0.5645, allocations: 4 kB / 1.029 GB, free: 9.266 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.875e-06/0.5646, allocations: 3.938 kB / 1.029 GB, free: 9.262 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.5646, allocations: 4 kB / 1.029 GB, free: 9.258 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003124/0.5649, allocations: 251.3 kB / 1.029 GB, free: 8.996 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.477e-05/0.5649, allocations: 92.86 kB / 1.03 GB, free: 8.887 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.129e-05/0.565, allocations: 0 / 1.03 GB, free: 8.887 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001245/0.5651, allocations: 23.92 kB / 1.03 GB, free: 8.863 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.628e-05/0.5651, allocations: 11.98 kB / 1.03 GB, free: 8.852 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.556e-05/0.5652, allocations: 4.141 kB / 1.03 GB, free: 8.848 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 6.75e-05/0.5652, allocations: 109 kB / 1.03 GB, free: 8.742 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5652, allocations: 0 / 1.03 GB, free: 8.742 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003028/0.5655, allocations: 44 kB / 1.03 GB, free: 8.699 MB / 0.7794 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.0007641/0.5663, allocations: 0.846 MB / 1.031 GB, free: 7.844 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002382/0.5666, allocations: 103.9 kB / 1.031 GB, free: 7.742 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.5666, allocations: 0 / 1.031 GB, free: 7.742 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001165/0.5667, allocations: 63.86 kB / 1.031 GB, free: 7.68 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002871/0.567, allocations: 23.78 kB / 1.031 GB, free: 7.656 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001621/0.5686, allocations: 1.723 MB / 1.032 GB, free: 5.82 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002196/0.5689, allocations: 0.7002 MB / 1.033 GB, free: 5.094 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 4.889e-05/0.5689, allocations: 12.55 kB / 1.033 GB, free: 5.082 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.912e-05/0.569, allocations: 31.42 kB / 1.033 GB, free: 5.055 MB / 0.7794 GB Notification: Performance of SimCode: time 2.3e-07/0.569, allocations: 0 / 1.033 GB, free: 5.055 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.545/3.114, allocations: 3.08 MB / 1.036 GB, free: 2.133 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002292/3.114, allocations: 267.8 kB / 1.036 GB, free: 1.875 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.816/4.93, allocations: 0 / 1.036 GB, free: 1.875 MB / 0.7794 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) Reference file matches