Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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.Zhang2012WindowsEast,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsEast",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsEast",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.00132/0.00132, 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.001196/0.001196, allocations: 193.1 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.233/1.233, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.555/2.555, allocations: 461.9 MB / 0.7347 GB, free: 14.74 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001303/0.001303, allocations: 64.81 kB / 0.8992 GB, free: 36.93 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.253/0.2543, allocations: 157.4 MB / 1.053 GB, free: 8.277 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast): time 0.002514/0.2569, allocations: 1.497 MB / 1.054 GB, free: 6.77 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001132/0.258, allocations: 0.7365 MB / 1.055 GB, free: 6.027 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.973e-05/0.2581, allocations: 7.938 kB / 1.055 GB, free: 6.02 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.769e-05/0.2581, allocations: 3.938 kB / 1.055 GB, free: 6.016 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 4.278e-05/0.2582, allocations: 11.86 kB / 1.055 GB, free: 6.004 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004875/0.2587, allocations: 123.5 kB / 1.055 GB, free: 5.883 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 9.285e-05/0.2588, allocations: 67.84 kB / 1.055 GB, free: 5.816 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 8.037e-05/0.2589, allocations: 15.97 kB / 1.055 GB, free: 5.801 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 7.476e-05/0.259, allocations: 39.91 kB / 1.055 GB, free: 5.762 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.393e-05/0.259, allocations: 43.83 kB / 1.055 GB, free: 5.719 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.941e-05/0.2591, allocations: 11.94 kB / 1.055 GB, free: 5.707 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001737/0.2592, allocations: 87.84 kB / 1.055 GB, free: 5.621 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.54e-05/0.2593, allocations: 23.91 kB / 1.056 GB, free: 5.598 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.763e-05/0.2593, allocations: 35.86 kB / 1.056 GB, free: 5.562 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002024/0.2595, allocations: 135.9 kB / 1.056 GB, free: 5.43 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.2595, allocations: 4 kB / 1.056 GB, free: 5.426 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.243e-06/0.2595, allocations: 0 / 1.056 GB, free: 5.426 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.439e-06/0.2596, allocations: 0 / 1.056 GB, free: 5.426 MB / 0.8106 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.0005491/0.2601, allocations: 414.4 kB / 1.056 GB, free: 4.969 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.688e-05/0.2602, allocations: 16.56 kB / 1.056 GB, free: 4.953 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.744e-05/0.2602, allocations: 38.73 kB / 1.056 GB, free: 4.906 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.182e-05/0.2602, allocations: 8.844 kB / 1.056 GB, free: 4.898 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001183/0.2604, allocations: 176.2 kB / 1.056 GB, free: 4.688 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.013e-05/0.2604, allocations: 4.375 kB / 1.056 GB, free: 4.684 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.604e-05/0.2604, allocations: 8.375 kB / 1.056 GB, free: 4.676 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001687/0.2606, allocations: 69.77 kB / 1.056 GB, free: 4.602 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.043e-06/0.2606, allocations: 4 kB / 1.056 GB, free: 4.598 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.171e-05/0.2606, allocations: 4 kB / 1.056 GB, free: 4.594 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.967e-06/0.2606, allocations: 4 kB / 1.056 GB, free: 4.59 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001269/0.2608, allocations: 43.89 kB / 1.056 GB, free: 4.547 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005604/0.2613, allocations: 312.8 kB / 1.057 GB, free: 4.191 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001183/0.2614, allocations: 50.5 kB / 1.057 GB, free: 4.133 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.813e-05/0.2615, allocations: 32.97 kB / 1.057 GB, free: 4.098 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.665e-05/0.2616, allocations: 4 kB / 1.057 GB, free: 4.094 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001802/0.2617, allocations: 79.31 kB / 1.057 GB, free: 4.004 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.493e-06/0.2618, allocations: 4 kB / 1.057 GB, free: 4 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.000362/0.2621, allocations: 137.6 kB / 1.057 GB, free: 3.859 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.242e-05/0.2622, allocations: 59.39 kB / 1.057 GB, free: 3.789 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.905e-05/0.2623, allocations: 117.8 kB / 1.057 GB, free: 3.664 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.736e-05/0.2623, allocations: 25.7 kB / 1.057 GB, free: 3.633 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.649e-05/0.2624, allocations: 96.03 kB / 1.057 GB, free: 3.535 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.013e-05/0.2624, allocations: 15.84 kB / 1.057 GB, free: 3.52 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.684e-05/0.2624, allocations: 33.7 kB / 1.057 GB, free: 3.48 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001067/0.2625, allocations: 318.8 kB / 1.058 GB, free: 3.16 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.668e-05/0.2626, allocations: 27.97 kB / 1.058 GB, free: 3.133 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.924e-05/0.2627, allocations: 46.5 kB / 1.058 GB, free: 3.078 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001632/0.2629, allocations: 78.84 kB / 1.058 GB, free: 2.992 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.2629, allocations: 0 / 1.058 GB, free: 2.992 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002322/0.2632, allocations: 117.5 kB / 1.058 GB, free: 2.871 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.489e-05/0.2632, allocations: 8 kB / 1.058 GB, free: 2.863 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.699e-06/0.2632, allocations: 0 / 1.058 GB, free: 2.863 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.24e-05/0.2632, allocations: 0 / 1.058 GB, free: 2.863 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.241e-05/0.2633, allocations: 19.86 kB / 1.058 GB, free: 2.844 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.439e-05/0.2633, allocations: 4 kB / 1.058 GB, free: 2.84 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.651e-05/0.2634, allocations: 15.97 kB / 1.058 GB, free: 2.824 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.268e-05/0.2634, allocations: 0 / 1.058 GB, free: 2.824 MB / 0.8106 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 9.267e-05/0.2635, allocations: 127.2 kB / 1.058 GB, free: 2.691 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2e-05/0.2635, allocations: 7.891 kB / 1.058 GB, free: 2.684 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.712e-05/0.2636, allocations: 12.38 kB / 1.058 GB, free: 2.672 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-06/0.2636, allocations: 0 / 1.058 GB, free: 2.672 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.2636, allocations: 0 / 1.058 GB, free: 2.672 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.095e-06/0.2636, allocations: 0 / 1.058 GB, free: 2.672 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004323/0.264, allocations: 382.4 kB / 1.058 GB, free: 2.242 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.033e-06/0.264, allocations: 0 / 1.058 GB, free: 2.242 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.907e-05/0.2641, allocations: 4 kB / 1.058 GB, free: 2.238 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.2641, allocations: 0 / 1.058 GB, free: 2.238 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.425e-05/0.2641, allocations: 11.98 kB / 1.058 GB, free: 2.227 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.116e-06/0.2641, allocations: 3.938 kB / 1.058 GB, free: 2.223 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.2641, allocations: 0 / 1.058 GB, free: 2.223 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002677/0.2644, allocations: 211.3 kB / 1.059 GB, free: 2 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.228e-05/0.2644, allocations: 81.11 kB / 1.059 GB, free: 1.902 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.363e-05/0.2645, allocations: 3.984 kB / 1.059 GB, free: 1.898 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.815e-05/0.2646, allocations: 15.94 kB / 1.059 GB, free: 1.883 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.305e-05/0.2646, allocations: 7.984 kB / 1.059 GB, free: 1.875 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.846e-06/0.2646, allocations: 3.984 kB / 1.059 GB, free: 1.871 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.727e-05/0.2647, allocations: 91.27 kB / 1.059 GB, free: 1.781 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2647, allocations: 4 kB / 1.059 GB, free: 1.777 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.000275/0.265, allocations: 43.91 kB / 1.059 GB, free: 1.734 MB / 0.8106 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.0006985/0.2657, allocations: 0.7945 MB / 1.06 GB, free: 0.9297 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002142/0.2659, allocations: 79.88 kB / 1.06 GB, free: 0.8516 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/0.2659, allocations: 0 / 1.06 GB, free: 0.8516 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 8.927e-05/0.266, allocations: 39.91 kB / 1.06 GB, free: 0.8125 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000229/0.2662, allocations: 11.94 kB / 1.06 GB, free: 0.8008 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001494/0.2677, allocations: 1.473 MB / 1.061 GB, free: 15.23 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002217/0.268, allocations: 0.6961 MB / 1.062 GB, free: 14.51 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.274e-05/0.268, allocations: 7.938 kB / 1.062 GB, free: 14.5 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.324e-05/0.2681, allocations: 23.42 kB / 1.062 GB, free: 14.48 MB / 0.8262 GB Notification: Performance of SimCode: time 2.31e-07/0.2681, allocations: 0 / 1.062 GB, free: 14.48 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01758/0.2856, allocations: 2.605 MB / 1.065 GB, free: 12 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.797/7.083, allocations: 5.016 kB / 1.065 GB, free: 12 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast_res.mat --tempDir=temp_Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsEast_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsEast.fmu > Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsEast.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast.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