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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.001506/0.001506, 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.002145/0.002145, allocations: 192.1 kB / 16.25 MB, free: 6.621 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.559/1.559, allocations: 222.9 MB / 239.9 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.956/2.956, allocations: 472.6 MB / 0.7448 GB, free: 4.871 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001369/0.001369, allocations: 64.81 kB / 0.9116 GB, free: 33.47 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3353/0.3367, allocations: 159.9 MB / 1.068 GB, free: 10.77 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth): time 0.002799/0.3395, allocations: 1.554 MB / 1.069 GB, free: 9.207 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001224/0.3407, allocations: 0.7323 MB / 1.07 GB, free: 8.469 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.908e-05/0.3408, allocations: 4 kB / 1.07 GB, free: 8.465 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.738e-05/0.3409, allocations: 3.938 kB / 1.07 GB, free: 8.461 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.746e-05/0.3409, allocations: 3.938 kB / 1.07 GB, free: 8.457 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005718/0.3415, allocations: 111.8 kB / 1.07 GB, free: 8.348 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001054/0.3416, allocations: 67.84 kB / 1.07 GB, free: 8.281 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001038/0.3417, allocations: 19.98 kB / 1.07 GB, free: 8.262 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 9.43e-05/0.3418, allocations: 35.89 kB / 1.07 GB, free: 8.227 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 6.422e-05/0.3419, allocations: 39.78 kB / 1.07 GB, free: 8.188 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.143e-05/0.3419, allocations: 8 kB / 1.07 GB, free: 8.18 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001893/0.3421, allocations: 91.91 kB / 1.07 GB, free: 8.09 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.833e-05/0.3422, allocations: 23.91 kB / 1.07 GB, free: 8.066 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 4.96e-05/0.3422, allocations: 27.86 kB / 1.07 GB, free: 8.039 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002362/0.3425, allocations: 139.9 kB / 1.071 GB, free: 7.902 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.3425, allocations: 3.938 kB / 1.071 GB, free: 7.898 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.473e-06/0.3425, allocations: 4 kB / 1.071 GB, free: 7.895 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.061e-06/0.3425, allocations: 3.938 kB / 1.071 GB, free: 7.891 MB / 0.8262 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.0007029/0.3432, allocations: 421 kB / 1.071 GB, free: 7.426 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.418e-05/0.3433, allocations: 8.031 kB / 1.071 GB, free: 7.418 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.569e-05/0.3433, allocations: 8.844 kB / 1.071 GB, free: 7.41 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001354/0.3434, allocations: 176.2 kB / 1.071 GB, free: 7.199 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.432e-05/0.3435, allocations: 4.375 kB / 1.071 GB, free: 7.195 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.418e-05/0.3435, allocations: 4.375 kB / 1.071 GB, free: 7.191 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001962/0.3437, allocations: 77.95 kB / 1.071 GB, free: 7.109 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.458e-06/0.3437, allocations: 0 / 1.071 GB, free: 7.109 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.472e-05/0.3437, allocations: 0 / 1.071 GB, free: 7.109 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.352e-06/0.3438, allocations: 7.938 kB / 1.071 GB, free: 7.102 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001298/0.3439, allocations: 39.91 kB / 1.071 GB, free: 7.062 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000621/0.3445, allocations: 312.8 kB / 1.072 GB, free: 6.707 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001243/0.3447, allocations: 46.56 kB / 1.072 GB, free: 6.652 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.028e-05/0.3447, allocations: 28.97 kB / 1.072 GB, free: 6.621 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.698e-05/0.3448, allocations: 0 / 1.072 GB, free: 6.621 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001797/0.345, allocations: 87.31 kB / 1.072 GB, free: 6.523 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 1.383e-06/0.345, allocations: 0 / 1.072 GB, free: 6.523 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0003944/0.3454, allocations: 141.6 kB / 1.072 GB, free: 6.379 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.573e-05/0.3454, allocations: 51.41 kB / 1.072 GB, free: 6.316 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.955e-05/0.3455, allocations: 129.7 kB / 1.072 GB, free: 6.18 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.748e-05/0.3455, allocations: 25.7 kB / 1.072 GB, free: 6.148 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.526e-05/0.3456, allocations: 92.12 kB / 1.072 GB, free: 6.055 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.153e-05/0.3456, allocations: 19.75 kB / 1.072 GB, free: 6.035 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.952e-05/0.3457, allocations: 33.7 kB / 1.072 GB, free: 5.996 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001128/0.3458, allocations: 322.8 kB / 1.072 GB, free: 5.672 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.897e-05/0.3459, allocations: 23.98 kB / 1.072 GB, free: 5.648 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.018e-05/0.346, allocations: 46.5 kB / 1.073 GB, free: 5.594 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001598/0.3461, allocations: 74.55 kB / 1.073 GB, free: 5.512 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.3462, allocations: 0 / 1.073 GB, free: 5.512 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002251/0.3464, allocations: 117.5 kB / 1.073 GB, free: 5.391 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.275e-05/0.3464, allocations: 4 kB / 1.073 GB, free: 5.387 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.673e-06/0.3464, allocations: 4 kB / 1.073 GB, free: 5.383 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.38e-05/0.3464, allocations: 0 / 1.073 GB, free: 5.383 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.766e-05/0.3465, allocations: 15.92 kB / 1.073 GB, free: 5.367 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.341e-06/0.3466, allocations: 8 kB / 1.073 GB, free: 5.359 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.941e-05/0.3466, allocations: 4 kB / 1.073 GB, free: 5.355 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.546e-05/0.3467, allocations: 8 kB / 1.073 GB, free: 5.348 MB / 0.8262 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.0001032/0.3468, allocations: 121.8 kB / 1.073 GB, free: 5.219 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.979e-05/0.3468, allocations: 11.89 kB / 1.073 GB, free: 5.207 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.085e-05/0.3468, allocations: 12.38 kB / 1.073 GB, free: 5.195 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-06/0.3468, allocations: 0 / 1.073 GB, free: 5.195 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/0.3468, allocations: 3.938 kB / 1.073 GB, free: 5.191 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.826e-06/0.3468, allocations: 4 kB / 1.073 GB, free: 5.188 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004359/0.3473, allocations: 378.4 kB / 1.073 GB, free: 4.762 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.3473, allocations: 0 / 1.073 GB, free: 4.762 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.217e-05/0.3473, allocations: 7.984 kB / 1.073 GB, free: 4.754 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.3474, allocations: 0 / 1.073 GB, free: 4.754 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.451e-05/0.3474, allocations: 4 kB / 1.073 GB, free: 4.75 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.565e-06/0.3474, allocations: 4 kB / 1.073 GB, free: 4.746 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.3474, allocations: 3.938 kB / 1.073 GB, free: 4.742 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002915/0.3477, allocations: 223.8 kB / 1.074 GB, free: 4.508 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.988e-05/0.3477, allocations: 85.02 kB / 1.074 GB, free: 4.406 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.167e-05/0.3478, allocations: 0 / 1.074 GB, free: 4.406 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001086/0.3479, allocations: 4 kB / 1.074 GB, free: 4.402 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.237e-05/0.3479, allocations: 15.92 kB / 1.074 GB, free: 4.387 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.576e-06/0.348, allocations: 0 / 1.074 GB, free: 4.387 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.396e-05/0.348, allocations: 95.27 kB / 1.074 GB, free: 4.293 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.21e-07/0.348, allocations: 0 / 1.074 GB, free: 4.293 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003689/0.3484, allocations: 36 kB / 1.074 GB, free: 4.258 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: 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.0003698/0.3488, allocations: 167.6 kB / 1.074 GB, free: 4.102 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.000256/0.349, allocations: 71.91 kB / 1.074 GB, free: 4.031 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.3491, allocations: 0 / 1.074 GB, free: 4.031 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001027/0.3492, allocations: 39.91 kB / 1.074 GB, free: 3.992 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002592/0.3494, allocations: 10.39 kB / 1.074 GB, free: 3.984 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000396/0.3498, allocations: 196.4 kB / 1.074 GB, free: 3.762 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002364/0.3501, allocations: 0.6885 MB / 1.075 GB, free: 3.047 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.945e-05/0.3501, allocations: 7.984 kB / 1.075 GB, free: 3.039 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.837e-05/0.3502, allocations: 15.44 kB / 1.075 GB, free: 3.023 MB / 0.8262 GB Notification: Performance of SimCode: time 2.2e-07/0.3502, allocations: 0 / 1.075 GB, free: 3.023 MB / 0.8262 GB Notification: Performance of Templates: time 0.00399/0.3542, allocations: 1.403 MB / 1.076 GB, free: 1.621 MB / 0.8262 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 -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/jenkins/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