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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.001171/0.001171, allocations: 91.84 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.01212/0.01212, allocations: 169.3 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.462/1.462, allocations: 223.3 MB / 240.3 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.757/2.757, allocations: 462.6 MB / 0.7364 GB, free: 15.57 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003148/0.0003148, allocations: 8 kB / 0.9029 GB, free: 36.52 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2607/0.261, allocations: 159.6 MB / 1.059 GB, free: 4.887 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsEast): time 0.001607/0.2627, allocations: 1.233 MB / 1.06 GB, free: 3.645 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001176/0.2638, allocations: 0.7091 MB / 1.061 GB, free: 2.93 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.483e-05/0.2639, allocations: 0 / 1.061 GB, free: 2.93 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.796e-05/0.2639, allocations: 7.938 kB / 1.061 GB, free: 2.922 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.638e-05/0.264, allocations: 15.84 kB / 1.061 GB, free: 2.906 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004509/0.2645, allocations: 99.78 kB / 1.061 GB, free: 2.809 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.000176/0.2646, allocations: 67.83 kB / 1.061 GB, free: 2.742 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 7.123e-05/0.2647, allocations: 8 kB / 1.061 GB, free: 2.734 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 7.944e-05/0.2648, allocations: 31.91 kB / 1.061 GB, free: 2.703 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.483e-05/0.2649, allocations: 47.77 kB / 1.061 GB, free: 2.656 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.279e-05/0.2649, allocations: 0 / 1.061 GB, free: 2.656 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001681/0.2651, allocations: 91.91 kB / 1.061 GB, free: 2.566 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.866e-05/0.2651, allocations: 7.922 kB / 1.061 GB, free: 2.559 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.051e-05/0.2652, allocations: 57.56 kB / 1.061 GB, free: 2.496 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001975/0.2654, allocations: 147.8 kB / 1.061 GB, free: 2.352 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.2654, allocations: 0 / 1.061 GB, free: 2.352 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.332e-06/0.2654, allocations: 0 / 1.061 GB, free: 2.352 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.587e-06/0.2654, allocations: 0 / 1.061 GB, free: 2.352 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.0005142/0.2659, allocations: 405 kB / 1.062 GB, free: 1.902 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.733e-05/0.266, allocations: 15.97 kB / 1.062 GB, free: 1.887 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.942e-05/0.266, allocations: 30.75 kB / 1.062 GB, free: 1.848 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.874e-05/0.266, allocations: 8.922 kB / 1.062 GB, free: 1.84 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001092/0.2662, allocations: 180.2 kB / 1.062 GB, free: 1.625 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.831e-05/0.2662, allocations: 384 / 1.062 GB, free: 1.625 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.702e-05/0.2662, allocations: 4.375 kB / 1.062 GB, free: 1.621 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002115/0.2664, allocations: 81.78 kB / 1.062 GB, free: 1.535 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.041e-06/0.2664, allocations: 3.938 kB / 1.062 GB, free: 1.531 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.759e-06/0.2664, allocations: 0 / 1.062 GB, free: 1.531 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.969e-06/0.2665, allocations: 0 / 1.062 GB, free: 1.531 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001327/0.2666, allocations: 47.91 kB / 1.062 GB, free: 1.484 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006226/0.2672, allocations: 324.7 kB / 1.062 GB, free: 1.117 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001194/0.2674, allocations: 50.5 kB / 1.062 GB, free: 1.059 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.508e-05/0.2674, allocations: 36.97 kB / 1.062 GB, free: 1.02 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.953e-05/0.2675, allocations: 7.984 kB / 1.062 GB, free: 1.012 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00017/0.2676, allocations: 79.31 kB / 1.062 GB, free: 0.9219 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.293e-06/0.2677, allocations: 0 / 1.062 GB, free: 0.9219 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.000377/0.268, allocations: 153.5 kB / 1.063 GB, free: 0.7656 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.533e-05/0.2681, allocations: 51.41 kB / 1.063 GB, free: 0.7031 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.906e-05/0.2682, allocations: 117.8 kB / 1.063 GB, free: 0.5781 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.952e-05/0.2682, allocations: 33.69 kB / 1.063 GB, free: 0.5391 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.23e-05/0.2683, allocations: 88.14 kB / 1.063 GB, free: 460 kB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.812e-05/0.2683, allocations: 23.81 kB / 1.063 GB, free: 436 kB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.212e-05/0.2683, allocations: 21.7 kB / 1.063 GB, free: 408 kB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.000156/0.2685, allocations: 322.7 kB / 1.063 GB, free: 76 kB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.007e-05/0.2686, allocations: 35.97 kB / 1.063 GB, free: 40 kB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.949e-05/0.2687, allocations: 46.56 kB / 1.063 GB, free: 15.98 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001653/0.2689, allocations: 78.55 kB / 1.063 GB, free: 15.9 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.482e-06/0.2689, allocations: 0 / 1.063 GB, free: 15.9 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002308/0.2691, allocations: 117.5 kB / 1.063 GB, free: 15.78 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.573e-05/0.2691, allocations: 8 kB / 1.064 GB, free: 15.77 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.659e-06/0.2691, allocations: 8 kB / 1.064 GB, free: 15.76 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.337e-06/0.2692, allocations: 0 / 1.064 GB, free: 15.76 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.581e-05/0.2692, allocations: 12 kB / 1.064 GB, free: 15.75 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.274e-06/0.2693, allocations: 3.984 kB / 1.064 GB, free: 15.75 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.118e-05/0.2693, allocations: 8 kB / 1.064 GB, free: 15.74 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.202e-05/0.2694, allocations: 4 kB / 1.064 GB, free: 15.73 MB / 0.8262 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 8.151e-05/0.2694, allocations: 117.8 kB / 1.064 GB, free: 15.61 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.625e-05/0.2695, allocations: 15.84 kB / 1.064 GB, free: 15.59 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.51e-05/0.2695, allocations: 12.36 kB / 1.064 GB, free: 15.58 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.116e-06/0.2695, allocations: 4 kB / 1.064 GB, free: 15.58 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.2695, allocations: 0 / 1.064 GB, free: 15.58 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.2695, allocations: 3.938 kB / 1.064 GB, free: 15.57 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004252/0.2699, allocations: 382.4 kB / 1.064 GB, free: 15.14 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.27, allocations: 4 kB / 1.064 GB, free: 15.14 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.682e-05/0.27, allocations: 8 kB / 1.064 GB, free: 15.13 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.864e-06/0.27, allocations: 0 / 1.064 GB, free: 15.13 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.146e-05/0.27, allocations: 7.984 kB / 1.064 GB, free: 15.12 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.568e-06/0.27, allocations: 7.938 kB / 1.064 GB, free: 15.12 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.27, allocations: 3.938 kB / 1.064 GB, free: 15.11 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003087/0.2704, allocations: 215.4 kB / 1.064 GB, free: 14.89 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001287/0.2705, allocations: 85.02 kB / 1.064 GB, free: 14.79 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.751e-05/0.2705, allocations: 3.984 kB / 1.064 GB, free: 14.78 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.861e-05/0.2706, allocations: 11.94 kB / 1.064 GB, free: 14.77 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.422e-05/0.2707, allocations: 7.984 kB / 1.064 GB, free: 14.76 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.484e-06/0.2707, allocations: 0 / 1.064 GB, free: 14.76 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.885e-05/0.2707, allocations: 95.92 kB / 1.064 GB, free: 14.67 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2707, allocations: 0 / 1.064 GB, free: 14.67 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000275/0.271, allocations: 40 kB / 1.065 GB, free: 14.63 MB / 0.8262 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.0007475/0.2718, allocations: 0.8138 MB / 1.065 GB, free: 13.8 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002164/0.272, allocations: 79.89 kB / 1.065 GB, free: 13.73 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.694e-06/0.272, allocations: 0 / 1.065 GB, free: 13.73 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 9.431e-05/0.2721, allocations: 40.11 kB / 1.065 GB, free: 13.69 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002372/0.2723, allocations: 15.81 kB / 1.065 GB, free: 13.67 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001629/0.274, allocations: 1.51 MB / 1.067 GB, free: 12.07 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003629/0.2744, allocations: 0.6926 MB / 1.068 GB, free: 11.35 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.497e-05/0.2744, allocations: 4 kB / 1.068 GB, free: 11.34 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.664e-05/0.2745, allocations: 23.42 kB / 1.068 GB, free: 11.32 MB / 0.8262 GB Notification: Performance of SimCode: time 3.71e-07/0.2745, allocations: 0 / 1.068 GB, free: 11.32 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01105/0.2855, allocations: 2.327 MB / 1.07 GB, free: 9.168 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002001/0.2857, allocations: 274.6 kB / 1.07 GB, free: 8.805 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.874/2.16, allocations: 2.25 kB / 1.07 GB, free: 8.805 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