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.001004/0.001004, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.001179/0.001179, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.457/1.457, allocations: 223.3 MB / 240 MB, free: 5.383 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.485/2.485, allocations: 390.9 MB / 0.666 GB, free: 2.473 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003098/0.0003098, allocations: 12 kB / 0.8154 GB, free: 13.67 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7658/0.7662, allocations: 142.4 MB / 0.9544 GB, free: 7.828 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsSouth): time 0.001424/0.7676, allocations: 1.198 MB / 0.9556 GB, free: 6.879 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001047/0.7687, allocations: 0.6749 MB / 0.9563 GB, free: 6.359 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.26e-05/0.7688, allocations: 0 / 0.9563 GB, free: 6.359 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.929e-05/0.7688, allocations: 8.984 kB / 0.9563 GB, free: 6.352 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.86e-05/0.7689, allocations: 8.875 kB / 0.9563 GB, free: 6.344 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000483/0.7693, allocations: 100.4 kB / 0.9564 GB, free: 6.273 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.95e-05/0.7695, allocations: 66 kB / 0.9564 GB, free: 6.234 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.256e-05/0.7696, allocations: 13.62 kB / 0.9565 GB, free: 6.227 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.26e-05/0.7696, allocations: 33.41 kB / 0.9565 GB, free: 6.207 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.846e-05/0.7697, allocations: 34.2 kB / 0.9565 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.658e-05/0.7698, allocations: 7.188 kB / 0.9565 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001665/0.7699, allocations: 81.3 kB / 0.9566 GB, free: 6.141 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.245e-05/0.77, allocations: 22.97 kB / 0.9566 GB, free: 6.121 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.454e-05/0.77, allocations: 30.7 kB / 0.9567 GB, free: 6.09 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001605/0.7702, allocations: 99.98 kB / 0.9567 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.219e-06/0.7702, allocations: 0 / 0.9567 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.814e-06/0.7702, allocations: 0 / 0.9567 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 8.646e-06/0.7702, allocations: 0 / 0.9567 GB, free: 6.027 MB / 0.7169 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.0005272/0.7707, allocations: 409.8 kB / 0.9571 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.065e-05/0.7708, allocations: 12.97 kB / 0.9572 GB, free: 5.598 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.054e-05/0.7708, allocations: 16.33 kB / 0.9572 GB, free: 5.586 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.016e-05/0.7709, allocations: 171 kB / 0.9573 GB, free: 5.383 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.771e-05/0.7709, allocations: 6.75 kB / 0.9573 GB, free: 5.379 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.728e-05/0.771, allocations: 2.562 kB / 0.9573 GB, free: 5.379 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001728/0.7711, allocations: 71.55 kB / 0.9574 GB, free: 5.324 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.354e-06/0.7712, allocations: 0 / 0.9574 GB, free: 5.324 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.373e-05/0.7712, allocations: 4 kB / 0.9574 GB, free: 5.32 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.262e-06/0.7712, allocations: 1.562 kB / 0.9574 GB, free: 5.32 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001245/0.7713, allocations: 53.58 kB / 0.9575 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005287/0.7719, allocations: 325.4 kB / 0.9578 GB, free: 4.961 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001087/0.772, allocations: 51.02 kB / 0.9578 GB, free: 4.922 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.2e-05/0.7721, allocations: 36.38 kB / 0.9579 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.128e-05/0.7721, allocations: 0 / 0.9579 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00016/0.7723, allocations: 92.3 kB / 0.9579 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.163e-06/0.7723, allocations: 0 / 0.9579 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0003518/0.7726, allocations: 143.2 kB / 0.9581 GB, free: 4.742 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.453e-05/0.7727, allocations: 54.31 kB / 0.9581 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.496e-05/0.7727, allocations: 123.9 kB / 0.9583 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.164e-05/0.7727, allocations: 30.8 kB / 0.9583 GB, free: 4.527 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.271e-05/0.7728, allocations: 86.67 kB / 0.9584 GB, free: 4.441 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.696e-05/0.7728, allocations: 15.59 kB / 0.9584 GB, free: 4.43 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.841e-06/0.7728, allocations: 0 / 0.9584 GB, free: 4.43 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.351e-05/0.7729, allocations: 320.8 kB / 0.9587 GB, free: 4.109 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.576e-05/0.7729, allocations: 25.8 kB / 0.9587 GB, free: 4.102 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.898e-05/0.773, allocations: 65.95 kB / 0.9588 GB, free: 4.047 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.165e-05/0.7731, allocations: 36.62 kB / 0.9588 GB, free: 4.031 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.7731, allocations: 0 / 0.9588 GB, free: 4.031 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002024/0.7733, allocations: 126.2 kB / 0.9589 GB, free: 3.953 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.317e-05/0.7734, allocations: 7.875 kB / 0.9589 GB, free: 3.953 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.042e-06/0.7734, allocations: 7.938 kB / 0.9589 GB, free: 3.945 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.106e-05/0.7734, allocations: 1.5 kB / 0.9589 GB, free: 3.945 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.997e-05/0.7735, allocations: 9.344 kB / 0.959 GB, free: 3.945 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.011e-06/0.7735, allocations: 1.219 kB / 0.959 GB, free: 3.945 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.265e-05/0.7736, allocations: 16.92 kB / 0.959 GB, free: 3.934 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.216e-05/0.7736, allocations: 6.531 kB / 0.959 GB, free: 3.93 MB / 0.7169 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,$PRE.win.on,win.on,$PRE.win.p,win.p,$PRE.win.curSeed,win.curSeed,$whenCondition1,win.sampleTrigger) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.35e-05/0.7737, allocations: 119.2 kB / 0.9591 GB, free: 3.809 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.334e-05/0.7737, allocations: 10.69 kB / 0.9591 GB, free: 3.801 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.255e-05/0.7737, allocations: 9.734 kB / 0.9591 GB, free: 3.793 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.7737, allocations: 5.328 kB / 0.9591 GB, free: 3.789 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.7737, allocations: 0 / 0.9591 GB, free: 3.789 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.7737, allocations: 1.375 kB / 0.9591 GB, free: 3.789 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003528/0.7741, allocations: 392.4 kB / 0.9595 GB, free: 3.414 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.7741, allocations: 0 / 0.9595 GB, free: 3.414 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.79e-05/0.7741, allocations: 4.125 kB / 0.9595 GB, free: 3.414 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.917e-06/0.7741, allocations: 5.328 kB / 0.9595 GB, free: 3.41 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.458e-06/0.7742, allocations: 0 / 0.9595 GB, free: 3.41 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.016e-06/0.7742, allocations: 5.359 kB / 0.9595 GB, free: 3.406 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.7742, allocations: 0 / 0.9595 GB, free: 3.406 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000228/0.7744, allocations: 210.5 kB / 0.9597 GB, free: 3.238 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.106e-05/0.7744, allocations: 83.77 kB / 0.9598 GB, free: 3.141 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.874e-05/0.7745, allocations: 3.953 kB / 0.9598 GB, free: 3.137 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.543e-05/0.7746, allocations: 13.48 kB / 0.9598 GB, free: 3.129 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.131e-05/0.7746, allocations: 6.75 kB / 0.9598 GB, free: 3.125 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.059e-05/0.7746, allocations: 5.359 kB / 0.9598 GB, free: 3.121 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.604e-05/0.7747, allocations: 100.8 kB / 0.9599 GB, free: 3.031 MB / 0.7169 GB Notification: Performance of sort global known variables: time 9.1e-08/0.7747, allocations: 0 / 0.9599 GB, free: 3.031 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002892/0.775, allocations: 31.5 kB / 0.9599 GB, free: 3.027 MB / 0.7169 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003203/0.7753, allocations: 170.3 kB / 0.9601 GB, free: 2.902 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002246/0.7755, allocations: 78.48 kB / 0.9602 GB, free: 2.871 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.7755, allocations: 0.9062 kB / 0.9602 GB, free: 2.871 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.259e-05/0.7756, allocations: 34.39 kB / 0.9602 GB, free: 2.859 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002586/0.7759, allocations: 18.83 kB / 0.9602 GB, free: 2.844 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003345/0.7762, allocations: 206.1 kB / 0.9604 GB, free: 2.66 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001104/0.7764, allocations: 0.6862 MB / 0.9611 GB, free: 1.961 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.016e-05/0.7764, allocations: 12.64 kB / 0.9611 GB, free: 1.953 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.26e-05/0.7764, allocations: 13.97 kB / 0.9611 GB, free: 1.941 MB / 0.7169 GB Notification: Performance of SimCode: time 2.1e-07/0.7764, allocations: 0 / 0.9611 GB, free: 1.941 MB / 0.7169 GB Notification: Performance of Templates: time 0.003705/0.7802, allocations: 1.325 MB / 0.9624 GB, free: 1.258 MB / 0.7169 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