Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.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.Zhang2012WindowsNorth,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.Zhang2012WindowsNorth") translateModel(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth,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.Zhang2012WindowsNorth") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001097/0.001097, allocations: 105.6 kB / 16.35 MB, free: 5.824 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.001134/0.001134, allocations: 190.5 kB / 17.29 MB, free: 5.48 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.369/1.369, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.533/2.533, allocations: 442.6 MB / 0.7165 GB, free: 14.63 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00175/0.001751, allocations: 72.31 kB / 0.8773 GB, free: 10.95 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2778/0.2796, allocations: 153 MB / 1.027 GB, free: 2.035 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth): time 0.002869/0.2825, allocations: 1.519 MB / 1.028 GB, free: 0.5117 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001235/0.2838, allocations: 0.7399 MB / 1.029 GB, free: 15.77 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.547e-05/0.2838, allocations: 0 / 1.029 GB, free: 15.77 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.93e-05/0.2839, allocations: 3.938 kB / 1.029 GB, free: 15.76 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.159e-05/0.284, allocations: 11.86 kB / 1.029 GB, free: 15.75 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.000552/0.2845, allocations: 123.6 kB / 1.029 GB, free: 15.63 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001159/0.2847, allocations: 75.81 kB / 1.029 GB, free: 15.55 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001051/0.2848, allocations: 12 kB / 1.029 GB, free: 15.54 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 9.026e-05/0.2849, allocations: 35.84 kB / 1.029 GB, free: 15.51 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.159e-05/0.2849, allocations: 39.83 kB / 1.029 GB, free: 15.47 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.936e-05/0.285, allocations: 8 kB / 1.029 GB, free: 15.46 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001875/0.2852, allocations: 95.91 kB / 1.029 GB, free: 15.37 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.988e-05/0.2852, allocations: 15.92 kB / 1.029 GB, free: 15.35 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.157e-05/0.2852, allocations: 27.86 kB / 1.029 GB, free: 15.32 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002333/0.2855, allocations: 143.5 kB / 1.029 GB, free: 15.18 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.141e-06/0.2855, allocations: 4 kB / 1.029 GB, free: 15.18 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.084e-06/0.2855, allocations: 4 kB / 1.029 GB, free: 15.18 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.56e-06/0.2855, allocations: 0 / 1.029 GB, free: 15.18 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.0006068/0.2861, allocations: 421 kB / 1.03 GB, free: 14.71 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.192e-05/0.2862, allocations: 8.031 kB / 1.03 GB, free: 14.7 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.14e-05/0.2862, allocations: 8.844 kB / 1.03 GB, free: 14.7 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001072/0.2863, allocations: 176.2 kB / 1.03 GB, free: 14.48 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.424e-05/0.2864, allocations: 8.312 kB / 1.03 GB, free: 14.48 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.012e-05/0.2864, allocations: 8.375 kB / 1.03 GB, free: 14.47 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001751/0.2866, allocations: 69.97 kB / 1.03 GB, free: 14.39 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.115e-06/0.2866, allocations: 3.938 kB / 1.03 GB, free: 14.39 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.101e-05/0.2866, allocations: 0 / 1.03 GB, free: 14.39 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.931e-06/0.2866, allocations: 4 kB / 1.03 GB, free: 14.39 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001243/0.2867, allocations: 39.91 kB / 1.03 GB, free: 14.35 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005569/0.2873, allocations: 312.8 kB / 1.03 GB, free: 13.99 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001225/0.2874, allocations: 50.55 kB / 1.031 GB, free: 13.93 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.042e-05/0.2875, allocations: 36.95 kB / 1.031 GB, free: 13.89 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.165e-05/0.2876, allocations: 12.02 kB / 1.031 GB, free: 13.88 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001651/0.2877, allocations: 75.36 kB / 1.031 GB, free: 13.8 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.472e-06/0.2877, allocations: 4 kB / 1.031 GB, free: 13.79 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0003679/0.2881, allocations: 137.5 kB / 1.031 GB, free: 13.65 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.399e-05/0.2882, allocations: 51.41 kB / 1.031 GB, free: 13.59 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.154e-05/0.2883, allocations: 117.8 kB / 1.031 GB, free: 13.46 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.787e-05/0.2883, allocations: 29.69 kB / 1.031 GB, free: 13.43 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.361e-05/0.2883, allocations: 99.98 kB / 1.031 GB, free: 13.33 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.733e-05/0.2884, allocations: 11.84 kB / 1.031 GB, free: 13.32 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.962e-05/0.2884, allocations: 33.7 kB / 1.031 GB, free: 13.28 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.228e-05/0.2885, allocations: 322.8 kB / 1.031 GB, free: 12.95 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.816e-05/0.2886, allocations: 23.98 kB / 1.031 GB, free: 12.93 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001003/0.2887, allocations: 50.55 kB / 1.032 GB, free: 12.87 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001569/0.2889, allocations: 74.86 kB / 1.032 GB, free: 12.79 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.887e-06/0.2889, allocations: 3.938 kB / 1.032 GB, free: 12.79 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002248/0.2891, allocations: 117.4 kB / 1.032 GB, free: 12.66 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.441e-05/0.2891, allocations: 4 kB / 1.032 GB, free: 12.66 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.09e-06/0.2891, allocations: 4 kB / 1.032 GB, free: 12.66 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.189e-05/0.2892, allocations: 0 / 1.032 GB, free: 12.66 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.396e-05/0.2893, allocations: 11.98 kB / 1.032 GB, free: 12.64 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.119e-06/0.2893, allocations: 4.062 kB / 1.032 GB, free: 12.64 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.945e-05/0.2894, allocations: 11.91 kB / 1.032 GB, free: 12.63 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.102e-05/0.2894, allocations: 4 kB / 1.032 GB, free: 12.62 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 8.242e-05/0.2895, allocations: 125.7 kB / 1.032 GB, free: 12.49 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.736e-05/0.2895, allocations: 7.906 kB / 1.032 GB, free: 12.48 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.675e-05/0.2895, allocations: 16.31 kB / 1.032 GB, free: 12.47 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.2895, allocations: 0 / 1.032 GB, free: 12.47 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.417e-06/0.2895, allocations: 0 / 1.032 GB, free: 12.47 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.886e-06/0.2895, allocations: 4 kB / 1.032 GB, free: 12.46 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004183/0.29, allocations: 382.4 kB / 1.032 GB, free: 12.04 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.447e-06/0.29, allocations: 4 kB / 1.032 GB, free: 12.03 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.177e-05/0.29, allocations: 7.984 kB / 1.032 GB, free: 12.02 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.29, allocations: 0 / 1.032 GB, free: 12.02 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.305e-05/0.29, allocations: 4 kB / 1.032 GB, free: 12.02 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.046e-06/0.2901, allocations: 0 / 1.032 GB, free: 12.02 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.396e-06/0.2901, allocations: 7.875 kB / 1.032 GB, free: 12.01 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002609/0.2903, allocations: 207.4 kB / 1.032 GB, free: 11.79 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.493e-05/0.2904, allocations: 81.11 kB / 1.033 GB, free: 11.7 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.864e-05/0.2904, allocations: 7.938 kB / 1.033 GB, free: 11.69 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.901e-05/0.2905, allocations: 4 kB / 1.033 GB, free: 11.68 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.501e-05/0.2905, allocations: 11.92 kB / 1.033 GB, free: 11.67 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.185e-06/0.2906, allocations: 0 / 1.033 GB, free: 11.67 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.787e-05/0.2906, allocations: 91.27 kB / 1.033 GB, free: 11.58 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2906, allocations: 4 kB / 1.033 GB, free: 11.58 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002994/0.2909, allocations: 51.83 kB / 1.033 GB, free: 11.53 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.0003076/0.2912, allocations: 159.3 kB / 1.033 GB, free: 11.38 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002232/0.2915, allocations: 67.97 kB / 1.033 GB, free: 11.31 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.2915, allocations: 4.062 kB / 1.033 GB, free: 11.31 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 9.776e-05/0.2916, allocations: 43.89 kB / 1.033 GB, free: 11.27 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002487/0.2918, allocations: 4 kB / 1.033 GB, free: 11.26 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003768/0.2922, allocations: 173 kB / 1.033 GB, free: 11.06 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002152/0.2925, allocations: 0.6885 MB / 1.034 GB, free: 10.34 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 3.834e-05/0.2925, allocations: 11.98 kB / 1.034 GB, free: 10.33 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.881e-05/0.2925, allocations: 7.438 kB / 1.034 GB, free: 10.33 MB / 0.8106 GB Notification: Performance of SimCode: time 3.51e-07/0.2926, allocations: 3.938 kB / 1.034 GB, free: 10.32 MB / 0.8106 GB Notification: Performance of Templates: time 0.003831/0.2964, allocations: 1.457 MB / 1.035 GB, free: 8.875 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.makefile (rm -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.sim & ./Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsNorth.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.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