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.001486/0.001486, allocations: 108 kB / 15.6 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.002096/0.002096, allocations: 192.8 kB / 16.53 MB, free: 6.391 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.398/1.398, allocations: 222.9 MB / 240.2 MB, free: 4.418 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.413/2.413, allocations: 390.2 MB / 0.6647 GB, free: 432 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001457/0.001457, allocations: 63.91 kB / 0.8125 GB, free: 14.45 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7775/0.779, allocations: 140.4 MB / 0.9496 GB, free: 9.086 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsNorth): time 0.002525/0.7816, allocations: 1.49 MB / 0.951 GB, free: 7.91 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0011/0.7827, allocations: 0.7338 MB / 0.9518 GB, free: 7.34 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.958e-05/0.7828, allocations: 0 / 0.9518 GB, free: 7.34 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.092e-05/0.7828, allocations: 3.938 kB / 0.9518 GB, free: 7.336 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.267e-05/0.7829, allocations: 13.45 kB / 0.9518 GB, free: 7.324 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005582/0.7834, allocations: 126.7 kB / 0.9519 GB, free: 7.234 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001185/0.7836, allocations: 74.11 kB / 0.952 GB, free: 7.191 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001069/0.7837, allocations: 18.77 kB / 0.952 GB, free: 7.18 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.249e-05/0.7838, allocations: 37.41 kB / 0.952 GB, free: 7.156 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.553e-05/0.7839, allocations: 38.95 kB / 0.9521 GB, free: 7.129 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.478e-05/0.7839, allocations: 7.125 kB / 0.9521 GB, free: 7.129 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001894/0.7841, allocations: 93.72 kB / 0.9522 GB, free: 7.082 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.639e-05/0.7841, allocations: 18.41 kB / 0.9522 GB, free: 7.066 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.613e-05/0.7842, allocations: 28.33 kB / 0.9522 GB, free: 7.047 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002238/0.7844, allocations: 139.7 kB / 0.9523 GB, free: 6.957 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.7844, allocations: 4 kB / 0.9523 GB, free: 6.953 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.873e-06/0.7844, allocations: 0 / 0.9523 GB, free: 6.953 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.49e-06/0.7844, allocations: 0 / 0.9523 GB, free: 6.953 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.0005539/0.785, allocations: 432.8 kB / 0.9528 GB, free: 6.508 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.722e-05/0.785, allocations: 8.531 kB / 0.9528 GB, free: 6.508 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.243e-05/0.7851, allocations: 8.906 kB / 0.9528 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.536e-05/0.7852, allocations: 168.6 kB / 0.9529 GB, free: 6.305 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.459e-05/0.7852, allocations: 2.5 kB / 0.9529 GB, free: 6.305 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.942e-05/0.7852, allocations: 12.22 kB / 0.9529 GB, free: 6.297 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001749/0.7854, allocations: 71.78 kB / 0.953 GB, free: 6.238 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.407e-06/0.7854, allocations: 0 / 0.953 GB, free: 6.238 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.386e-05/0.7854, allocations: 4.891 kB / 0.953 GB, free: 6.234 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.979e-06/0.7854, allocations: 1.25 kB / 0.953 GB, free: 6.234 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001235/0.7856, allocations: 36.66 kB / 0.9531 GB, free: 6.219 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005215/0.7861, allocations: 325.3 kB / 0.9534 GB, free: 5.883 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001175/0.7862, allocations: 45.38 kB / 0.9534 GB, free: 5.848 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.72e-05/0.7863, allocations: 35.22 kB / 0.9534 GB, free: 5.824 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.402e-05/0.7863, allocations: 1.156 kB / 0.9534 GB, free: 5.824 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001888/0.7865, allocations: 81.09 kB / 0.9535 GB, free: 5.75 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.212e-06/0.7866, allocations: 0 / 0.9535 GB, free: 5.75 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0003722/0.7869, allocations: 141.6 kB / 0.9537 GB, free: 5.668 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.963e-05/0.787, allocations: 61.08 kB / 0.9537 GB, free: 5.598 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.173e-05/0.787, allocations: 120.9 kB / 0.9538 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.097e-05/0.7871, allocations: 27.33 kB / 0.9539 GB, free: 5.453 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.201e-05/0.7871, allocations: 89.19 kB / 0.9539 GB, free: 5.363 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.659e-05/0.7871, allocations: 19.75 kB / 0.954 GB, free: 5.348 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.302e-05/0.7872, allocations: 29.3 kB / 0.954 GB, free: 5.32 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.703e-05/0.7872, allocations: 325.2 kB / 0.9543 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.485e-05/0.7873, allocations: 26 kB / 0.9543 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.207e-05/0.7874, allocations: 45.31 kB / 0.9544 GB, free: 4.949 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001412/0.7875, allocations: 77.86 kB / 0.9544 GB, free: 4.895 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.7875, allocations: 0 / 0.9544 GB, free: 4.895 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002029/0.7878, allocations: 117 kB / 0.9545 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.307e-05/0.7878, allocations: 5.219 kB / 0.9546 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.895e-06/0.7878, allocations: 1.031 kB / 0.9546 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.555e-05/0.7878, allocations: 1.531 kB / 0.9546 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.835e-05/0.7879, allocations: 12.5 kB / 0.9546 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.614e-06/0.7879, allocations: 5.266 kB / 0.9546 GB, free: 4.812 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.164e-05/0.788, allocations: 11.59 kB / 0.9546 GB, free: 4.805 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.396e-05/0.788, allocations: 2.688 kB / 0.9546 GB, free: 4.805 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.865e-05/0.7881, allocations: 123.5 kB / 0.9547 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.596e-05/0.7881, allocations: 7.25 kB / 0.9547 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.78e-05/0.7881, allocations: 13.45 kB / 0.9547 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.856e-06/0.7881, allocations: 1.094 kB / 0.9547 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.558e-06/0.7882, allocations: 4 kB / 0.9547 GB, free: 4.66 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-06/0.7882, allocations: 1.125 kB / 0.9547 GB, free: 4.66 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003418/0.7885, allocations: 375 kB / 0.9551 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.462e-06/0.7885, allocations: 3.938 kB / 0.9551 GB, free: 4.293 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.636e-05/0.7886, allocations: 3.469 kB / 0.9551 GB, free: 4.293 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.364e-06/0.7886, allocations: 3.984 kB / 0.9551 GB, free: 4.289 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.229e-05/0.7886, allocations: 13.42 kB / 0.9551 GB, free: 4.277 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/0.7886, allocations: 5.25 kB / 0.9551 GB, free: 4.273 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.7886, allocations: 7.938 kB / 0.9551 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002295/0.7888, allocations: 201.3 kB / 0.9553 GB, free: 4.102 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.122e-05/0.7889, allocations: 83.7 kB / 0.9554 GB, free: 4.004 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.141e-05/0.7889, allocations: 3.984 kB / 0.9554 GB, free: 4 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.399e-05/0.789, allocations: 12.09 kB / 0.9554 GB, free: 3.992 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.766e-05/0.789, allocations: 10.7 kB / 0.9554 GB, free: 3.984 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.556e-06/0.789, allocations: 5.438 kB / 0.9554 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.735e-05/0.7891, allocations: 96.86 kB / 0.9555 GB, free: 3.895 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.01e-07/0.7891, allocations: 0 / 0.9555 GB, free: 3.895 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002857/0.7894, allocations: 36.06 kB / 0.9556 GB, free: 3.887 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.000323/0.7897, allocations: 159.7 kB / 0.9557 GB, free: 3.773 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002324/0.79, allocations: 78.7 kB / 0.9558 GB, free: 3.738 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.79, allocations: 0 / 0.9558 GB, free: 3.738 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.087e-05/0.7901, allocations: 40.33 kB / 0.9558 GB, free: 3.719 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002436/0.7903, allocations: 6.297 kB / 0.9558 GB, free: 3.715 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003664/0.7907, allocations: 184.6 kB / 0.956 GB, free: 3.555 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001132/0.7908, allocations: 0.6916 MB / 0.9567 GB, free: 2.848 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.383e-05/0.7909, allocations: 4.031 kB / 0.9567 GB, free: 2.848 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.514e-05/0.7909, allocations: 10.28 kB / 0.9567 GB, free: 2.84 MB / 0.7169 GB Notification: Performance of SimCode: time 2.4e-07/0.7909, allocations: 0 / 0.9567 GB, free: 2.84 MB / 0.7169 GB Notification: Performance of Templates: time 0.003848/0.7947, allocations: 1.454 MB / 0.9581 GB, free: 2.086 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