Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.Zhang2012WindowsSouth,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.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_9_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.001519/0.001519, allocations: 109.3 kB / 15.7 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001804/0.001804, allocations: 196.7 kB / 16.63 MB, free: 6.609 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.507/1.507, allocations: 222.9 MB / 240.3 MB, free: 4.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.412/2.412, allocations: 390.3 MB / 0.6648 GB, free: 176 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001267/0.001268, allocations: 66.17 kB / 0.9509 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3468/0.348, allocations: 140.4 MB / 1.088 GB, free: 1.434 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth): time 0.002647/0.3507, allocations: 1.501 MB / 1.089 GB, free: 15.92 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001325/0.3521, allocations: 0.722 MB / 1.09 GB, free: 15.19 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.386e-05/0.3521, allocations: 0 / 1.09 GB, free: 15.19 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.854e-05/0.3522, allocations: 11.86 kB / 1.09 GB, free: 15.18 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 5.676e-05/0.3523, allocations: 15.86 kB / 1.09 GB, free: 15.16 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.000581/0.3529, allocations: 123.6 kB / 1.09 GB, free: 15.04 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001168/0.353, allocations: 75.83 kB / 1.09 GB, free: 14.97 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001063/0.3531, allocations: 7.984 kB / 1.09 GB, free: 14.96 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 8.206e-05/0.3532, allocations: 35.86 kB / 1.09 GB, free: 14.93 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 6.566e-05/0.3533, allocations: 43.81 kB / 1.09 GB, free: 14.88 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.721e-05/0.3533, allocations: 12 kB / 1.09 GB, free: 14.87 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001787/0.3535, allocations: 95.91 kB / 1.091 GB, free: 14.78 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.394e-05/0.3535, allocations: 11.92 kB / 1.091 GB, free: 14.77 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 6.609e-05/0.3536, allocations: 35.84 kB / 1.091 GB, free: 14.73 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002243/0.3538, allocations: 143.5 kB / 1.091 GB, free: 14.59 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.3538, allocations: 0 / 1.091 GB, free: 14.59 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.442e-06/0.3538, allocations: 0 / 1.091 GB, free: 14.59 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.519e-06/0.3538, allocations: 0 / 1.091 GB, free: 14.59 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.0006512/0.3545, allocations: 413 kB / 1.091 GB, free: 14.13 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.565e-05/0.3545, allocations: 12.03 kB / 1.091 GB, free: 14.12 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.782e-05/0.3546, allocations: 12.83 kB / 1.091 GB, free: 14.11 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001179/0.3547, allocations: 172.2 kB / 1.091 GB, free: 13.9 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.794e-05/0.3547, allocations: 8.375 kB / 1.091 GB, free: 13.89 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.954e-05/0.3548, allocations: 4.375 kB / 1.091 GB, free: 13.89 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001835/0.355, allocations: 77.84 kB / 1.091 GB, free: 13.81 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.358e-06/0.355, allocations: 0 / 1.091 GB, free: 13.81 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.565e-05/0.355, allocations: 4 kB / 1.091 GB, free: 13.8 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.479e-06/0.355, allocations: 0 / 1.091 GB, free: 13.8 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001424/0.3552, allocations: 39.97 kB / 1.091 GB, free: 13.77 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006191/0.3558, allocations: 312.8 kB / 1.092 GB, free: 13.41 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001305/0.3559, allocations: 62.47 kB / 1.092 GB, free: 13.34 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.52e-05/0.356, allocations: 28.97 kB / 1.092 GB, free: 13.31 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.495e-05/0.3561, allocations: 8 kB / 1.092 GB, free: 13.3 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002117/0.3563, allocations: 71.38 kB / 1.092 GB, free: 13.22 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.432e-06/0.3563, allocations: 0 / 1.092 GB, free: 13.22 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.000425/0.3567, allocations: 141.5 kB / 1.092 GB, free: 13.07 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.369e-05/0.3568, allocations: 55.34 kB / 1.092 GB, free: 13.01 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.998e-05/0.3569, allocations: 125.8 kB / 1.092 GB, free: 12.88 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.129e-05/0.3569, allocations: 29.7 kB / 1.092 GB, free: 12.84 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.412e-05/0.357, allocations: 96.06 kB / 1.092 GB, free: 12.74 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.072e-05/0.357, allocations: 19.88 kB / 1.092 GB, free: 12.72 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.756e-05/0.357, allocations: 25.72 kB / 1.092 GB, free: 12.69 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001199/0.3572, allocations: 318.8 kB / 1.093 GB, free: 12.37 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.163e-05/0.3573, allocations: 27.98 kB / 1.093 GB, free: 12.34 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.288e-05/0.3574, allocations: 54.55 kB / 1.093 GB, free: 12.28 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001482/0.3575, allocations: 70.5 kB / 1.093 GB, free: 12.2 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.504e-06/0.3575, allocations: 3.938 kB / 1.093 GB, free: 12.2 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002437/0.3578, allocations: 113.6 kB / 1.093 GB, free: 12.08 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.943e-05/0.3578, allocations: 12 kB / 1.093 GB, free: 12.07 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/0.3578, allocations: 3.938 kB / 1.093 GB, free: 12.07 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.683e-05/0.3578, allocations: 0 / 1.093 GB, free: 12.07 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.416e-05/0.3579, allocations: 11.98 kB / 1.093 GB, free: 12.05 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.205e-06/0.3579, allocations: 4 kB / 1.093 GB, free: 12.05 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.635e-05/0.358, allocations: 11.89 kB / 1.093 GB, free: 12.04 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.29e-05/0.358, allocations: 0 / 1.093 GB, free: 12.04 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 0.0001162/0.3582, allocations: 129.7 kB / 1.093 GB, free: 11.9 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.538e-05/0.3582, allocations: 7.906 kB / 1.093 GB, free: 11.89 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.849e-05/0.3582, allocations: 8.375 kB / 1.093 GB, free: 11.89 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-06/0.3582, allocations: 0 / 1.093 GB, free: 11.89 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.673e-06/0.3582, allocations: 3.984 kB / 1.093 GB, free: 11.88 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.016e-06/0.3582, allocations: 0 / 1.093 GB, free: 11.88 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005153/0.3588, allocations: 382.4 kB / 1.093 GB, free: 11.45 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.3588, allocations: 0 / 1.093 GB, free: 11.45 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.001e-05/0.3588, allocations: 7.938 kB / 1.093 GB, free: 11.45 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.3588, allocations: 4 kB / 1.093 GB, free: 11.44 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.035e-05/0.3588, allocations: 4 kB / 1.093 GB, free: 11.44 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.243e-06/0.3589, allocations: 0 / 1.093 GB, free: 11.44 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.3589, allocations: 3.938 kB / 1.093 GB, free: 11.43 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002811/0.3591, allocations: 207.4 kB / 1.094 GB, free: 11.21 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.826e-05/0.3592, allocations: 81.11 kB / 1.094 GB, free: 11.12 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.119e-05/0.3592, allocations: 0 / 1.094 GB, free: 11.12 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.813e-05/0.3593, allocations: 11.98 kB / 1.094 GB, free: 11.11 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.999e-05/0.3594, allocations: 11.94 kB / 1.094 GB, free: 11.09 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.398e-06/0.3594, allocations: 3.984 kB / 1.094 GB, free: 11.09 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.236e-05/0.3595, allocations: 95.88 kB / 1.094 GB, free: 11 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.11e-07/0.3595, allocations: 0 / 1.094 GB, free: 11 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003192/0.3598, allocations: 43.89 kB / 1.094 GB, free: 10.95 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.0003561/0.3602, allocations: 171 kB / 1.094 GB, free: 10.79 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002666/0.3604, allocations: 75.92 kB / 1.094 GB, free: 10.72 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.3604, allocations: 0 / 1.094 GB, free: 10.72 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 9.838e-05/0.3605, allocations: 35.92 kB / 1.094 GB, free: 10.68 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002567/0.3608, allocations: 10.06 kB / 1.094 GB, free: 10.68 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000413/0.3612, allocations: 184.5 kB / 1.094 GB, free: 10.46 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002745/0.3615, allocations: 0.6885 MB / 1.095 GB, free: 9.75 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.872e-05/0.3616, allocations: 7.75 kB / 1.095 GB, free: 9.742 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.805e-05/0.3616, allocations: 11.44 kB / 1.095 GB, free: 9.73 MB / 0.8575 GB Notification: Performance of SimCode: time 5e-07/0.3616, allocations: 0 / 1.095 GB, free: 9.73 MB / 0.8575 GB Notification: Performance of Templates: time 0.004307/0.3659, allocations: 1.45 MB / 1.096 GB, free: 8.289 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.makefile (rm -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.sim & ./Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsSouth.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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