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.001169/0.001169, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001283/0.001283, allocations: 193.6 kB / 16.14 MB, free: 6.711 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.444/1.444, allocations: 222.9 MB / 239.8 MB, free: 4.609 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.928/2.928, allocations: 472.6 MB / 0.7447 GB, free: 4.945 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001331/0.001331, allocations: 67.27 kB / 0.9114 GB, free: 33.54 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.354/0.3553, allocations: 159.9 MB / 1.068 GB, free: 10.88 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth): time 0.003061/0.3584, allocations: 1.554 MB / 1.069 GB, free: 9.309 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001573/0.36, allocations: 0.7439 MB / 1.07 GB, free: 8.559 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.606e-05/0.3601, allocations: 4 kB / 1.07 GB, free: 8.555 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 5.919e-05/0.3602, allocations: 3.938 kB / 1.07 GB, free: 8.551 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 7.998e-05/0.3603, allocations: 7.922 kB / 1.07 GB, free: 8.543 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006859/0.361, allocations: 99.77 kB / 1.07 GB, free: 8.445 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001467/0.3611, allocations: 71.78 kB / 1.07 GB, free: 8.375 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001503/0.3613, allocations: 15.98 kB / 1.07 GB, free: 8.359 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000127/0.3614, allocations: 39.83 kB / 1.07 GB, free: 8.32 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 8.658e-05/0.3615, allocations: 31.91 kB / 1.07 GB, free: 8.289 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.029e-05/0.3616, allocations: 4 kB / 1.07 GB, free: 8.285 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000237/0.3618, allocations: 91.84 kB / 1.07 GB, free: 8.195 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 4.451e-05/0.3619, allocations: 19.91 kB / 1.07 GB, free: 8.176 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 6.793e-05/0.3619, allocations: 27.86 kB / 1.07 GB, free: 8.148 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002929/0.3622, allocations: 135.9 kB / 1.07 GB, free: 8.016 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.662e-06/0.3622, allocations: 0 / 1.07 GB, free: 8.016 MB / 0.8262 GB Notification: Performance of FrontEnd: time 3.307e-06/0.3623, allocations: 4 kB / 1.07 GB, free: 8.012 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.732e-06/0.3623, allocations: 4 kB / 1.07 GB, free: 8.008 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.0009456/0.3632, allocations: 414.6 kB / 1.071 GB, free: 7.551 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 5.986e-05/0.3633, allocations: 12.03 kB / 1.071 GB, free: 7.539 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.101e-05/0.3634, allocations: 8.844 kB / 1.071 GB, free: 7.531 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002039/0.3636, allocations: 172.2 kB / 1.071 GB, free: 7.324 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.734e-05/0.3636, allocations: 8.359 kB / 1.071 GB, free: 7.316 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.153e-05/0.3636, allocations: 4.375 kB / 1.071 GB, free: 7.312 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002373/0.3639, allocations: 81.89 kB / 1.071 GB, free: 7.227 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.455e-05/0.3639, allocations: 4 kB / 1.071 GB, free: 7.223 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.647e-05/0.3639, allocations: 0 / 1.071 GB, free: 7.223 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.706e-06/0.364, allocations: 3.984 kB / 1.071 GB, free: 7.219 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000138/0.3641, allocations: 35.97 kB / 1.071 GB, free: 7.184 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007649/0.3649, allocations: 312.8 kB / 1.071 GB, free: 6.828 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001571/0.365, allocations: 50.5 kB / 1.071 GB, free: 6.77 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.705e-05/0.3651, allocations: 32.97 kB / 1.071 GB, free: 6.734 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.88e-05/0.3652, allocations: 0 / 1.071 GB, free: 6.734 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000322/0.3655, allocations: 79.38 kB / 1.071 GB, free: 6.645 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 1.383e-06/0.3655, allocations: 0 / 1.071 GB, free: 6.645 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0004985/0.366, allocations: 141.6 kB / 1.072 GB, free: 6.5 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.618e-05/0.3661, allocations: 63.34 kB / 1.072 GB, free: 6.426 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000148/0.3662, allocations: 121.8 kB / 1.072 GB, free: 6.297 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.865e-05/0.3663, allocations: 25.7 kB / 1.072 GB, free: 6.266 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 8.734e-05/0.3664, allocations: 88.12 kB / 1.072 GB, free: 6.176 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.539e-05/0.3664, allocations: 19.75 kB / 1.072 GB, free: 6.156 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.787e-05/0.3665, allocations: 33.64 kB / 1.072 GB, free: 6.117 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0002103/0.3667, allocations: 330.8 kB / 1.072 GB, free: 5.785 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.102e-05/0.3668, allocations: 19.98 kB / 1.072 GB, free: 5.766 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001091/0.3669, allocations: 46.56 kB / 1.072 GB, free: 5.711 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001691/0.3671, allocations: 82.42 kB / 1.072 GB, free: 5.621 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.3671, allocations: 0 / 1.072 GB, free: 5.621 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000262/0.3674, allocations: 117.5 kB / 1.073 GB, free: 5.5 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.218e-05/0.3674, allocations: 4 kB / 1.073 GB, free: 5.496 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.3674, allocations: 0 / 1.073 GB, free: 5.496 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.282e-05/0.3674, allocations: 4 kB / 1.073 GB, free: 5.492 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001182/0.3676, allocations: 11.98 kB / 1.073 GB, free: 5.48 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.02e-05/0.3676, allocations: 0 / 1.073 GB, free: 5.48 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.089e-05/0.3677, allocations: 12.06 kB / 1.073 GB, free: 5.469 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.093e-05/0.3677, allocations: 4 kB / 1.073 GB, free: 5.465 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.0001273/0.3678, allocations: 125.7 kB / 1.073 GB, free: 5.332 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.854e-05/0.3679, allocations: 7.906 kB / 1.073 GB, free: 5.324 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.494e-05/0.3679, allocations: 8.375 kB / 1.073 GB, free: 5.316 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.285e-06/0.3679, allocations: 0 / 1.073 GB, free: 5.316 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.127e-06/0.3679, allocations: 4 kB / 1.073 GB, free: 5.312 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.3679, allocations: 0 / 1.073 GB, free: 5.312 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005114/0.3684, allocations: 386.8 kB / 1.073 GB, free: 4.879 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.3685, allocations: 0 / 1.073 GB, free: 4.879 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.277e-05/0.3685, allocations: 7.938 kB / 1.073 GB, free: 4.871 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.977e-06/0.3685, allocations: 3.984 kB / 1.073 GB, free: 4.867 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.469e-05/0.3685, allocations: 4 kB / 1.073 GB, free: 4.863 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.233e-06/0.3685, allocations: 0 / 1.073 GB, free: 4.863 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.3685, allocations: 3.938 kB / 1.073 GB, free: 4.859 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003447/0.3689, allocations: 211.4 kB / 1.073 GB, free: 4.637 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.884e-05/0.369, allocations: 85 kB / 1.073 GB, free: 4.535 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.544e-05/0.369, allocations: 4 kB / 1.073 GB, free: 4.531 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.165e-05/0.3691, allocations: 4 kB / 1.073 GB, free: 4.527 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.925e-05/0.3692, allocations: 11.92 kB / 1.073 GB, free: 4.516 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.154e-05/0.3692, allocations: 4 kB / 1.073 GB, free: 4.512 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.517e-05/0.3693, allocations: 91.92 kB / 1.073 GB, free: 4.422 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3693, allocations: 0 / 1.073 GB, free: 4.422 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003372/0.3696, allocations: 43.94 kB / 1.074 GB, free: 4.379 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.0005041/0.3701, allocations: 167.8 kB / 1.074 GB, free: 4.223 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002617/0.3704, allocations: 67.97 kB / 1.074 GB, free: 4.156 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.3704, allocations: 4.125 kB / 1.074 GB, free: 4.152 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 9.749e-05/0.3705, allocations: 35.92 kB / 1.074 GB, free: 4.117 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002822/0.3708, allocations: 14.98 kB / 1.074 GB, free: 4.105 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004571/0.3713, allocations: 186.1 kB / 1.074 GB, free: 3.891 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000276/0.3715, allocations: 0.6926 MB / 1.075 GB, free: 3.172 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.855e-05/0.3716, allocations: 4 kB / 1.075 GB, free: 3.168 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.032e-05/0.3716, allocations: 11.42 kB / 1.075 GB, free: 3.156 MB / 0.8262 GB Notification: Performance of SimCode: time 3.1e-07/0.3716, allocations: 0 / 1.075 GB, free: 3.156 MB / 0.8262 GB Notification: Performance of Templates: time 0.004747/0.3764, allocations: 1.374 MB / 1.076 GB, free: 1.785 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