Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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.Zhang2012WindowsWest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|win.TOut|win.occ|win.p|win.on",fileNamePrefix="Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest") translateModel(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|win.TOut|win.occ|win.p|win.on",fileNamePrefix="Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006067/0.006067, allocations: 102.1 kB / 15.73 MB, free: 6.062 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.001474/0.001474, allocations: 192.1 kB / 16.67 MB, free: 5.973 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.393/1.393, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.391/2.391, allocations: 390.2 MB / 0.6648 GB, free: 0.6445 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001994/0.001994, allocations: 71.88 kB / 0.9508 GB, free: 7.648 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9737/0.9757, allocations: 140.4 MB / 1.088 GB, free: 5.508 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest): time 0.003425/0.9792, allocations: 1.497 MB / 1.089 GB, free: 4.469 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001741/0.981, allocations: 0.7242 MB / 1.09 GB, free: 3.977 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.437e-05/0.9811, allocations: 1.188 kB / 1.09 GB, free: 3.977 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 4.218e-05/0.9811, allocations: 5.344 kB / 1.09 GB, free: 3.973 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 8.471e-05/0.9812, allocations: 10.17 kB / 1.09 GB, free: 3.965 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.00073/0.982, allocations: 129.1 kB / 1.09 GB, free: 3.898 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001644/0.9821, allocations: 73.09 kB / 1.09 GB, free: 3.867 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001239/0.9823, allocations: 15.72 kB / 1.09 GB, free: 3.859 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001143/0.9824, allocations: 35.53 kB / 1.09 GB, free: 3.844 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 8.878e-05/0.9825, allocations: 37.56 kB / 1.09 GB, free: 3.828 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.402e-05/0.9825, allocations: 10.16 kB / 1.09 GB, free: 3.824 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002668/0.9828, allocations: 93.58 kB / 1.09 GB, free: 3.797 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.729e-05/0.9828, allocations: 23.28 kB / 1.09 GB, free: 3.781 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 6.29e-05/0.9829, allocations: 27.61 kB / 1.091 GB, free: 3.766 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003803/0.9833, allocations: 143.5 kB / 1.091 GB, free: 3.723 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.823e-06/0.9833, allocations: 4 kB / 1.091 GB, free: 3.719 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.365e-06/0.9833, allocations: 0 / 1.091 GB, free: 3.719 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.284e-06/0.9833, allocations: 0 / 1.091 GB, free: 3.719 MB / 0.8575 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.0007343/0.9841, allocations: 422.6 kB / 1.091 GB, free: 3.297 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.872e-05/0.9841, allocations: 9.984 kB / 1.091 GB, free: 3.297 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.788e-05/0.9842, allocations: 13.08 kB / 1.091 GB, free: 3.289 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000125/0.9843, allocations: 177.9 kB / 1.091 GB, free: 3.082 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.251e-05/0.9844, allocations: 2.5 kB / 1.091 GB, free: 3.082 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.482e-05/0.9844, allocations: 8.578 kB / 1.091 GB, free: 3.078 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002256/0.9846, allocations: 76.22 kB / 1.091 GB, free: 3.027 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.011e-05/0.9847, allocations: 0.7188 kB / 1.091 GB, free: 3.027 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.735e-05/0.9847, allocations: 0.9062 kB / 1.091 GB, free: 3.027 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.582e-06/0.9847, allocations: 1.062 kB / 1.091 GB, free: 3.027 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001696/0.9849, allocations: 35.38 kB / 1.091 GB, free: 3.02 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007762/0.9856, allocations: 322.9 kB / 1.092 GB, free: 2.719 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001472/0.9858, allocations: 45.88 kB / 1.092 GB, free: 2.688 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001041/0.9859, allocations: 36.39 kB / 1.092 GB, free: 2.668 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.407e-05/0.986, allocations: 4.719 kB / 1.092 GB, free: 2.664 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002715/0.9862, allocations: 81.73 kB / 1.092 GB, free: 2.602 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.593e-06/0.9862, allocations: 0 / 1.092 GB, free: 2.602 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0004697/0.9867, allocations: 137.1 kB / 1.092 GB, free: 2.539 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.668e-05/0.9868, allocations: 54.23 kB / 1.092 GB, free: 2.477 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.863e-05/0.9869, allocations: 123.7 kB / 1.092 GB, free: 2.367 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.376e-05/0.9869, allocations: 30.73 kB / 1.092 GB, free: 2.332 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.118e-05/0.9869, allocations: 92.33 kB / 1.092 GB, free: 2.242 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.407e-05/0.987, allocations: 12.22 kB / 1.092 GB, free: 2.234 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.721e-05/0.987, allocations: 28.64 kB / 1.092 GB, free: 2.211 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 6.846e-05/0.9871, allocations: 328 kB / 1.093 GB, free: 1.887 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.404e-05/0.9872, allocations: 26.34 kB / 1.093 GB, free: 1.879 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001015/0.9873, allocations: 54.83 kB / 1.093 GB, free: 1.84 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001748/0.9875, allocations: 72.78 kB / 1.093 GB, free: 1.797 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.995e-06/0.9875, allocations: 0.7188 kB / 1.093 GB, free: 1.797 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002598/0.9878, allocations: 116.4 kB / 1.093 GB, free: 1.734 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.837e-05/0.9878, allocations: 5.75 kB / 1.093 GB, free: 1.734 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.9878, allocations: 5.062 kB / 1.093 GB, free: 1.73 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.366e-05/0.9878, allocations: 0.9375 kB / 1.093 GB, free: 1.73 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001062/0.988, allocations: 19.95 kB / 1.093 GB, free: 1.723 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.085e-06/0.988, allocations: 0.875 kB / 1.093 GB, free: 1.723 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.002e-05/0.988, allocations: 13.89 kB / 1.093 GB, free: 1.715 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.923e-05/0.9881, allocations: 3.875 kB / 1.093 GB, free: 1.715 MB / 0.8575 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.014e-05/0.9882, allocations: 123.5 kB / 1.093 GB, free: 1.59 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.941e-05/0.9882, allocations: 7.938 kB / 1.093 GB, free: 1.586 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.079e-05/0.9882, allocations: 14.08 kB / 1.093 GB, free: 1.57 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.9882, allocations: 1.422 kB / 1.093 GB, free: 1.57 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.52e-06/0.9882, allocations: 0.9688 kB / 1.093 GB, free: 1.57 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.977e-06/0.9883, allocations: 0.5156 kB / 1.093 GB, free: 1.57 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004728/0.9887, allocations: 378.4 kB / 1.093 GB, free: 1.234 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.9887, allocations: 0.7188 kB / 1.093 GB, free: 1.234 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.518e-05/0.9888, allocations: 5.484 kB / 1.093 GB, free: 1.234 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.026e-06/0.9888, allocations: 1.25 kB / 1.093 GB, free: 1.234 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.561e-05/0.9888, allocations: 5.516 kB / 1.093 GB, free: 1.23 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.847e-06/0.9888, allocations: 5.172 kB / 1.093 GB, free: 1.227 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.9888, allocations: 3.938 kB / 1.093 GB, free: 1.223 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003173/0.9892, allocations: 207.5 kB / 1.094 GB, free: 1.066 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.485e-05/0.9892, allocations: 84.06 kB / 1.094 GB, free: 0.9688 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.632e-05/0.9892, allocations: 5.453 kB / 1.094 GB, free: 0.9648 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.884e-05/0.9893, allocations: 4.688 kB / 1.094 GB, free: 0.9648 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.136e-05/0.9894, allocations: 12.48 kB / 1.094 GB, free: 0.957 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.189e-05/0.9894, allocations: 3.234 kB / 1.094 GB, free: 0.957 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.809e-05/0.9895, allocations: 92.47 kB / 1.094 GB, free: 0.8789 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9895, allocations: 0 / 1.094 GB, free: 0.8789 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0004/0.9899, allocations: 38.58 kB / 1.094 GB, free: 0.8711 MB / 0.8575 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.0004795/0.9904, allocations: 181.2 kB / 1.094 GB, free: 0.75 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.000319/0.9907, allocations: 72.14 kB / 1.094 GB, free: 0.7305 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.9907, allocations: 0 / 1.094 GB, free: 0.7305 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001185/0.9909, allocations: 37.91 kB / 1.094 GB, free: 0.7188 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002679/0.9911, allocations: 5.078 kB / 1.094 GB, free: 0.7188 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004323/0.9916, allocations: 187.9 kB / 1.094 GB, free: 0.5625 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001847/0.9918, allocations: 0.6871 MB / 1.095 GB, free: 15.87 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 4.288e-05/0.9918, allocations: 7.953 kB / 1.095 GB, free: 15.86 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.322e-05/0.9919, allocations: 12.84 kB / 1.095 GB, free: 15.86 MB / 0.8731 GB Notification: Performance of SimCode: time 4.3e-07/0.9919, allocations: 0 / 1.095 GB, free: 15.86 MB / 0.8731 GB Notification: Performance of Templates: time 0.005987/0.9979, allocations: 1.452 MB / 1.096 GB, free: 15.7 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.makefile (rm -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.sim & ./Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsWest.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.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