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.0009441/0.0009442, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.007759/0.00776, allocations: 170.7 kB / 16.27 MB, free: 6.652 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.456/1.456, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.021/3.021, allocations: 473.4 MB / 0.7469 GB, free: 6.082 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004/0.0004, allocations: 11.25 kB / 0.9158 GB, free: 33.19 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4012/0.4016, allocations: 162.2 MB / 1.074 GB, free: 7.543 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth): time 0.001725/0.4034, allocations: 1.219 MB / 1.075 GB, free: 6.316 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001285/0.4047, allocations: 0.7208 MB / 1.076 GB, free: 5.59 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.716e-05/0.4047, allocations: 0 / 1.076 GB, free: 5.59 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.22e-05/0.4048, allocations: 7.875 kB / 1.076 GB, free: 5.582 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 6.424e-05/0.4049, allocations: 11.92 kB / 1.076 GB, free: 5.57 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004871/0.4053, allocations: 99.77 kB / 1.076 GB, free: 5.473 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001071/0.4055, allocations: 67.83 kB / 1.076 GB, free: 5.406 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001007/0.4056, allocations: 23.97 kB / 1.076 GB, free: 5.383 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 8.728e-05/0.4057, allocations: 27.86 kB / 1.076 GB, free: 5.355 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 7.074e-05/0.4057, allocations: 39.83 kB / 1.076 GB, free: 5.316 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.801e-05/0.4058, allocations: 4 kB / 1.076 GB, free: 5.312 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001767/0.406, allocations: 83.91 kB / 1.076 GB, free: 5.23 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.582e-05/0.406, allocations: 15.92 kB / 1.076 GB, free: 5.215 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 6.327e-05/0.4061, allocations: 53.56 kB / 1.076 GB, free: 5.156 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002278/0.4063, allocations: 139.8 kB / 1.077 GB, free: 5.02 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.4063, allocations: 0 / 1.077 GB, free: 5.02 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.352e-06/0.4063, allocations: 0 / 1.077 GB, free: 5.02 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.54e-06/0.4063, allocations: 8 kB / 1.077 GB, free: 5.012 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.0006584/0.407, allocations: 405 kB / 1.077 GB, free: 4.562 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.412e-05/0.4071, allocations: 8.031 kB / 1.077 GB, free: 4.555 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.687e-05/0.4071, allocations: 8.844 kB / 1.077 GB, free: 4.547 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001458/0.4073, allocations: 176.2 kB / 1.077 GB, free: 4.336 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.412e-05/0.4073, allocations: 4.359 kB / 1.077 GB, free: 4.332 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.966e-05/0.4073, allocations: 8.375 kB / 1.077 GB, free: 4.324 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002122/0.4075, allocations: 77.97 kB / 1.077 GB, free: 4.242 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.594e-06/0.4076, allocations: 0 / 1.077 GB, free: 4.242 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.18e-05/0.4076, allocations: 0 / 1.077 GB, free: 4.242 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.679e-06/0.4076, allocations: 0 / 1.077 GB, free: 4.242 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000139/0.4077, allocations: 47.91 kB / 1.077 GB, free: 4.195 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000628/0.4084, allocations: 320.7 kB / 1.078 GB, free: 3.832 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001416/0.4085, allocations: 50.5 kB / 1.078 GB, free: 3.773 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.262e-05/0.4086, allocations: 40.97 kB / 1.078 GB, free: 3.73 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.761e-05/0.4087, allocations: 0 / 1.078 GB, free: 3.73 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002118/0.4089, allocations: 87.38 kB / 1.078 GB, free: 3.633 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 3.847e-06/0.4089, allocations: 3.984 kB / 1.078 GB, free: 3.629 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0004181/0.4093, allocations: 149.5 kB / 1.078 GB, free: 3.477 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.508e-05/0.4094, allocations: 55.41 kB / 1.078 GB, free: 3.41 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.806e-05/0.4095, allocations: 117.8 kB / 1.078 GB, free: 3.285 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.744e-05/0.4095, allocations: 25.7 kB / 1.078 GB, free: 3.254 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.729e-05/0.4096, allocations: 96.12 kB / 1.078 GB, free: 3.156 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.354e-05/0.4096, allocations: 15.75 kB / 1.078 GB, free: 3.141 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.188e-05/0.4096, allocations: 25.7 kB / 1.078 GB, free: 3.109 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001226/0.4098, allocations: 318.8 kB / 1.079 GB, free: 2.789 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.374e-05/0.4098, allocations: 35.92 kB / 1.079 GB, free: 2.754 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.144e-05/0.4099, allocations: 50.55 kB / 1.079 GB, free: 2.695 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001771/0.4101, allocations: 82.53 kB / 1.079 GB, free: 2.605 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.4101, allocations: 0 / 1.079 GB, free: 2.605 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002346/0.4104, allocations: 113.9 kB / 1.079 GB, free: 2.488 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.958e-05/0.4104, allocations: 13.39 kB / 1.079 GB, free: 2.477 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.4104, allocations: 0 / 1.079 GB, free: 2.477 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.913e-05/0.4104, allocations: 3.938 kB / 1.079 GB, free: 2.473 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.214e-05/0.4105, allocations: 16 kB / 1.079 GB, free: 2.457 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.464e-06/0.4105, allocations: 4.062 kB / 1.079 GB, free: 2.453 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.599e-05/0.4106, allocations: 11.89 kB / 1.079 GB, free: 2.441 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.342e-05/0.4106, allocations: 4 kB / 1.079 GB, free: 2.438 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 9.404e-05/0.4107, allocations: 121.8 kB / 1.079 GB, free: 2.309 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.379e-05/0.4108, allocations: 7.938 kB / 1.079 GB, free: 2.301 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.61e-05/0.4108, allocations: 12.36 kB / 1.079 GB, free: 2.289 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/0.4108, allocations: 4 kB / 1.079 GB, free: 2.285 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.4108, allocations: 4 kB / 1.079 GB, free: 2.281 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.249e-06/0.4108, allocations: 0 / 1.079 GB, free: 2.281 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004565/0.4113, allocations: 398.2 kB / 1.079 GB, free: 1.836 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.357e-06/0.4113, allocations: 4 kB / 1.079 GB, free: 1.832 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.695e-05/0.4113, allocations: 7.938 kB / 1.079 GB, free: 1.824 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.4113, allocations: 0 / 1.079 GB, free: 1.824 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.352e-05/0.4114, allocations: 3.984 kB / 1.079 GB, free: 1.82 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.322e-06/0.4114, allocations: 0 / 1.079 GB, free: 1.82 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.4114, allocations: 3.938 kB / 1.079 GB, free: 1.816 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002889/0.4117, allocations: 211.5 kB / 1.08 GB, free: 1.594 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.578e-05/0.4117, allocations: 89.02 kB / 1.08 GB, free: 1.488 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.89e-05/0.4117, allocations: 0 / 1.08 GB, free: 1.488 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.698e-05/0.4118, allocations: 7.984 kB / 1.08 GB, free: 1.48 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.247e-05/0.4119, allocations: 7.938 kB / 1.08 GB, free: 1.473 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.778e-06/0.4119, allocations: 3.984 kB / 1.08 GB, free: 1.469 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001079/0.412, allocations: 99.27 kB / 1.08 GB, free: 1.371 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.412, allocations: 0 / 1.08 GB, free: 1.371 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003097/0.4123, allocations: 36 kB / 1.08 GB, free: 1.336 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.0003809/0.4127, allocations: 158.7 kB / 1.08 GB, free: 1.188 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002513/0.413, allocations: 83.89 kB / 1.08 GB, free: 1.105 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.413, allocations: 0 / 1.08 GB, free: 1.105 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001041/0.4131, allocations: 39.91 kB / 1.08 GB, free: 1.066 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002505/0.4134, allocations: 11.88 kB / 1.08 GB, free: 1.055 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004268/0.4138, allocations: 217.2 kB / 1.08 GB, free: 0.8086 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002933/0.4141, allocations: 0.6809 MB / 1.081 GB, free: 104 kB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.866e-05/0.4142, allocations: 7.984 kB / 1.081 GB, free: 96 kB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.608e-05/0.4142, allocations: 11.44 kB / 1.081 GB, free: 84 kB / 0.8262 GB Notification: Performance of SimCode: time 2.5e-07/0.4142, allocations: 4 kB / 1.081 GB, free: 80 kB / 0.8262 GB Notification: Performance of Templates: time 0.004068/0.4183, allocations: 1.352 MB / 1.082 GB, free: 14.73 MB / 0.8419 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