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.001041/0.001041, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001016/0.001016, allocations: 196.8 kB / 16.14 MB, free: 6.711 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.357/1.357, allocations: 222.9 MB / 239.8 MB, free: 4.598 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.487/2.487, allocations: 390.2 MB / 0.6642 GB, free: 0.6445 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001402/0.001402, allocations: 67.84 kB / 0.8118 GB, free: 14.88 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7241/0.7255, allocations: 140.4 MB / 0.9489 GB, free: 9.293 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth): time 0.003927/0.7295, allocations: 1.555 MB / 0.9504 GB, free: 8.07 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.00207/0.7316, allocations: 0.7331 MB / 0.9511 GB, free: 7.508 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.134e-05/0.7317, allocations: 5.562 kB / 0.9512 GB, free: 7.504 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 4.229e-05/0.7317, allocations: 3.984 kB / 0.9512 GB, free: 7.5 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.688e-05/0.7318, allocations: 9.234 kB / 0.9512 GB, free: 7.492 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.00077/0.7326, allocations: 104.8 kB / 0.9513 GB, free: 7.418 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.000144/0.7328, allocations: 73.95 kB / 0.9513 GB, free: 7.375 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001286/0.7329, allocations: 21.47 kB / 0.9514 GB, free: 7.359 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001225/0.7331, allocations: 25.92 kB / 0.9514 GB, free: 7.348 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 9.783e-05/0.7332, allocations: 43 kB / 0.9514 GB, free: 7.316 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.93e-05/0.7332, allocations: 4.25 kB / 0.9514 GB, free: 7.316 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000292/0.7335, allocations: 94.19 kB / 0.9515 GB, free: 7.266 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.533e-05/0.7336, allocations: 14.42 kB / 0.9515 GB, free: 7.254 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.479e-05/0.7337, allocations: 31.44 kB / 0.9516 GB, free: 7.23 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003236/0.734, allocations: 140.1 kB / 0.9517 GB, free: 7.141 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.734, allocations: 0 / 0.9517 GB, free: 7.141 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.833e-06/0.734, allocations: 0 / 0.9517 GB, free: 7.141 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.791e-06/0.7341, allocations: 0 / 0.9517 GB, free: 7.141 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.000914/0.735, allocations: 421 kB / 0.9521 GB, free: 6.707 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.632e-05/0.7351, allocations: 8.406 kB / 0.9521 GB, free: 6.707 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.628e-05/0.7351, allocations: 5.219 kB / 0.9521 GB, free: 6.707 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001456/0.7353, allocations: 171.7 kB / 0.9523 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.495e-05/0.7354, allocations: 7.469 kB / 0.9523 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.415e-05/0.7354, allocations: 12 kB / 0.9523 GB, free: 6.492 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002967/0.7357, allocations: 67.47 kB / 0.9524 GB, free: 6.438 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.478e-05/0.7358, allocations: 0 / 0.9524 GB, free: 6.438 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.093e-05/0.7358, allocations: 1.25 kB / 0.9524 GB, free: 6.438 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.734e-06/0.7358, allocations: 1.719 kB / 0.9524 GB, free: 6.438 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002272/0.736, allocations: 36.09 kB / 0.9524 GB, free: 6.422 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008018/0.7369, allocations: 326.1 kB / 0.9527 GB, free: 6.086 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001953/0.7371, allocations: 52.23 kB / 0.9528 GB, free: 6.043 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001405/0.7372, allocations: 31.09 kB / 0.9528 GB, free: 6.023 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 3.389e-05/0.7373, allocations: 1.281 kB / 0.9528 GB, free: 6.023 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003261/0.7376, allocations: 81.22 kB / 0.9529 GB, free: 5.949 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 4.067e-06/0.7376, allocations: 0 / 0.9529 GB, free: 5.949 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0006148/0.7383, allocations: 141.1 kB / 0.953 GB, free: 5.867 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.455e-05/0.7384, allocations: 60.81 kB / 0.9531 GB, free: 5.797 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001427/0.7385, allocations: 121.2 kB / 0.9532 GB, free: 5.684 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.066e-05/0.7385, allocations: 26.73 kB / 0.9532 GB, free: 5.652 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.998e-05/0.7386, allocations: 90.89 kB / 0.9533 GB, free: 5.562 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.587e-05/0.7387, allocations: 22.3 kB / 0.9533 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.711e-05/0.7388, allocations: 26.25 kB / 0.9533 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.895e-05/0.7389, allocations: 325.3 kB / 0.9536 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001321/0.739, allocations: 22.3 kB / 0.9537 GB, free: 5.188 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001404/0.7392, allocations: 48.67 kB / 0.9537 GB, free: 5.148 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002638/0.7394, allocations: 73 kB / 0.9538 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.7395, allocations: 1.188 kB / 0.9538 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003772/0.7398, allocations: 121 kB / 0.9539 GB, free: 5.02 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.295e-05/0.7399, allocations: 5.656 kB / 0.9539 GB, free: 5.02 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.597e-06/0.7399, allocations: 0 / 0.9539 GB, free: 5.02 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.858e-05/0.7399, allocations: 1.469 kB / 0.9539 GB, free: 5.02 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001474/0.7401, allocations: 16.55 kB / 0.9539 GB, free: 5.012 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.705e-05/0.7401, allocations: 1.188 kB / 0.9539 GB, free: 5.012 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001164/0.7402, allocations: 16.67 kB / 0.9539 GB, free: 5 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.367e-05/0.7403, allocations: 2.781 kB / 0.9539 GB, free: 5 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 0.0001187/0.7404, allocations: 122.2 kB / 0.954 GB, free: 4.875 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.053e-05/0.7404, allocations: 7.188 kB / 0.9541 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.155e-05/0.7405, allocations: 9.844 kB / 0.9541 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.108e-06/0.7405, allocations: 5.469 kB / 0.9541 GB, free: 4.859 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.938e-06/0.7405, allocations: 0 / 0.9541 GB, free: 4.859 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.787e-06/0.7405, allocations: 9.328 kB / 0.9541 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006253/0.7412, allocations: 382 kB / 0.9544 GB, free: 4.48 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.867e-06/0.7412, allocations: 0 / 0.9544 GB, free: 4.48 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.252e-05/0.7413, allocations: 4.125 kB / 0.9544 GB, free: 4.48 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.947e-06/0.7413, allocations: 0 / 0.9544 GB, free: 4.48 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.791e-05/0.7413, allocations: 5.031 kB / 0.9545 GB, free: 4.477 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.316e-06/0.7413, allocations: 5.25 kB / 0.9545 GB, free: 4.473 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/0.7413, allocations: 7.938 kB / 0.9545 GB, free: 4.465 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000383/0.7417, allocations: 201.9 kB / 0.9547 GB, free: 4.301 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.981e-05/0.7418, allocations: 83.77 kB / 0.9547 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.075e-05/0.7418, allocations: 0 / 0.9547 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001515/0.742, allocations: 11.55 kB / 0.9547 GB, free: 4.195 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.499e-05/0.7421, allocations: 6.375 kB / 0.9548 GB, free: 4.191 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.7e-05/0.7421, allocations: 10.45 kB / 0.9548 GB, free: 4.184 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 6.007e-05/0.7422, allocations: 96.34 kB / 0.9549 GB, free: 4.098 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.7e-07/0.7422, allocations: 0 / 0.9549 GB, free: 4.098 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0005189/0.7427, allocations: 41.05 kB / 0.9549 GB, free: 4.086 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.0005033/0.7432, allocations: 156.1 kB / 0.955 GB, free: 3.973 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003287/0.7436, allocations: 76.5 kB / 0.9551 GB, free: 3.938 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.7436, allocations: 0 / 0.9551 GB, free: 3.938 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001314/0.7437, allocations: 32.92 kB / 0.9551 GB, free: 3.926 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003714/0.7441, allocations: 6.656 kB / 0.9552 GB, free: 3.922 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005303/0.7446, allocations: 193.9 kB / 0.9553 GB, free: 3.75 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001449/0.7448, allocations: 0.6944 MB / 0.956 GB, free: 3.043 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 5.802e-05/0.7449, allocations: 7.203 kB / 0.956 GB, free: 3.039 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.59e-05/0.7449, allocations: 14.44 kB / 0.956 GB, free: 3.027 MB / 0.7169 GB Notification: Performance of SimCode: time 2.51e-07/0.7449, allocations: 0 / 0.956 GB, free: 3.027 MB / 0.7169 GB Notification: Performance of Templates: time 0.005643/0.7506, allocations: 1.37 MB / 0.9574 GB, free: 2.316 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