Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.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.Windows.Validation.Herkel2008WindowsSmall,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|win.TOut|win.occ|win.p|win.on",fileNamePrefix="Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall") translateModel(Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|win.TOut|win.occ|win.p|win.on",fileNamePrefix="Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001477/0.001477, allocations: 112.6 kB / 16.37 MB, free: 6 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.001618/0.001618, allocations: 196 kB / 17.31 MB, free: 5.613 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.313/1.313, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.419/2.419, allocations: 442.6 MB / 0.7165 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00122/0.00122, allocations: 59.97 kB / 0.8773 GB, free: 10.97 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2813/0.2826, allocations: 153 MB / 1.027 GB, free: 2.051 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall): time 0.003236/0.2858, allocations: 1.505 MB / 1.028 GB, free: 0.5391 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001246/0.2871, allocations: 0.7361 MB / 1.029 GB, free: 15.79 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.76e-05/0.2872, allocations: 0 / 1.029 GB, free: 15.79 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.006e-05/0.2872, allocations: 3.938 kB / 1.029 GB, free: 15.79 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.861e-05/0.2873, allocations: 19.8 kB / 1.029 GB, free: 15.77 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005378/0.2878, allocations: 123.6 kB / 1.029 GB, free: 15.65 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001289/0.288, allocations: 75.66 kB / 1.029 GB, free: 15.58 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 9.012e-05/0.2881, allocations: 12 kB / 1.029 GB, free: 15.57 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 8.839e-05/0.2882, allocations: 39.83 kB / 1.029 GB, free: 15.53 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.637e-05/0.2882, allocations: 31.91 kB / 1.029 GB, free: 15.5 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.73e-05/0.2883, allocations: 7.938 kB / 1.029 GB, free: 15.49 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001857/0.2884, allocations: 95.91 kB / 1.029 GB, free: 15.39 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.764e-05/0.2885, allocations: 15.98 kB / 1.029 GB, free: 15.38 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.951e-05/0.2885, allocations: 39.84 kB / 1.029 GB, free: 15.34 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002267/0.2888, allocations: 139.5 kB / 1.029 GB, free: 15.2 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.2888, allocations: 0 / 1.029 GB, free: 15.2 MB / 0.8106 GB Notification: Performance of FrontEnd: time 4.539e-06/0.2888, allocations: 4 kB / 1.029 GB, free: 15.2 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.021e-06/0.2888, allocations: 3.938 kB / 1.03 GB, free: 15.2 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0006554/0.2895, allocations: 413 kB / 1.03 GB, free: 14.74 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.332e-05/0.2895, allocations: 12.03 kB / 1.03 GB, free: 14.73 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.435e-05/0.2896, allocations: 8.844 kB / 1.03 GB, free: 14.72 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001402/0.2897, allocations: 176.2 kB / 1.03 GB, free: 14.51 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.615e-05/0.2898, allocations: 4.375 kB / 1.03 GB, free: 14.5 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.93e-05/0.2898, allocations: 8.359 kB / 1.03 GB, free: 14.5 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000182/0.29, allocations: 73.97 kB / 1.03 GB, free: 14.42 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.526e-06/0.29, allocations: 3.938 kB / 1.03 GB, free: 14.41 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.18e-05/0.29, allocations: 0 / 1.03 GB, free: 14.41 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.128e-06/0.29, allocations: 0 / 1.03 GB, free: 14.41 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001187/0.2901, allocations: 39.97 kB / 1.03 GB, free: 14.38 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005757/0.2907, allocations: 316.8 kB / 1.031 GB, free: 14.02 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001233/0.2908, allocations: 46.56 kB / 1.031 GB, free: 13.96 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.971e-05/0.2909, allocations: 40.91 kB / 1.031 GB, free: 13.92 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.98e-05/0.291, allocations: 0 / 1.031 GB, free: 13.92 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001657/0.2911, allocations: 75.38 kB / 1.031 GB, free: 13.83 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.323e-06/0.2911, allocations: 4 kB / 1.031 GB, free: 13.83 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0003834/0.2915, allocations: 141.6 kB / 1.031 GB, free: 13.68 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.206e-05/0.2916, allocations: 55.41 kB / 1.031 GB, free: 13.62 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001025/0.2917, allocations: 117.8 kB / 1.031 GB, free: 13.49 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.821e-05/0.2917, allocations: 37.64 kB / 1.031 GB, free: 13.45 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.229e-05/0.2918, allocations: 96.03 kB / 1.031 GB, free: 13.35 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.65e-05/0.2918, allocations: 19.78 kB / 1.031 GB, free: 13.33 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.681e-05/0.2919, allocations: 25.7 kB / 1.031 GB, free: 13.3 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.000136/0.292, allocations: 326.8 kB / 1.031 GB, free: 12.97 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.655e-05/0.2921, allocations: 23.98 kB / 1.031 GB, free: 12.95 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.376e-05/0.2922, allocations: 46.56 kB / 1.032 GB, free: 12.89 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001431/0.2923, allocations: 82.42 kB / 1.032 GB, free: 12.8 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.2923, allocations: 0 / 1.032 GB, free: 12.8 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002305/0.2926, allocations: 113.5 kB / 1.032 GB, free: 12.69 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.409e-05/0.2926, allocations: 4 kB / 1.032 GB, free: 12.68 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.108e-06/0.2926, allocations: 0 / 1.032 GB, free: 12.68 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.467e-05/0.2926, allocations: 8.062 kB / 1.032 GB, free: 12.68 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.054e-05/0.2927, allocations: 11.98 kB / 1.032 GB, free: 12.66 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.262e-06/0.2927, allocations: 0 / 1.032 GB, free: 12.66 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.371e-05/0.2928, allocations: 7.906 kB / 1.032 GB, free: 12.66 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.413e-05/0.2928, allocations: 4 kB / 1.032 GB, free: 12.65 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 9 (win.occ,win.curSeed,$PRE.win.curSeed,win.p,$PRE.win.p,win.on,$PRE.win.on,win.sampleTrigger,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.377e-05/0.2929, allocations: 121.7 kB / 1.032 GB, free: 12.52 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.755e-05/0.2929, allocations: 15.83 kB / 1.032 GB, free: 12.51 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.662e-05/0.293, allocations: 12.38 kB / 1.032 GB, free: 12.5 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.423e-06/0.293, allocations: 0 / 1.032 GB, free: 12.5 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.293, allocations: 4 kB / 1.032 GB, free: 12.49 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.866e-06/0.293, allocations: 0 / 1.032 GB, free: 12.49 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004374/0.2934, allocations: 382.8 kB / 1.032 GB, free: 12.06 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.876e-06/0.2934, allocations: 3.984 kB / 1.032 GB, free: 12.06 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.838e-05/0.2935, allocations: 4 kB / 1.032 GB, free: 12.05 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.058e-06/0.2935, allocations: 3.984 kB / 1.032 GB, free: 12.05 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.014e-05/0.2935, allocations: 0 / 1.032 GB, free: 12.05 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.989e-06/0.2935, allocations: 8.016 kB / 1.032 GB, free: 12.04 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.987e-06/0.2935, allocations: 11.86 kB / 1.032 GB, free: 12.03 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002954/0.2938, allocations: 211.4 kB / 1.032 GB, free: 11.81 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.676e-05/0.2939, allocations: 81.09 kB / 1.033 GB, free: 11.71 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.128e-05/0.2939, allocations: 8 kB / 1.033 GB, free: 11.7 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.497e-05/0.294, allocations: 0 / 1.033 GB, free: 11.7 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.826e-05/0.294, allocations: 11.92 kB / 1.033 GB, free: 11.69 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.083e-05/0.2941, allocations: 8 kB / 1.033 GB, free: 11.68 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 5.615e-05/0.2941, allocations: 95.27 kB / 1.033 GB, free: 11.59 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2941, allocations: 0 / 1.033 GB, free: 11.59 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.000285/0.2944, allocations: 35.91 kB / 1.033 GB, free: 11.55 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: 6 (win.sampleTrigger,$whenCondition1,win.occ,win.on,win.p,win.curSeed) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * 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.0003072/0.2947, allocations: 159.5 kB / 1.033 GB, free: 11.41 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002372/0.295, allocations: 79.89 kB / 1.033 GB, free: 11.33 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.295, allocations: 0 / 1.033 GB, free: 11.33 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 9.325e-05/0.2951, allocations: 35.92 kB / 1.033 GB, free: 11.29 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002457/0.2953, allocations: 7.984 kB / 1.033 GB, free: 11.29 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004083/0.2958, allocations: 168.5 kB / 1.033 GB, free: 11.09 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002787/0.2961, allocations: 0.6925 MB / 1.034 GB, free: 10.37 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 3.3e-05/0.2961, allocations: 4 kB / 1.034 GB, free: 10.36 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.6e-05/0.2961, allocations: 15.42 kB / 1.034 GB, free: 10.35 MB / 0.8106 GB Notification: Performance of SimCode: time 2.2e-07/0.2961, allocations: 0 / 1.034 GB, free: 10.35 MB / 0.8106 GB Notification: Performance of Templates: time 0.003871/0.3, allocations: 1.455 MB / 1.035 GB, free: 8.902 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.makefile (rm -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.sim & ./Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Windows_Validation_Herkel2008WindowsSmall.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,win.TOut,win.occ,win.p,win.on Variables in the result:TOut.amplitude,TOut.f,TOut.offset,TOut.phase,TOut.startTime,occ.startTime,occ.startValue,time,win.A,win.B,win.TOut,win.occ,win.on,win.p,win.samplePeriod,win.seed,win.t0