Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.Zhang2012WindowsSouth,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.Zhang2012WindowsSouth") translateModel(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth,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.Zhang2012WindowsSouth") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008132/0.008132, allocations: 100 kB / 15.73 MB, free: 6.047 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.001771/0.001771, allocations: 185.3 kB / 16.67 MB, free: 5.977 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.45/1.45, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.891/2.891, allocations: 461.9 MB / 0.7348 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001327/0.001327, allocations: 71.88 kB / 1.054 GB, free: 7.145 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3113/0.3127, allocations: 157.4 MB / 1.208 GB, free: 9.633 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth): time 0.00274/0.3154, allocations: 1.493 MB / 1.209 GB, free: 8.125 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001308/0.3168, allocations: 0.7365 MB / 1.21 GB, free: 7.383 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.331e-05/0.3169, allocations: 0 / 1.21 GB, free: 7.383 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.62e-05/0.3169, allocations: 3.938 kB / 1.21 GB, free: 7.379 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 5.409e-05/0.317, allocations: 7.875 kB / 1.21 GB, free: 7.371 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006527/0.3176, allocations: 127.6 kB / 1.21 GB, free: 7.246 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001385/0.3178, allocations: 79.75 kB / 1.21 GB, free: 7.168 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 9.871e-05/0.3179, allocations: 15.95 kB / 1.21 GB, free: 7.152 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001048/0.318, allocations: 35.84 kB / 1.21 GB, free: 7.117 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 7.285e-05/0.3181, allocations: 39.83 kB / 1.21 GB, free: 7.078 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.067e-05/0.3181, allocations: 8 kB / 1.21 GB, free: 7.07 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002151/0.3183, allocations: 91.91 kB / 1.21 GB, free: 6.98 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.798e-05/0.3184, allocations: 19.92 kB / 1.21 GB, free: 6.961 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 5.193e-05/0.3184, allocations: 35.84 kB / 1.21 GB, free: 6.926 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002399/0.3187, allocations: 147.5 kB / 1.21 GB, free: 6.781 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.3187, allocations: 0 / 1.21 GB, free: 6.781 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.593e-06/0.3187, allocations: 0 / 1.21 GB, free: 6.781 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.53e-06/0.3187, allocations: 0 / 1.21 GB, free: 6.781 MB / 0.9669 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.0006776/0.3194, allocations: 417 kB / 1.211 GB, free: 6.32 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.575e-05/0.3194, allocations: 8.031 kB / 1.211 GB, free: 6.312 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.253e-05/0.3195, allocations: 8.844 kB / 1.211 GB, free: 6.305 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001173/0.3196, allocations: 172.2 kB / 1.211 GB, free: 6.098 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.689e-05/0.3196, allocations: 12.36 kB / 1.211 GB, free: 6.086 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.774e-05/0.3197, allocations: 384 / 1.211 GB, free: 6.086 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001888/0.3199, allocations: 73.97 kB / 1.211 GB, free: 6.008 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.506e-06/0.3199, allocations: 3.938 kB / 1.211 GB, free: 6.004 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.302e-05/0.3199, allocations: 0 / 1.211 GB, free: 6.004 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.505e-06/0.3199, allocations: 4 kB / 1.211 GB, free: 6 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001309/0.32, allocations: 39.91 kB / 1.211 GB, free: 5.961 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000588/0.3206, allocations: 320.7 kB / 1.211 GB, free: 5.598 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001223/0.3208, allocations: 42.56 kB / 1.212 GB, free: 5.547 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.572e-05/0.3209, allocations: 36.91 kB / 1.212 GB, free: 5.508 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.624e-05/0.3209, allocations: 0 / 1.212 GB, free: 5.508 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001889/0.3211, allocations: 83.38 kB / 1.212 GB, free: 5.414 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 3.216e-06/0.3211, allocations: 3.984 kB / 1.212 GB, free: 5.41 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7): time 0.0004255/0.3215, allocations: 133.9 kB / 1.212 GB, free: 5.273 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.284e-05/0.3216, allocations: 59.34 kB / 1.212 GB, free: 5.203 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000123/0.3217, allocations: 121.8 kB / 1.212 GB, free: 5.074 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.169e-05/0.3218, allocations: 29.64 kB / 1.212 GB, free: 5.039 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 6.62e-05/0.3218, allocations: 96.12 kB / 1.212 GB, free: 4.941 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.733e-05/0.3219, allocations: 23.81 kB / 1.212 GB, free: 4.918 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.118e-05/0.3219, allocations: 29.7 kB / 1.212 GB, free: 4.883 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001266/0.3221, allocations: 322.8 kB / 1.212 GB, free: 4.559 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.015e-05/0.3222, allocations: 23.98 kB / 1.212 GB, free: 4.535 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.883e-05/0.3223, allocations: 42.56 kB / 1.213 GB, free: 4.484 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001737/0.3225, allocations: 82.55 kB / 1.213 GB, free: 4.395 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.3225, allocations: 0 / 1.213 GB, free: 4.395 MB / 0.9669 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002611/0.3227, allocations: 113.5 kB / 1.213 GB, free: 4.277 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.889e-05/0.3228, allocations: 4 kB / 1.213 GB, free: 4.273 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.773e-06/0.3228, allocations: 4 kB / 1.213 GB, free: 4.27 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.576e-05/0.3228, allocations: 0 / 1.213 GB, free: 4.27 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001194/0.3229, allocations: 16.05 kB / 1.213 GB, free: 4.254 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.848e-06/0.3229, allocations: 4 kB / 1.213 GB, free: 4.25 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.163e-05/0.323, allocations: 11.94 kB / 1.213 GB, free: 4.238 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.775e-05/0.323, allocations: 4 kB / 1.213 GB, free: 4.234 MB / 0.9669 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.0001444/0.3232, allocations: 121.8 kB / 1.213 GB, free: 4.105 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.295e-05/0.3232, allocations: 11.84 kB / 1.213 GB, free: 4.094 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.157e-05/0.3233, allocations: 12.38 kB / 1.213 GB, free: 4.078 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.3233, allocations: 4 kB / 1.213 GB, free: 4.074 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.624e-06/0.3233, allocations: 0 / 1.213 GB, free: 4.074 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.132e-06/0.3233, allocations: 0 / 1.213 GB, free: 4.074 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005246/0.3238, allocations: 378.4 kB / 1.213 GB, free: 3.648 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.295e-06/0.3238, allocations: 0 / 1.213 GB, free: 3.648 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.223e-05/0.3239, allocations: 7.984 kB / 1.213 GB, free: 3.641 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.548e-06/0.3239, allocations: 0 / 1.213 GB, free: 3.641 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.633e-05/0.3239, allocations: 4 kB / 1.213 GB, free: 3.637 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.095e-06/0.3239, allocations: 7.938 kB / 1.213 GB, free: 3.629 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.3239, allocations: 7.938 kB / 1.213 GB, free: 3.621 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002806/0.3242, allocations: 199.4 kB / 1.213 GB, free: 3.41 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.406e-05/0.3243, allocations: 89 kB / 1.214 GB, free: 3.305 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.723e-05/0.3243, allocations: 0 / 1.214 GB, free: 3.305 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.752e-05/0.3244, allocations: 8 kB / 1.214 GB, free: 3.297 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.545e-05/0.3244, allocations: 7.922 kB / 1.214 GB, free: 3.289 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.899e-06/0.3245, allocations: 4 kB / 1.214 GB, free: 3.285 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 4.9e-05/0.3245, allocations: 95.92 kB / 1.214 GB, free: 3.191 MB / 0.9669 GB Notification: Performance of sort global known variables: time 2.91e-07/0.3245, allocations: 0 / 1.214 GB, free: 3.191 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0003064/0.3248, allocations: 36 kB / 1.214 GB, free: 3.156 MB / 0.9669 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.0003377/0.3252, allocations: 160.1 kB / 1.214 GB, free: 3.004 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002408/0.3254, allocations: 80.11 kB / 1.214 GB, free: 2.926 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.3254, allocations: 0 / 1.214 GB, free: 2.926 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 9.911e-05/0.3255, allocations: 40.06 kB / 1.214 GB, free: 2.887 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002581/0.3258, allocations: 13.39 kB / 1.214 GB, free: 2.875 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004289/0.3263, allocations: 186.8 kB / 1.214 GB, free: 2.664 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002617/0.3265, allocations: 0.6964 MB / 1.215 GB, free: 1.941 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 3.522e-05/0.3266, allocations: 0 / 1.215 GB, free: 1.941 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.285e-05/0.3266, allocations: 19.42 kB / 1.215 GB, free: 1.922 MB / 0.9669 GB Notification: Performance of SimCode: time 6.11e-07/0.3266, allocations: 0 / 1.215 GB, free: 1.922 MB / 0.9669 GB Notification: Performance of Templates: time 0.004053/0.3307, allocations: 1.479 MB / 1.216 GB, free: 456 kB / 0.9669 GB make -j1 -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.makefile (rm -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.sim & ./Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsSouth.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.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