Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.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.Zhang2012WindowsWest,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsWest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsWest",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.001239/0.001239, 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.001453/0.001453, allocations: 197.7 kB / 16.54 MB, free: 6.672 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.344/1.344, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.571/2.571, allocations: 461.9 MB / 0.7346 GB, free: 14.69 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001223/0.001223, allocations: 66.44 kB / 0.8992 GB, free: 36.93 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2589/0.2602, allocations: 157.4 MB / 1.053 GB, free: 8.238 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest): time 0.00241/0.2626, allocations: 1.507 MB / 1.054 GB, free: 6.719 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001112/0.2638, allocations: 0.7365 MB / 1.055 GB, free: 5.977 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.777e-05/0.2638, allocations: 4 kB / 1.055 GB, free: 5.973 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.911e-05/0.2638, allocations: 7.875 kB / 1.055 GB, free: 5.965 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 4.07e-05/0.2639, allocations: 7.875 kB / 1.055 GB, free: 5.957 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004684/0.2644, allocations: 123.6 kB / 1.055 GB, free: 5.836 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 8.826e-05/0.2645, allocations: 71.77 kB / 1.055 GB, free: 5.766 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 7.919e-05/0.2646, allocations: 19.98 kB / 1.055 GB, free: 5.746 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 7.117e-05/0.2646, allocations: 31.92 kB / 1.055 GB, free: 5.715 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.669e-05/0.2647, allocations: 43.81 kB / 1.055 GB, free: 5.672 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.724e-05/0.2647, allocations: 8 kB / 1.055 GB, free: 5.664 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000166/0.2649, allocations: 91.84 kB / 1.055 GB, free: 5.574 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.493e-05/0.2649, allocations: 19.92 kB / 1.055 GB, free: 5.555 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.349e-05/0.265, allocations: 35.86 kB / 1.056 GB, free: 5.52 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001963/0.2652, allocations: 139.9 kB / 1.056 GB, free: 5.383 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.2652, allocations: 8 kB / 1.056 GB, free: 5.375 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.082e-06/0.2652, allocations: 0 / 1.056 GB, free: 5.375 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.218e-06/0.2652, allocations: 0 / 1.056 GB, free: 5.375 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.0005283/0.2658, allocations: 413 kB / 1.056 GB, free: 4.918 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.107e-05/0.2658, allocations: 8.625 kB / 1.056 GB, free: 4.91 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.322e-05/0.2658, allocations: 34.73 kB / 1.056 GB, free: 4.867 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.154e-05/0.2659, allocations: 16.78 kB / 1.056 GB, free: 4.852 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.686e-05/0.266, allocations: 172.2 kB / 1.056 GB, free: 4.645 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.035e-05/0.266, allocations: 8.375 kB / 1.056 GB, free: 4.637 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.333e-05/0.266, allocations: 4.375 kB / 1.056 GB, free: 4.633 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001537/0.2662, allocations: 69.78 kB / 1.056 GB, free: 4.559 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.412e-06/0.2662, allocations: 0 / 1.056 GB, free: 4.559 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.115e-05/0.2662, allocations: 3.984 kB / 1.056 GB, free: 4.555 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.606e-06/0.2662, allocations: 4 kB / 1.056 GB, free: 4.551 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001232/0.2663, allocations: 31.98 kB / 1.056 GB, free: 4.52 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005163/0.2669, allocations: 324.7 kB / 1.057 GB, free: 4.152 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001095/0.267, allocations: 50.5 kB / 1.057 GB, free: 4.094 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.108e-05/0.2671, allocations: 32.97 kB / 1.057 GB, free: 4.059 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.83e-05/0.2671, allocations: 4 kB / 1.057 GB, free: 4.055 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001566/0.2673, allocations: 87.3 kB / 1.057 GB, free: 3.957 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.262e-06/0.2673, allocations: 0 / 1.057 GB, free: 3.957 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0003425/0.2676, allocations: 133.5 kB / 1.057 GB, free: 3.82 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.547e-05/0.2677, allocations: 55.39 kB / 1.057 GB, free: 3.754 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.638e-05/0.2677, allocations: 117.8 kB / 1.057 GB, free: 3.629 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.255e-05/0.2678, allocations: 33.64 kB / 1.057 GB, free: 3.59 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.518e-05/0.2678, allocations: 100 kB / 1.057 GB, free: 3.488 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.795e-05/0.2678, allocations: 19.91 kB / 1.057 GB, free: 3.469 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.512e-05/0.2679, allocations: 29.7 kB / 1.057 GB, free: 3.434 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.985e-05/0.268, allocations: 314.8 kB / 1.058 GB, free: 3.117 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.805e-05/0.2681, allocations: 27.98 kB / 1.058 GB, free: 3.09 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.41e-05/0.2682, allocations: 50.53 kB / 1.058 GB, free: 3.031 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001418/0.2683, allocations: 78.48 kB / 1.058 GB, free: 2.945 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.2683, allocations: 0 / 1.058 GB, free: 2.945 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002225/0.2686, allocations: 113.5 kB / 1.058 GB, free: 2.828 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.267e-05/0.2686, allocations: 8 kB / 1.058 GB, free: 2.82 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.727e-06/0.2686, allocations: 0 / 1.058 GB, free: 2.82 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.014e-05/0.2686, allocations: 4.062 kB / 1.058 GB, free: 2.816 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.026e-05/0.2687, allocations: 11.94 kB / 1.058 GB, free: 2.805 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.743e-06/0.2687, allocations: 7.984 kB / 1.058 GB, free: 2.797 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.065e-05/0.2688, allocations: 7.906 kB / 1.058 GB, free: 2.789 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.318e-05/0.2688, allocations: 4 kB / 1.058 GB, free: 2.785 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 8.075e-05/0.2689, allocations: 125.7 kB / 1.058 GB, free: 2.652 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.656e-05/0.2689, allocations: 3.906 kB / 1.058 GB, free: 2.648 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.335e-05/0.2689, allocations: 16.36 kB / 1.058 GB, free: 2.633 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.2689, allocations: 4 kB / 1.058 GB, free: 2.629 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.096e-06/0.2689, allocations: 0 / 1.058 GB, free: 2.629 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.865e-06/0.269, allocations: 0 / 1.058 GB, free: 2.629 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004009/0.2694, allocations: 382.3 kB / 1.058 GB, free: 2.199 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.588e-06/0.2694, allocations: 4 kB / 1.058 GB, free: 2.195 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.736e-05/0.2694, allocations: 4 kB / 1.058 GB, free: 2.191 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.2694, allocations: 0 / 1.058 GB, free: 2.191 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.206e-05/0.2694, allocations: 7.984 kB / 1.058 GB, free: 2.184 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.525e-06/0.2695, allocations: 7.938 kB / 1.058 GB, free: 2.176 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.2695, allocations: 0 / 1.058 GB, free: 2.176 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000252/0.2697, allocations: 207.4 kB / 1.059 GB, free: 1.957 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.054e-05/0.2698, allocations: 81.11 kB / 1.059 GB, free: 1.859 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.788e-05/0.2698, allocations: 3.984 kB / 1.059 GB, free: 1.855 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.501e-05/0.2699, allocations: 7.938 kB / 1.059 GB, free: 1.848 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.024e-05/0.2699, allocations: 11.98 kB / 1.059 GB, free: 1.836 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.043e-06/0.2699, allocations: 4 kB / 1.059 GB, free: 1.832 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.371e-05/0.27, allocations: 91.27 kB / 1.059 GB, free: 1.742 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.27, allocations: 4 kB / 1.059 GB, free: 1.738 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002759/0.2703, allocations: 39.91 kB / 1.059 GB, free: 1.699 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.0006675/0.2709, allocations: 0.8035 MB / 1.06 GB, free: 0.8867 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002066/0.2711, allocations: 71.95 kB / 1.06 GB, free: 0.8164 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/0.2712, allocations: 0 / 1.06 GB, free: 0.8164 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 8.775e-05/0.2713, allocations: 39.86 kB / 1.06 GB, free: 0.7773 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002271/0.2715, allocations: 16.06 kB / 1.06 GB, free: 0.7617 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001389/0.2729, allocations: 1.476 MB / 1.061 GB, free: 15.19 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002173/0.2731, allocations: 0.6883 MB / 1.062 GB, free: 14.48 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.554e-05/0.2732, allocations: 15.91 kB / 1.062 GB, free: 14.46 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.301e-05/0.2732, allocations: 19.44 kB / 1.062 GB, free: 14.44 MB / 0.8262 GB Notification: Performance of SimCode: time 2.11e-07/0.2732, allocations: 0 / 1.062 GB, free: 14.44 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.08/3.353, allocations: 2.612 MB / 1.065 GB, free: 11.96 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.407/11.76, allocations: 5.703 kB / 1.065 GB, free: 11.96 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest_res.mat --tempDir=temp_Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsWest_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsWest.fmu > Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Windows_Validation_Zhang2012WindowsWest.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Zhang2012WindowsWest.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