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.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: "" <> buildModelFMU(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsAll",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll,fileNamePrefix="Buildings_9_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsAll",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001479/0.001479, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001676/0.001676, allocations: 195.1 kB / 16.14 MB, free: 6.645 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.332/1.332, allocations: 222.9 MB / 239.8 MB, free: 4.531 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.282/2.282, allocations: 390.2 MB / 0.6643 GB, free: 0.5625 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001257/0.001257, allocations: 59.91 kB / 0.812 GB, free: 14.77 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5815/0.5828, allocations: 140.4 MB / 0.949 GB, free: 9.379 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll): time 0.002193/0.585, allocations: 1.56 MB / 0.9506 GB, free: 8.152 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009545/0.586, allocations: 0.7246 MB / 0.9513 GB, free: 7.598 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.569e-05/0.586, allocations: 4.719 kB / 0.9513 GB, free: 7.594 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.247e-05/0.5861, allocations: 0 / 0.9513 GB, free: 7.594 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.801e-05/0.5861, allocations: 13.42 kB / 0.9513 GB, free: 7.582 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003963/0.5865, allocations: 105.3 kB / 0.9514 GB, free: 7.508 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.06e-05/0.5866, allocations: 78.2 kB / 0.9515 GB, free: 7.461 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.422e-05/0.5867, allocations: 13.31 kB / 0.9515 GB, free: 7.453 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.732e-05/0.5868, allocations: 34.23 kB / 0.9515 GB, free: 7.434 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.637e-05/0.5868, allocations: 39.05 kB / 0.9515 GB, free: 7.406 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.747e-05/0.5869, allocations: 7.656 kB / 0.9516 GB, free: 7.402 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001565/0.587, allocations: 85.5 kB / 0.9516 GB, free: 7.359 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.045e-05/0.5871, allocations: 10.98 kB / 0.9516 GB, free: 7.352 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.857e-05/0.5871, allocations: 32.48 kB / 0.9517 GB, free: 7.328 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001762/0.5873, allocations: 134.7 kB / 0.9518 GB, free: 7.242 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.5873, allocations: 1.375 kB / 0.9518 GB, free: 7.242 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.413e-06/0.5873, allocations: 7.922 kB / 0.9518 GB, free: 7.234 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.166e-06/0.5873, allocations: 0 / 0.9518 GB, free: 7.234 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.0004819/0.5878, allocations: 425.9 kB / 0.9522 GB, free: 6.797 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.401e-05/0.5878, allocations: 13.38 kB / 0.9522 GB, free: 6.793 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.858e-05/0.5879, allocations: 35.94 kB / 0.9523 GB, free: 6.75 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.108e-05/0.5879, allocations: 8.422 kB / 0.9523 GB, free: 6.746 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.072e-05/0.588, allocations: 176.2 kB / 0.9524 GB, free: 6.539 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.276e-05/0.588, allocations: 2.625 kB / 0.9524 GB, free: 6.539 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.514e-05/0.588, allocations: 3.375 kB / 0.9524 GB, free: 6.539 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001578/0.5882, allocations: 80.77 kB / 0.9525 GB, free: 6.473 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.633e-06/0.5882, allocations: 0 / 0.9525 GB, free: 6.473 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.098e-05/0.5882, allocations: 1.375 kB / 0.9525 GB, free: 6.473 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.928e-06/0.5882, allocations: 4 kB / 0.9525 GB, free: 6.469 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001196/0.5883, allocations: 37.03 kB / 0.9526 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004675/0.5888, allocations: 321.9 kB / 0.9529 GB, free: 6.121 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001098/0.5889, allocations: 52.42 kB / 0.9529 GB, free: 6.078 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.161e-05/0.589, allocations: 31.44 kB / 0.953 GB, free: 6.059 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.786e-05/0.589, allocations: 5 kB / 0.953 GB, free: 6.055 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001465/0.5892, allocations: 78.22 kB / 0.953 GB, free: 5.984 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.313e-06/0.5892, allocations: 0 / 0.953 GB, free: 5.984 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0003445/0.5896, allocations: 139.7 kB / 0.9532 GB, free: 5.902 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.711e-05/0.5896, allocations: 57.59 kB / 0.9532 GB, free: 5.836 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.415e-05/0.5897, allocations: 124.3 kB / 0.9533 GB, free: 5.719 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.055e-05/0.5897, allocations: 30.67 kB / 0.9534 GB, free: 5.684 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.529e-05/0.5897, allocations: 87.33 kB / 0.9534 GB, free: 5.598 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.768e-05/0.5897, allocations: 22.09 kB / 0.9535 GB, free: 5.578 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.149e-05/0.5898, allocations: 26.41 kB / 0.9535 GB, free: 5.555 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.386e-05/0.5898, allocations: 324.8 kB / 0.9538 GB, free: 5.23 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.663e-05/0.5899, allocations: 30.11 kB / 0.9538 GB, free: 5.215 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.922e-05/0.59, allocations: 49.39 kB / 0.9539 GB, free: 5.176 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001317/0.5901, allocations: 68.56 kB / 0.9539 GB, free: 5.129 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.5901, allocations: 1.094 kB / 0.9539 GB, free: 5.129 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002054/0.5904, allocations: 117.4 kB / 0.9541 GB, free: 5.055 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.295e-05/0.5904, allocations: 5.938 kB / 0.9541 GB, free: 5.055 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.679e-06/0.5904, allocations: 1.5 kB / 0.9541 GB, free: 5.055 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.227e-05/0.5904, allocations: 1.5 kB / 0.9541 GB, free: 5.055 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.928e-05/0.5905, allocations: 11.45 kB / 0.9541 GB, free: 5.051 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.013e-06/0.5905, allocations: 6.125 kB / 0.9541 GB, free: 5.047 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.354e-05/0.5906, allocations: 15.3 kB / 0.9541 GB, free: 5.035 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.393e-05/0.5906, allocations: 3.188 kB / 0.9541 GB, free: 5.035 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.962e-05/0.5907, allocations: 123 kB / 0.9542 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.683e-05/0.5907, allocations: 6.781 kB / 0.9542 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.362e-05/0.5907, allocations: 9.75 kB / 0.9542 GB, free: 4.898 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.5907, allocations: 1.375 kB / 0.9542 GB, free: 4.898 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.558e-06/0.5907, allocations: 3.984 kB / 0.9542 GB, free: 4.895 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.385e-06/0.5907, allocations: 1.406 kB / 0.9542 GB, free: 4.895 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003444/0.5911, allocations: 386.8 kB / 0.9546 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.5911, allocations: 0 / 0.9546 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.723e-05/0.5911, allocations: 3.625 kB / 0.9546 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/0.5912, allocations: 0 / 0.9546 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.214e-05/0.5912, allocations: 5.375 kB / 0.9546 GB, free: 4.516 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.525e-06/0.5912, allocations: 11.81 kB / 0.9546 GB, free: 4.504 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.5912, allocations: 1.562 kB / 0.9546 GB, free: 4.504 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002276/0.5914, allocations: 205.7 kB / 0.9548 GB, free: 4.336 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.073e-05/0.5914, allocations: 83.3 kB / 0.9549 GB, free: 4.238 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.745e-05/0.5915, allocations: 0 / 0.9549 GB, free: 4.238 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.832e-05/0.5916, allocations: 15.33 kB / 0.9549 GB, free: 4.227 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.119e-05/0.5916, allocations: 6.125 kB / 0.9549 GB, free: 4.223 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.598e-06/0.5916, allocations: 6.891 kB / 0.9549 GB, free: 4.219 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.225e-05/0.5916, allocations: 92.92 kB / 0.955 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.21e-07/0.5917, allocations: 0 / 0.955 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000275/0.5919, allocations: 35.56 kB / 0.9551 GB, free: 4.129 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.0005852/0.5925, allocations: 0.814 MB / 0.9559 GB, free: 3.391 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002068/0.5927, allocations: 73.78 kB / 0.9559 GB, free: 3.359 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.5927, allocations: 1.438 kB / 0.9559 GB, free: 3.359 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 8.749e-05/0.5928, allocations: 39.12 kB / 0.956 GB, free: 3.34 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002377/0.5931, allocations: 16.22 kB / 0.956 GB, free: 3.328 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001309/0.5944, allocations: 1.486 MB / 0.9574 GB, free: 1.949 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001228/0.5945, allocations: 0.6893 MB / 0.9581 GB, free: 1.246 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.82e-05/0.5946, allocations: 10.08 kB / 0.9581 GB, free: 1.238 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.064e-05/0.5946, allocations: 15.06 kB / 0.9581 GB, free: 1.227 MB / 0.7169 GB Notification: Performance of SimCode: time 3.61e-07/0.5946, allocations: 0 / 0.9581 GB, free: 1.227 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01099/0.6056, allocations: 2.413 MB / 0.9605 GB, free: 8 kB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001832/0.6058, allocations: 256.5 kB / 0.9607 GB, free: 15.76 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.814/2.42, allocations: 0 / 0.9607 GB, free: 15.76 MB / 0.7325 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsAll_res.mat --tempDir=temp_Buildings_9_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsAll_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsAll.fmu > 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/jenkins1/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,TOut.y,occ.startTime,occ.startValue,occ.y,time,win.A,win.B,win.TOut,win.occ,win.on,win.p,win.samplePeriod,win.seed