Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.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.Zhang2012WindowsNorth,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.Zhang2012WindowsNorth") translateModel(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth,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.Zhang2012WindowsNorth") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001062/0.001062, allocations: 91.06 kB / 15.36 MB, free: 0.7383 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.008933/0.008933, allocations: 170.8 kB / 16.26 MB, free: 6.676 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.414/1.414, allocations: 223.3 MB / 240.3 MB, free: 5.34 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.397/2.397, allocations: 390.9 MB / 0.6663 GB, free: 2.371 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003179/0.0003179, allocations: 15.94 kB / 0.816 GB, free: 13.25 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7558/0.7562, allocations: 142.4 MB / 0.955 GB, free: 7.707 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth): time 0.001683/0.7579, allocations: 1.225 MB / 0.9562 GB, free: 6.734 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001215/0.7591, allocations: 0.7135 MB / 0.9569 GB, free: 6.188 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.037e-05/0.7592, allocations: 0.9375 kB / 0.9569 GB, free: 6.188 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.411e-05/0.7592, allocations: 3.984 kB / 0.9569 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.689e-05/0.7593, allocations: 12.91 kB / 0.9569 GB, free: 6.172 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005913/0.7599, allocations: 109.9 kB / 0.957 GB, free: 6.094 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001127/0.76, allocations: 69.75 kB / 0.9571 GB, free: 6.055 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.847e-05/0.7602, allocations: 17.31 kB / 0.9571 GB, free: 6.043 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000104/0.7603, allocations: 29.03 kB / 0.9572 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.63e-05/0.7604, allocations: 31.47 kB / 0.9572 GB, free: 6.008 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.681e-05/0.7604, allocations: 2.781 kB / 0.9572 GB, free: 6.008 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002126/0.7606, allocations: 93.5 kB / 0.9573 GB, free: 5.957 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.528e-05/0.7606, allocations: 19.28 kB / 0.9573 GB, free: 5.941 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.166e-05/0.7607, allocations: 57.48 kB / 0.9574 GB, free: 5.887 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002279/0.7609, allocations: 131 kB / 0.9575 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.7609, allocations: 1.75 kB / 0.9575 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.413e-06/0.7609, allocations: 0 / 0.9575 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.458e-06/0.761, allocations: 0 / 0.9575 GB, free: 5.805 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.0005746/0.7615, allocations: 409.6 kB / 0.9579 GB, free: 5.379 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.888e-05/0.7616, allocations: 12.97 kB / 0.9579 GB, free: 5.375 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.602e-05/0.7616, allocations: 13.12 kB / 0.9579 GB, free: 5.367 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.791e-05/0.7617, allocations: 178.4 kB / 0.9581 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.722e-05/0.7618, allocations: 3.531 kB / 0.9581 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.262e-05/0.7618, allocations: 4.375 kB / 0.9581 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001906/0.762, allocations: 78.98 kB / 0.9581 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.009e-05/0.762, allocations: 0 / 0.9581 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.283e-05/0.762, allocations: 0 / 0.9581 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.839e-06/0.762, allocations: 1.375 kB / 0.9581 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001421/0.7622, allocations: 45.78 kB / 0.9582 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005604/0.7628, allocations: 322 kB / 0.9585 GB, free: 4.746 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001255/0.7629, allocations: 55.36 kB / 0.9586 GB, free: 4.703 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.489e-05/0.763, allocations: 34.56 kB / 0.9586 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.541e-05/0.763, allocations: 1.188 kB / 0.9586 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001861/0.7632, allocations: 79.84 kB / 0.9587 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.983e-06/0.7632, allocations: 1.219 kB / 0.9587 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0004062/0.7636, allocations: 152.7 kB / 0.9588 GB, free: 4.527 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.867e-05/0.7637, allocations: 52.44 kB / 0.9589 GB, free: 4.465 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.511e-05/0.7638, allocations: 126 kB / 0.959 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.464e-05/0.7638, allocations: 31.39 kB / 0.959 GB, free: 4.312 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.568e-05/0.7638, allocations: 89.45 kB / 0.9591 GB, free: 4.223 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.849e-05/0.7639, allocations: 14.47 kB / 0.9591 GB, free: 4.211 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.071e-05/0.7639, allocations: 21.95 kB / 0.9591 GB, free: 4.188 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.699e-05/0.7639, allocations: 320.2 kB / 0.9594 GB, free: 3.867 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.333e-05/0.764, allocations: 35.06 kB / 0.9595 GB, free: 3.852 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.305e-05/0.7641, allocations: 49.78 kB / 0.9595 GB, free: 3.812 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001604/0.7643, allocations: 84.47 kB / 0.9596 GB, free: 3.758 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.7643, allocations: 7.938 kB / 0.9596 GB, free: 3.75 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002369/0.7645, allocations: 122.3 kB / 0.9597 GB, free: 3.676 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.786e-05/0.7646, allocations: 6.188 kB / 0.9597 GB, free: 3.676 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/0.7646, allocations: 0 / 0.9597 GB, free: 3.676 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.362e-05/0.7646, allocations: 1.562 kB / 0.9597 GB, free: 3.676 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.386e-05/0.7647, allocations: 12.86 kB / 0.9597 GB, free: 3.672 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.602e-06/0.7647, allocations: 9.625 kB / 0.9597 GB, free: 3.664 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.778e-05/0.7648, allocations: 13.97 kB / 0.9598 GB, free: 3.656 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.347e-05/0.7648, allocations: 2.312 kB / 0.9598 GB, free: 3.656 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 7.112e-05/0.7649, allocations: 119.1 kB / 0.9599 GB, free: 3.535 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.663e-05/0.7649, allocations: 10.86 kB / 0.9599 GB, free: 3.527 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.931e-05/0.7649, allocations: 9.906 kB / 0.9599 GB, free: 3.52 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.846e-06/0.765, allocations: 1.375 kB / 0.9599 GB, free: 3.52 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.765, allocations: 4 kB / 0.9599 GB, free: 3.516 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.467e-06/0.765, allocations: 0 / 0.9599 GB, free: 3.516 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003836/0.7654, allocations: 380.4 kB / 0.9603 GB, free: 3.152 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.7654, allocations: 1.375 kB / 0.9603 GB, free: 3.152 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.803e-05/0.7654, allocations: 4.125 kB / 0.9603 GB, free: 3.152 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.524e-06/0.7654, allocations: 0 / 0.9603 GB, free: 3.152 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.191e-05/0.7654, allocations: 13.36 kB / 0.9603 GB, free: 3.141 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.806e-06/0.7654, allocations: 1.375 kB / 0.9603 GB, free: 3.141 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.7655, allocations: 3.938 kB / 0.9603 GB, free: 3.137 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002494/0.7657, allocations: 210.4 kB / 0.9605 GB, free: 2.969 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.398e-05/0.7657, allocations: 95.67 kB / 0.9606 GB, free: 2.859 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.864e-05/0.7658, allocations: 5.375 kB / 0.9606 GB, free: 2.855 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.205e-05/0.7659, allocations: 12.12 kB / 0.9606 GB, free: 2.848 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.301e-05/0.7659, allocations: 14.61 kB / 0.9606 GB, free: 2.836 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.506e-06/0.7659, allocations: 1.375 kB / 0.9606 GB, free: 2.836 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.618e-05/0.766, allocations: 92.89 kB / 0.9607 GB, free: 2.754 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.11e-07/0.766, allocations: 0 / 0.9607 GB, free: 2.754 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003214/0.7663, allocations: 36.88 kB / 0.9607 GB, free: 2.746 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.0003313/0.7666, allocations: 164.2 kB / 0.9609 GB, free: 2.629 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002345/0.7669, allocations: 80.25 kB / 0.961 GB, free: 2.598 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.7669, allocations: 0 / 0.961 GB, free: 2.598 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.646e-05/0.767, allocations: 39.64 kB / 0.961 GB, free: 2.582 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000268/0.7673, allocations: 12.45 kB / 0.961 GB, free: 2.574 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003745/0.7677, allocations: 206.8 kB / 0.9612 GB, free: 2.391 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001448/0.7678, allocations: 0.6878 MB / 0.9619 GB, free: 1.688 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.908e-05/0.7679, allocations: 8.109 kB / 0.9619 GB, free: 1.684 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.548e-05/0.7679, allocations: 10.19 kB / 0.9619 GB, free: 1.676 MB / 0.7169 GB Notification: Performance of SimCode: time 1.182e-06/0.7679, allocations: 0 / 0.9619 GB, free: 1.676 MB / 0.7169 GB Notification: Performance of Templates: time 0.004321/0.7722, allocations: 1.36 MB / 0.9632 GB, free: 0.9688 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.makefile (rm -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.sim & ./Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsNorth.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth.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