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: translateModel(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|lig.ill|lig.occ|lig.pArriv|lig.on",fileNamePrefix="Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light") translateModel(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|lig.ill|lig.occ|lig.pArriv|lig.on",fileNamePrefix="Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001904/0.001904, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001894/0.001894, allocations: 196 kB / 16.79 MB, free: 6.809 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.375/1.375, allocations: 222.9 MB / 240.5 MB, free: 4.602 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.646/2.646, allocations: 461.8 MB / 0.7348 GB, free: 14.14 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00127/0.001271, allocations: 67 kB / 0.899 GB, free: 36.93 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2499/0.2512, allocations: 157.4 MB / 1.053 GB, free: 8.262 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light): time 0.00275/0.254, allocations: 1.599 MB / 1.054 GB, free: 6.648 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.00137/0.2553, allocations: 0.779 MB / 1.055 GB, free: 5.863 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.766e-05/0.2554, allocations: 0 / 1.055 GB, free: 5.863 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.574e-05/0.2555, allocations: 3.938 kB / 1.055 GB, free: 5.859 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 9.108e-05/0.2556, allocations: 11.86 kB / 1.055 GB, free: 5.848 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004737/0.2561, allocations: 111.8 kB / 1.055 GB, free: 5.738 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001237/0.2562, allocations: 95.64 kB / 1.055 GB, free: 5.645 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 9.254e-05/0.2563, allocations: 15.98 kB / 1.055 GB, free: 5.629 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001046/0.2564, allocations: 39.84 kB / 1.055 GB, free: 5.59 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 8.311e-05/0.2565, allocations: 47.81 kB / 1.055 GB, free: 5.543 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.938e-05/0.2565, allocations: 7.938 kB / 1.055 GB, free: 5.535 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000187/0.2567, allocations: 91.91 kB / 1.055 GB, free: 5.445 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.895e-05/0.2568, allocations: 15.92 kB / 1.055 GB, free: 5.43 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.568e-05/0.2568, allocations: 39.8 kB / 1.056 GB, free: 5.391 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001853/0.257, allocations: 124 kB / 1.056 GB, free: 5.27 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.416e-06/0.257, allocations: 0 / 1.056 GB, free: 5.27 MB / 0.8106 GB Notification: Performance of FrontEnd: time 7.61e-07/0.257, allocations: 0 / 1.056 GB, free: 5.27 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.587e-06/0.2571, allocations: 0 / 1.056 GB, free: 5.27 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.0007551/0.2578, allocations: 0.4924 MB / 1.056 GB, free: 4.711 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.315e-05/0.2579, allocations: 11.97 kB / 1.056 GB, free: 4.699 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.073e-05/0.2579, allocations: 20.75 kB / 1.056 GB, free: 4.68 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001279/0.258, allocations: 180.2 kB / 1.056 GB, free: 4.465 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.565e-05/0.2581, allocations: 16.36 kB / 1.056 GB, free: 4.449 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.085e-05/0.2581, allocations: 8.359 kB / 1.056 GB, free: 4.441 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001946/0.2583, allocations: 81.95 kB / 1.056 GB, free: 4.355 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.905e-06/0.2583, allocations: 0 / 1.056 GB, free: 4.355 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.568e-05/0.2583, allocations: 4 kB / 1.056 GB, free: 4.352 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.968e-06/0.2583, allocations: 0 / 1.056 GB, free: 4.352 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001543/0.2585, allocations: 51.91 kB / 1.056 GB, free: 4.301 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005439/0.259, allocations: 332.7 kB / 1.057 GB, free: 3.926 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002205/0.2593, allocations: 78.7 kB / 1.057 GB, free: 3.84 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.282e-05/0.2594, allocations: 44.83 kB / 1.057 GB, free: 3.793 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.036e-05/0.2594, allocations: 3.938 kB / 1.057 GB, free: 3.789 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002015/0.2596, allocations: 103.3 kB / 1.057 GB, free: 3.676 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=11): time 1.983e-06/0.2596, allocations: 0 / 1.057 GB, free: 3.676 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11): time 0.0004323/0.2601, allocations: 169.5 kB / 1.057 GB, free: 3.504 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.748e-05/0.2601, allocations: 63.39 kB / 1.057 GB, free: 3.43 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001142/0.2602, allocations: 136.4 kB / 1.057 GB, free: 3.289 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.18e-05/0.2603, allocations: 33.7 kB / 1.057 GB, free: 3.25 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.042e-05/0.2603, allocations: 108 kB / 1.058 GB, free: 3.141 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.652e-05/0.2604, allocations: 23.66 kB / 1.058 GB, free: 3.117 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.514e-05/0.2604, allocations: 29.7 kB / 1.058 GB, free: 3.082 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.673e-05/0.2605, allocations: 326.8 kB / 1.058 GB, free: 2.754 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.603e-05/0.2606, allocations: 31.97 kB / 1.058 GB, free: 2.723 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000105/0.2607, allocations: 70.83 kB / 1.058 GB, free: 2.637 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001745/0.2609, allocations: 109 kB / 1.058 GB, free: 2.512 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.2609, allocations: 0 / 1.058 GB, free: 2.512 MB / 0.8106 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002597/0.2612, allocations: 137.6 kB / 1.058 GB, free: 2.371 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.534e-05/0.2612, allocations: 13.5 kB / 1.058 GB, free: 2.359 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.2612, allocations: 0 / 1.058 GB, free: 2.359 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.386e-05/0.2613, allocations: 4 kB / 1.058 GB, free: 2.355 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001152/0.2614, allocations: 19.98 kB / 1.058 GB, free: 2.336 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.714e-06/0.2614, allocations: 3.984 kB / 1.058 GB, free: 2.332 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001065/0.2615, allocations: 15.84 kB / 1.058 GB, free: 2.316 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.465e-05/0.2615, allocations: 7.984 kB / 1.058 GB, free: 2.309 MB / 0.8106 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.816e-05/0.2616, allocations: 133.8 kB / 1.058 GB, free: 2.168 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.292e-05/0.2617, allocations: 7.906 kB / 1.058 GB, free: 2.16 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003582/0.262, allocations: 166.3 kB / 1.059 GB, free: 1.992 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.637e-06/0.262, allocations: 4 kB / 1.059 GB, free: 1.988 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.262, allocations: 0 / 1.059 GB, free: 1.988 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.006e-06/0.2621, allocations: 0 / 1.059 GB, free: 1.988 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006241/0.2627, allocations: 473.3 kB / 1.059 GB, free: 1.473 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.2627, allocations: 0 / 1.059 GB, free: 1.473 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.088e-05/0.2628, allocations: 19.98 kB / 1.059 GB, free: 1.453 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.2628, allocations: 3.938 kB / 1.059 GB, free: 1.449 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.385e-05/0.2628, allocations: 0 / 1.059 GB, free: 1.449 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.787e-06/0.2628, allocations: 4 kB / 1.059 GB, free: 1.445 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.2628, allocations: 7.938 kB / 1.059 GB, free: 1.438 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003166/0.2632, allocations: 243.4 kB / 1.059 GB, free: 1.184 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.009e-05/0.2632, allocations: 88.92 kB / 1.059 GB, free: 1.078 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.9e-05/0.2632, allocations: 8 kB / 1.059 GB, free: 1.07 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001289/0.2634, allocations: 7.984 kB / 1.059 GB, free: 1.062 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.268e-05/0.2634, allocations: 11.92 kB / 1.059 GB, free: 1.051 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.86e-05/0.2635, allocations: 8 kB / 1.059 GB, free: 1.043 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 6.642e-05/0.2635, allocations: 112.6 kB / 1.06 GB, free: 0.9336 MB / 0.8106 GB Notification: Performance of sort global known variables: time 2.8e-07/0.2635, allocations: 0 / 1.06 GB, free: 0.9336 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.000323/0.2639, allocations: 44 kB / 1.06 GB, free: 0.8906 MB / 0.8106 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.0003315/0.2642, allocations: 169.6 kB / 1.06 GB, free: 0.7305 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002794/0.2645, allocations: 103.9 kB / 1.06 GB, free: 0.6289 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.2645, allocations: 0 / 1.06 GB, free: 0.6289 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001305/0.2646, allocations: 58.23 kB / 1.06 GB, free: 0.5742 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003137/0.265, allocations: 19.98 kB / 1.06 GB, free: 0.5547 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005076/0.2655, allocations: 283.3 kB / 1.06 GB, free: 252 kB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000239/0.2657, allocations: 0.7004 MB / 1.061 GB, free: 15.52 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.797e-05/0.2658, allocations: 15.44 kB / 1.061 GB, free: 15.5 MB / 0.8262 GB Notification: Performance of SimCode: time 3.61e-07/0.2658, allocations: 0 / 1.061 GB, free: 15.5 MB / 0.8262 GB Notification: Performance of Templates: time 0.003811/0.2696, allocations: 1.996 MB / 1.063 GB, free: 13.51 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light.makefile (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 & ./Buildings_latest_Buildings.Occupants.Office.Lighting.Validation.Reinhart2003Light -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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