Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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: 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_10_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_10_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.001519/0.001518, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001891/0.001891, allocations: 193.7 kB / 16.25 MB, free: 6.629 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.394/1.394, allocations: 222.9 MB / 239.9 MB, free: 4.508 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.609/2.609, allocations: 437 MB / 0.71 GB, free: 5.32 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001185/0.001185, allocations: 67.89 kB / 0.8687 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7811/0.7823, allocations: 151.6 MB / 1.017 GB, free: 2.895 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth): time 0.003327/0.7857, allocations: 1.568 MB / 1.018 GB, free: 1.32 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0017/0.7874, allocations: 0.7207 MB / 1.019 GB, free: 0.5938 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.291e-05/0.7875, allocations: 0 / 1.019 GB, free: 0.5938 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 5.02e-05/0.7876, allocations: 7.922 kB / 1.019 GB, free: 0.5859 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 8.31e-05/0.7877, allocations: 11.92 kB / 1.019 GB, free: 0.5742 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007077/0.7884, allocations: 107.8 kB / 1.019 GB, free: 480 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001487/0.7886, allocations: 79.72 kB / 1.019 GB, free: 400 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001355/0.7887, allocations: 19.98 kB / 1.019 GB, free: 380 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001189/0.7888, allocations: 35.91 kB / 1.019 GB, free: 344 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 8.85e-05/0.7889, allocations: 39.83 kB / 1.019 GB, free: 304 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.416e-05/0.789, allocations: 8 kB / 1.019 GB, free: 296 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002434/0.7892, allocations: 91.84 kB / 1.019 GB, free: 204 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 4.358e-05/0.7893, allocations: 23.91 kB / 1.019 GB, free: 180 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 5.863e-05/0.7893, allocations: 27.86 kB / 1.019 GB, free: 152 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0003115/0.7897, allocations: 141.8 kB / 1.02 GB, free: 12 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 5.55e-06/0.7897, allocations: 0 / 1.02 GB, free: 12 kB / 0.7637 GB Notification: Performance of FrontEnd: time 2.204e-06/0.7897, allocations: 0 / 1.02 GB, free: 12 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 1.284e-05/0.7897, allocations: 4 kB / 1.02 GB, free: 8 kB / 0.7637 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.0008917/0.7906, allocations: 424.8 kB / 1.02 GB, free: 15.54 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 5.244e-05/0.7907, allocations: 12.02 kB / 1.02 GB, free: 15.53 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.25e-05/0.7907, allocations: 8.844 kB / 1.02 GB, free: 15.52 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001602/0.7909, allocations: 164.4 kB / 1.02 GB, free: 15.32 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.738e-05/0.7909, allocations: 384 / 1.02 GB, free: 15.32 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.081e-05/0.791, allocations: 4.375 kB / 1.02 GB, free: 15.32 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000246/0.7912, allocations: 77.91 kB / 1.02 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.839e-06/0.7912, allocations: 4 kB / 1.02 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.623e-05/0.7913, allocations: 0 / 1.02 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.019e-06/0.7913, allocations: 0 / 1.02 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000169/0.7915, allocations: 39.95 kB / 1.02 GB, free: 15.19 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007652/0.7922, allocations: 320.6 kB / 1.021 GB, free: 14.83 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001678/0.7924, allocations: 54.48 kB / 1.021 GB, free: 14.77 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001138/0.7925, allocations: 36.91 kB / 1.021 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.369e-05/0.7926, allocations: 0 / 1.021 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002678/0.7929, allocations: 79.38 kB / 1.021 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 3.928e-06/0.7929, allocations: 0 / 1.021 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0005532/0.7934, allocations: 141.5 kB / 1.021 GB, free: 14.49 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.997e-05/0.7935, allocations: 59.34 kB / 1.021 GB, free: 14.42 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001447/0.7937, allocations: 125.8 kB / 1.021 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.49e-05/0.7937, allocations: 25.7 kB / 1.021 GB, free: 14.26 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.122e-05/0.7938, allocations: 88.14 kB / 1.021 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.924e-05/0.7938, allocations: 15.8 kB / 1.021 GB, free: 14.15 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.381e-05/0.7939, allocations: 25.72 kB / 1.021 GB, free: 14.12 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001566/0.794, allocations: 330.8 kB / 1.022 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001034/0.7942, allocations: 23.98 kB / 1.022 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001206/0.7943, allocations: 46.55 kB / 1.022 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001965/0.7945, allocations: 78.8 kB / 1.022 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.866e-06/0.7945, allocations: 0 / 1.022 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003102/0.7948, allocations: 117.5 kB / 1.022 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.305e-05/0.7949, allocations: 4 kB / 1.022 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.274e-06/0.7949, allocations: 0 / 1.022 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.132e-05/0.7949, allocations: 7.984 kB / 1.022 GB, free: 13.49 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001204/0.795, allocations: 8 kB / 1.022 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.336e-06/0.7951, allocations: 0 / 1.022 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.661e-05/0.7952, allocations: 23.89 kB / 1.022 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.073e-05/0.7952, allocations: 8 kB / 1.022 GB, free: 13.45 MB / 0.7794 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 0.0001449/0.7953, allocations: 122.2 kB / 1.022 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.193e-05/0.7954, allocations: 4 kB / 1.022 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.218e-05/0.7954, allocations: 8.375 kB / 1.022 GB, free: 13.31 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.276e-06/0.7954, allocations: 7.984 kB / 1.022 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.528e-06/0.7955, allocations: 0 / 1.022 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.53e-06/0.7955, allocations: 3.938 kB / 1.022 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005841/0.7961, allocations: 378.4 kB / 1.022 GB, free: 12.87 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.7961, allocations: 0 / 1.022 GB, free: 12.87 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.86e-05/0.7961, allocations: 7.938 kB / 1.022 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.314e-06/0.7961, allocations: 0 / 1.022 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.414e-05/0.7962, allocations: 0 / 1.022 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.844e-06/0.7962, allocations: 0 / 1.022 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.609e-06/0.7962, allocations: 11.92 kB / 1.022 GB, free: 12.85 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003501/0.7965, allocations: 207.5 kB / 1.023 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.842e-05/0.7966, allocations: 85.02 kB / 1.023 GB, free: 12.53 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.137e-05/0.7966, allocations: 0 / 1.023 GB, free: 12.53 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001117/0.7967, allocations: 11.97 kB / 1.023 GB, free: 12.52 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.222e-05/0.7968, allocations: 7.938 kB / 1.023 GB, free: 12.51 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.462e-05/0.7968, allocations: 11.92 kB / 1.023 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 6.967e-05/0.7969, allocations: 87.28 kB / 1.023 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7969, allocations: 0 / 1.023 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0004182/0.7973, allocations: 43.98 kB / 1.023 GB, free: 12.37 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: 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.0004769/0.7978, allocations: 157.7 kB / 1.023 GB, free: 12.22 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.000325/0.7982, allocations: 71.95 kB / 1.023 GB, free: 12.15 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.7982, allocations: 4.062 kB / 1.023 GB, free: 12.15 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001209/0.7983, allocations: 35.98 kB / 1.023 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003526/0.7987, allocations: 8 kB / 1.023 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006656/0.7994, allocations: 188.9 kB / 1.023 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004049/0.7998, allocations: 0.6924 MB / 1.024 GB, free: 11.17 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 5.234e-05/0.7998, allocations: 4 kB / 1.024 GB, free: 11.17 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.227e-05/0.7999, allocations: 19.38 kB / 1.024 GB, free: 11.15 MB / 0.7794 GB Notification: Performance of SimCode: time 2.725e-06/0.7999, allocations: 0 / 1.024 GB, free: 11.15 MB / 0.7794 GB Notification: Performance of Templates: time 0.005694/0.8056, allocations: 1.413 MB / 1.025 GB, free: 9.738 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.makefile (rm -f Buildings_10_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe ; mkfifo Buildings_10_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe ; head -c 1048576 < Buildings_10_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe >> ../files/Buildings_10_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.sim & ./Buildings_10_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsNorth.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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