Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.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.Zhang2012WindowsAll,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.Zhang2012WindowsAll") translateModel(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll,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.Zhang2012WindowsAll") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001197/0.001197, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001637/0.001637, allocations: 193.3 kB / 16.25 MB, free: 6.637 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.41/1.41, allocations: 222.9 MB / 239.9 MB, free: 4.535 MB / 190.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.467/2.467, allocations: 390.2 MB / 0.6643 GB, free: 0.6016 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001776/0.001776, allocations: 55.91 kB / 0.812 GB, free: 14.8 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7481/0.7499, allocations: 140.3 MB / 0.9491 GB, free: 9.148 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll): time 0.003046/0.753, allocations: 1.569 MB / 0.9506 GB, free: 7.914 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001244/0.7543, allocations: 0.7216 MB / 0.9513 GB, free: 7.355 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.083e-05/0.7544, allocations: 1.656 kB / 0.9513 GB, free: 7.355 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.51e-05/0.7544, allocations: 0 / 0.9513 GB, free: 7.355 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.785e-05/0.7545, allocations: 9.219 kB / 0.9513 GB, free: 7.348 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006165/0.7551, allocations: 105.5 kB / 0.9514 GB, free: 7.277 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001159/0.7553, allocations: 80.2 kB / 0.9515 GB, free: 7.23 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.784e-05/0.7554, allocations: 25.69 kB / 0.9515 GB, free: 7.211 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.277e-05/0.7555, allocations: 33.53 kB / 0.9516 GB, free: 7.191 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.843e-05/0.7555, allocations: 39.3 kB / 0.9516 GB, free: 7.164 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.862e-05/0.7556, allocations: 6.812 kB / 0.9516 GB, free: 7.164 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001981/0.7558, allocations: 97.75 kB / 0.9517 GB, free: 7.113 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.38e-05/0.7558, allocations: 14.61 kB / 0.9517 GB, free: 7.102 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.336e-05/0.7558, allocations: 27.73 kB / 0.9517 GB, free: 7.082 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002219/0.7561, allocations: 143.7 kB / 0.9519 GB, free: 6.988 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.7561, allocations: 1.094 kB / 0.9519 GB, free: 6.988 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.263e-06/0.7561, allocations: 4 kB / 0.9519 GB, free: 6.984 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.342e-06/0.7561, allocations: 0 / 0.9519 GB, free: 6.984 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.0005341/0.7566, allocations: 427.7 kB / 0.9523 GB, free: 6.543 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.535e-05/0.7567, allocations: 9.719 kB / 0.9523 GB, free: 6.543 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.314e-05/0.7567, allocations: 4.219 kB / 0.9523 GB, free: 6.543 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.133e-05/0.7568, allocations: 176.3 kB / 0.9525 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.545e-05/0.7568, allocations: 2.594 kB / 0.9525 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.035e-05/0.7569, allocations: 7.891 kB / 0.9525 GB, free: 6.332 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001808/0.7571, allocations: 77.53 kB / 0.9526 GB, free: 6.27 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.987e-06/0.7571, allocations: 0 / 0.9526 GB, free: 6.27 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.194e-05/0.7571, allocations: 0 / 0.9526 GB, free: 6.27 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.51e-06/0.7571, allocations: 1.344 kB / 0.9526 GB, free: 6.27 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001197/0.7572, allocations: 37.28 kB / 0.9526 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005187/0.7577, allocations: 325.3 kB / 0.9529 GB, free: 5.918 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001216/0.7579, allocations: 44.12 kB / 0.9529 GB, free: 5.883 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.901e-05/0.758, allocations: 31.88 kB / 0.953 GB, free: 5.863 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 3.152e-05/0.758, allocations: 1.438 kB / 0.953 GB, free: 5.863 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002031/0.7582, allocations: 84.61 kB / 0.9531 GB, free: 5.785 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.462e-06/0.7582, allocations: 4 kB / 0.9531 GB, free: 5.781 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.000398/0.7586, allocations: 140.5 kB / 0.9532 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.097e-05/0.7587, allocations: 53.41 kB / 0.9532 GB, free: 5.637 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.713e-05/0.7588, allocations: 122.3 kB / 0.9534 GB, free: 5.523 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.377e-05/0.7588, allocations: 25.7 kB / 0.9534 GB, free: 5.492 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.068e-05/0.7588, allocations: 91.91 kB / 0.9535 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.019e-05/0.7588, allocations: 13.78 kB / 0.9535 GB, free: 5.391 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.631e-05/0.7589, allocations: 38.17 kB / 0.9535 GB, free: 5.355 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.016e-05/0.759, allocations: 321 kB / 0.9538 GB, free: 5.035 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.7e-05/0.759, allocations: 25.66 kB / 0.9539 GB, free: 5.023 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.189e-05/0.7591, allocations: 49.02 kB / 0.9539 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001486/0.7593, allocations: 81.5 kB / 0.954 GB, free: 4.926 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.7593, allocations: 0 / 0.954 GB, free: 4.926 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002232/0.7595, allocations: 113.1 kB / 0.9541 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.665e-05/0.7595, allocations: 5.125 kB / 0.9541 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.569e-06/0.7596, allocations: 1.25 kB / 0.9541 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.223e-05/0.7596, allocations: 1.156 kB / 0.9541 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.617e-05/0.7597, allocations: 16.64 kB / 0.9541 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.953e-06/0.7597, allocations: 5.438 kB / 0.9541 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.792e-05/0.7598, allocations: 11.94 kB / 0.9541 GB, free: 4.836 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.194e-05/0.7598, allocations: 3.062 kB / 0.9541 GB, free: 4.836 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,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 6.103e-05/0.7598, allocations: 123 kB / 0.9542 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.735e-05/0.7599, allocations: 13.92 kB / 0.9543 GB, free: 4.703 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.515e-05/0.7599, allocations: 14.81 kB / 0.9543 GB, free: 4.691 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.7599, allocations: 0 / 0.9543 GB, free: 4.691 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.7599, allocations: 1.031 kB / 0.9543 GB, free: 4.691 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.507e-06/0.7599, allocations: 4 kB / 0.9543 GB, free: 4.688 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003372/0.7603, allocations: 383.9 kB / 0.9546 GB, free: 4.316 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.7603, allocations: 0 / 0.9546 GB, free: 4.316 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.609e-05/0.7603, allocations: 2.594 kB / 0.9546 GB, free: 4.316 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.754e-06/0.7603, allocations: 1.5 kB / 0.9546 GB, free: 4.316 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.122e-05/0.7603, allocations: 5.203 kB / 0.9547 GB, free: 4.312 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.7603, allocations: 0 / 0.9547 GB, free: 4.312 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.7603, allocations: 3.938 kB / 0.9547 GB, free: 4.309 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000212/0.7606, allocations: 209.6 kB / 0.9549 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.965e-05/0.7606, allocations: 91.73 kB / 0.9549 GB, free: 4.031 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.845e-05/0.7606, allocations: 5 kB / 0.9549 GB, free: 4.027 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.444e-05/0.7607, allocations: 2.406 kB / 0.9549 GB, free: 4.027 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.686e-05/0.7607, allocations: 14.89 kB / 0.955 GB, free: 4.016 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.157e-06/0.7608, allocations: 2.844 kB / 0.955 GB, free: 4.016 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.421e-05/0.7608, allocations: 96.17 kB / 0.9551 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of sort global known variables: time 9.1e-08/0.7608, allocations: 0 / 0.9551 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002807/0.7611, allocations: 35.41 kB / 0.9551 GB, free: 3.922 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 (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.0002765/0.7614, allocations: 155.8 kB / 0.9552 GB, free: 3.809 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002109/0.7616, allocations: 78.77 kB / 0.9553 GB, free: 3.773 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.7616, allocations: 0 / 0.9553 GB, free: 3.773 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 8.601e-05/0.7617, allocations: 40.12 kB / 0.9554 GB, free: 3.754 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002384/0.7619, allocations: 12.28 kB / 0.9554 GB, free: 3.746 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003397/0.7623, allocations: 198.7 kB / 0.9556 GB, free: 3.57 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001051/0.7624, allocations: 0.6925 MB / 0.9562 GB, free: 2.863 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.716e-05/0.7624, allocations: 4.5 kB / 0.9562 GB, free: 2.863 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.668e-05/0.7625, allocations: 15.17 kB / 0.9563 GB, free: 2.852 MB / 0.7169 GB Notification: Performance of SimCode: time 2.3e-07/0.7625, allocations: 0 / 0.9563 GB, free: 2.852 MB / 0.7169 GB Notification: Performance of Templates: time 0.003581/0.7661, allocations: 1.404 MB / 0.9576 GB, free: 2.125 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.makefile (rm -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.sim & ./Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsAll.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll.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