Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light,fileNamePrefix="Buildings_latest_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.000918/0.0009181, allocations: 97.64 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.007084/0.007084, allocations: 170.1 kB / 16.27 MB, free: 6.66 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.254/1.254, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.516/2.516, allocations: 462.6 MB / 0.7364 GB, free: 15.54 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003093/0.0003094, allocations: 16.83 kB / 0.9029 GB, free: 36.35 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2503/0.2506, allocations: 159.6 MB / 1.059 GB, free: 4.84 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light): time 0.001489/0.2521, allocations: 1.272 MB / 1.06 GB, free: 3.559 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001112/0.2532, allocations: 0.7597 MB / 1.061 GB, free: 2.793 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.087e-05/0.2533, allocations: 0 / 1.061 GB, free: 2.793 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.718e-05/0.2533, allocations: 3.938 kB / 1.061 GB, free: 2.789 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 8.586e-05/0.2534, allocations: 15.86 kB / 1.061 GB, free: 2.773 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003946/0.2538, allocations: 119.7 kB / 1.061 GB, free: 2.656 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.00011/0.2539, allocations: 95.64 kB / 1.061 GB, free: 2.562 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 7.577e-05/0.254, allocations: 4 kB / 1.061 GB, free: 2.559 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 8.744e-05/0.2541, allocations: 51.83 kB / 1.061 GB, free: 2.508 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 7.295e-05/0.2542, allocations: 43.77 kB / 1.061 GB, free: 2.465 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.59e-05/0.2542, allocations: 4 kB / 1.061 GB, free: 2.461 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001537/0.2544, allocations: 83.91 kB / 1.061 GB, free: 2.379 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.553e-05/0.2544, allocations: 23.92 kB / 1.061 GB, free: 2.355 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.892e-05/0.2545, allocations: 61.48 kB / 1.061 GB, free: 2.289 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001952/0.2547, allocations: 163.7 kB / 1.061 GB, free: 2.129 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 2.334e-06/0.2547, allocations: 0 / 1.061 GB, free: 2.129 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.002e-06/0.2547, allocations: 0 / 1.061 GB, free: 2.129 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.122e-06/0.2547, allocations: 4 kB / 1.061 GB, free: 2.125 MB / 0.8106 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.0006487/0.2553, allocations: 0.4885 MB / 1.062 GB, free: 1.57 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.512e-05/0.2554, allocations: 11.97 kB / 1.062 GB, free: 1.559 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.542e-05/0.2554, allocations: 34.75 kB / 1.062 GB, free: 1.516 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.991e-05/0.2555, allocations: 8.844 kB / 1.062 GB, free: 1.508 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001204/0.2556, allocations: 192.1 kB / 1.062 GB, free: 1.281 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.259e-05/0.2556, allocations: 384 / 1.062 GB, free: 1.281 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.834e-05/0.2556, allocations: 4.375 kB / 1.062 GB, free: 1.277 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001788/0.2558, allocations: 89.7 kB / 1.062 GB, free: 1.184 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.853e-06/0.2558, allocations: 4 kB / 1.062 GB, free: 1.18 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.194e-05/0.2559, allocations: 4 kB / 1.062 GB, free: 1.176 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.037e-06/0.2559, allocations: 0 / 1.062 GB, free: 1.176 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000149/0.256, allocations: 51.95 kB / 1.062 GB, free: 1.125 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004791/0.2565, allocations: 344.6 kB / 1.063 GB, free: 0.7383 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001981/0.2567, allocations: 82.66 kB / 1.063 GB, free: 0.6484 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.601e-05/0.2568, allocations: 36.84 kB / 1.063 GB, free: 0.6094 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.94e-05/0.2568, allocations: 4 kB / 1.063 GB, free: 0.6055 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001929/0.257, allocations: 99.34 kB / 1.063 GB, free: 0.4961 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=11): time 1.533e-06/0.257, allocations: 0 / 1.063 GB, free: 0.4961 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11): time 0.0003977/0.2574, allocations: 185.5 kB / 1.063 GB, free: 316 kB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.699e-05/0.2575, allocations: 55.41 kB / 1.063 GB, free: 248 kB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001017/0.2576, allocations: 140.3 kB / 1.063 GB, free: 100 kB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.808e-05/0.2576, allocations: 33.7 kB / 1.063 GB, free: 60 kB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.283e-05/0.2577, allocations: 104 kB / 1.063 GB, free: 15.95 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.448e-05/0.2577, allocations: 23.66 kB / 1.063 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.235e-05/0.2578, allocations: 21.7 kB / 1.063 GB, free: 15.9 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.181e-05/0.2579, allocations: 330.8 kB / 1.064 GB, free: 15.57 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.783e-05/0.2579, allocations: 27.98 kB / 1.064 GB, free: 15.54 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001018/0.2581, allocations: 75.66 kB / 1.064 GB, free: 15.45 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001744/0.2582, allocations: 121 kB / 1.064 GB, free: 15.32 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.2582, allocations: 0 / 1.064 GB, free: 15.32 MB / 0.8262 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002422/0.2585, allocations: 141.3 kB / 1.064 GB, free: 15.17 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.211e-05/0.2585, allocations: 8 kB / 1.064 GB, free: 15.16 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.987e-06/0.2585, allocations: 0 / 1.064 GB, free: 15.16 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.037e-06/0.2585, allocations: 0 / 1.064 GB, free: 15.16 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001012/0.2586, allocations: 19.98 kB / 1.064 GB, free: 15.14 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.534e-06/0.2587, allocations: 8.031 kB / 1.064 GB, free: 15.14 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001027/0.2588, allocations: 23.92 kB / 1.064 GB, free: 15.11 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.282e-05/0.2588, allocations: 8 kB / 1.064 GB, free: 15.11 MB / 0.8262 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 8.657e-05/0.2589, allocations: 121.8 kB / 1.064 GB, free: 14.98 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.879e-05/0.2589, allocations: 11.89 kB / 1.064 GB, free: 14.96 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003446/0.2593, allocations: 170.3 kB / 1.064 GB, free: 14.79 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.2593, allocations: 4 kB / 1.064 GB, free: 14.79 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.2593, allocations: 3.984 kB / 1.064 GB, free: 14.79 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.2593, allocations: 0 / 1.064 GB, free: 14.79 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005678/0.2599, allocations: 486.1 kB / 1.065 GB, free: 14.25 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.2599, allocations: 0 / 1.065 GB, free: 14.25 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.822e-05/0.26, allocations: 15.98 kB / 1.065 GB, free: 14.24 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.854e-06/0.26, allocations: 0 / 1.065 GB, free: 14.24 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.06e-05/0.26, allocations: 0 / 1.065 GB, free: 14.24 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.116e-06/0.26, allocations: 3.938 kB / 1.065 GB, free: 14.23 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.26, allocations: 4 kB / 1.065 GB, free: 14.23 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003/0.2603, allocations: 254.2 kB / 1.065 GB, free: 13.97 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.122e-05/0.2603, allocations: 89.02 kB / 1.065 GB, free: 13.86 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.253e-05/0.2604, allocations: 3.984 kB / 1.065 GB, free: 13.86 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001248/0.2605, allocations: 12.08 kB / 1.065 GB, free: 13.85 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.238e-05/0.2606, allocations: 27.89 kB / 1.065 GB, free: 13.82 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.496e-05/0.2606, allocations: 4 kB / 1.065 GB, free: 13.82 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.865e-05/0.2606, allocations: 105.3 kB / 1.065 GB, free: 13.71 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2606, allocations: 4 kB / 1.065 GB, free: 13.71 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002826/0.2609, allocations: 43.98 kB / 1.065 GB, free: 13.67 MB / 0.8262 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.0007148/0.2617, allocations: 0.8374 MB / 1.066 GB, free: 12.82 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002326/0.2619, allocations: 103.8 kB / 1.066 GB, free: 12.72 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.2619, allocations: 0 / 1.066 GB, free: 12.72 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001164/0.262, allocations: 60.16 kB / 1.066 GB, free: 12.66 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002865/0.2623, allocations: 27.86 kB / 1.066 GB, free: 12.63 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001587/0.2639, allocations: 1.712 MB / 1.068 GB, free: 10.81 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002184/0.2641, allocations: 0.7002 MB / 1.069 GB, free: 10.08 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.779e-05/0.2642, allocations: 16.55 kB / 1.069 GB, free: 10.07 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.039e-05/0.2643, allocations: 31.42 kB / 1.069 GB, free: 10.04 MB / 0.8262 GB Notification: Performance of SimCode: time 2.41e-07/0.2643, allocations: 0 / 1.069 GB, free: 10.04 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01929/0.2836, allocations: 3.088 MB / 1.072 GB, free: 7.129 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001889/0.2838, allocations: 263.6 kB / 1.072 GB, free: 6.793 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.635/1.919, allocations: 0 / 1.072 GB, free: 6.793 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light_res.mat --tempDir=temp_Buildings_latest_Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light.fmu > Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Lighting_Validation_Reinhart2003Light.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches