Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.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.Herkel2008WindowsSmall,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Herkel2008WindowsSmall",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall,fileNamePrefix="Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Herkel2008WindowsSmall",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.0008071/0.0008071, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.005675/0.005675, allocations: 170 kB / 16.27 MB, free: 6.66 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.303/1.303, 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.719/2.719, allocations: 462.6 MB / 0.7364 GB, free: 15.57 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003122/0.0003122, allocations: 15.88 kB / 0.9029 GB, free: 36.36 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3649/0.3652, allocations: 159.6 MB / 1.059 GB, free: 4.867 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall): time 0.00207/0.3673, allocations: 1.233 MB / 1.06 GB, free: 3.625 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.00137/0.3687, allocations: 0.7091 MB / 1.061 GB, free: 2.91 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.024e-05/0.3688, allocations: 4 kB / 1.061 GB, free: 2.906 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.702e-05/0.3688, allocations: 7.875 kB / 1.061 GB, free: 2.898 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.494e-05/0.3689, allocations: 11.91 kB / 1.061 GB, free: 2.887 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005341/0.3694, allocations: 103.8 kB / 1.061 GB, free: 2.785 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001158/0.3695, allocations: 67.84 kB / 1.061 GB, free: 2.719 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001065/0.3696, allocations: 4 kB / 1.061 GB, free: 2.715 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001012/0.3698, allocations: 39.84 kB / 1.061 GB, free: 2.676 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 7.482e-05/0.3698, allocations: 35.83 kB / 1.061 GB, free: 2.641 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.79e-05/0.3699, allocations: 4 kB / 1.061 GB, free: 2.637 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000197/0.3701, allocations: 91.91 kB / 1.061 GB, free: 2.547 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.781e-05/0.3701, allocations: 11.92 kB / 1.061 GB, free: 2.535 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 6.787e-05/0.3702, allocations: 53.55 kB / 1.061 GB, free: 2.477 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002501/0.3704, allocations: 147.8 kB / 1.061 GB, free: 2.332 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.3704, allocations: 0 / 1.061 GB, free: 2.332 MB / 0.8106 GB Notification: Performance of FrontEnd: time 3.055e-06/0.3705, allocations: 0 / 1.061 GB, free: 2.332 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.43e-06/0.3705, allocations: 0 / 1.061 GB, free: 2.332 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.0007197/0.3712, allocations: 409 kB / 1.062 GB, free: 1.879 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.127e-05/0.3713, allocations: 11.97 kB / 1.062 GB, free: 1.867 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.256e-05/0.3713, allocations: 38.75 kB / 1.062 GB, free: 1.82 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.405e-05/0.3714, allocations: 4.938 kB / 1.062 GB, free: 1.816 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000156/0.3715, allocations: 180.2 kB / 1.062 GB, free: 1.602 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.551e-05/0.3716, allocations: 384 / 1.062 GB, free: 1.602 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.146e-05/0.3716, allocations: 4.375 kB / 1.062 GB, free: 1.598 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001989/0.3718, allocations: 77.78 kB / 1.062 GB, free: 1.516 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.588e-06/0.3718, allocations: 7.938 kB / 1.062 GB, free: 1.508 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.292e-05/0.3718, allocations: 0 / 1.062 GB, free: 1.508 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.551e-06/0.3718, allocations: 0 / 1.062 GB, free: 1.508 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001411/0.372, allocations: 39.97 kB / 1.062 GB, free: 1.469 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006734/0.3727, allocations: 336.6 kB / 1.062 GB, free: 1.09 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001325/0.3728, allocations: 46.56 kB / 1.062 GB, free: 1.035 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.978e-05/0.3729, allocations: 40.91 kB / 1.062 GB, free: 0.9922 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.835e-05/0.3729, allocations: 7.984 kB / 1.062 GB, free: 0.9844 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002205/0.3732, allocations: 75.39 kB / 1.062 GB, free: 0.8984 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.473e-06/0.3732, allocations: 0 / 1.062 GB, free: 0.8984 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7): time 0.0004162/0.3736, allocations: 149.5 kB / 1.063 GB, free: 0.7461 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.386e-05/0.3737, allocations: 51.41 kB / 1.063 GB, free: 0.6836 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001139/0.3738, allocations: 121.8 kB / 1.063 GB, free: 0.5547 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.57e-05/0.3738, allocations: 33.62 kB / 1.063 GB, free: 0.5156 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 7.07e-05/0.3739, allocations: 88.22 kB / 1.063 GB, free: 436 kB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.734e-05/0.3739, allocations: 23.73 kB / 1.063 GB, free: 412 kB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.379e-05/0.374, allocations: 21.7 kB / 1.063 GB, free: 384 kB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001395/0.3741, allocations: 322.8 kB / 1.063 GB, free: 52 kB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.494e-05/0.3742, allocations: 27.97 kB / 1.063 GB, free: 24 kB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000126/0.3743, allocations: 54.56 kB / 1.063 GB, free: 15.96 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001736/0.3745, allocations: 82.8 kB / 1.063 GB, free: 15.87 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.3745, allocations: 0 / 1.063 GB, free: 15.87 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002447/0.3748, allocations: 117.5 kB / 1.063 GB, free: 15.75 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.892e-05/0.3748, allocations: 12 kB / 1.064 GB, free: 15.74 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-06/0.3748, allocations: 0 / 1.064 GB, free: 15.74 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.454e-05/0.3748, allocations: 0 / 1.064 GB, free: 15.74 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.426e-05/0.3749, allocations: 8 kB / 1.064 GB, free: 15.73 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.143e-05/0.375, allocations: 7.984 kB / 1.064 GB, free: 15.72 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.557e-05/0.375, allocations: 8 kB / 1.064 GB, free: 15.71 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.77e-05/0.3751, allocations: 4 kB / 1.064 GB, free: 15.71 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 0.00012/0.3752, allocations: 129.7 kB / 1.064 GB, free: 15.57 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.644e-05/0.3752, allocations: 11.84 kB / 1.064 GB, free: 15.56 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.141e-05/0.3752, allocations: 12.36 kB / 1.064 GB, free: 15.55 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/0.3753, allocations: 4 kB / 1.064 GB, free: 15.55 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.3753, allocations: 3.938 kB / 1.064 GB, free: 15.54 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.3753, allocations: 0 / 1.064 GB, free: 15.54 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004791/0.3758, allocations: 390.4 kB / 1.064 GB, free: 15.11 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.3758, allocations: 0 / 1.064 GB, free: 15.11 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.642e-05/0.3758, allocations: 4 kB / 1.064 GB, free: 15.1 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.087e-06/0.3758, allocations: 4 kB / 1.064 GB, free: 15.1 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.198e-05/0.3758, allocations: 3.984 kB / 1.064 GB, free: 15.09 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.569e-06/0.3758, allocations: 7.875 kB / 1.064 GB, free: 15.09 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.3759, allocations: 0 / 1.064 GB, free: 15.09 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002977/0.3762, allocations: 211.4 kB / 1.064 GB, free: 14.86 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.728e-05/0.3762, allocations: 85.02 kB / 1.064 GB, free: 14.76 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.356e-05/0.3763, allocations: 7.984 kB / 1.064 GB, free: 14.75 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.642e-05/0.3763, allocations: 7.938 kB / 1.064 GB, free: 14.75 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.809e-05/0.3764, allocations: 7.984 kB / 1.064 GB, free: 14.74 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.544e-06/0.3764, allocations: 0 / 1.064 GB, free: 14.74 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.869e-05/0.3765, allocations: 91.27 kB / 1.064 GB, free: 14.65 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3765, allocations: 4 kB / 1.064 GB, free: 14.64 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002887/0.3768, allocations: 40 kB / 1.065 GB, free: 14.61 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.0008755/0.3777, allocations: 0.8154 MB / 1.065 GB, free: 13.78 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002388/0.3779, allocations: 80.2 kB / 1.065 GB, free: 13.7 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/0.3779, allocations: 0 / 1.065 GB, free: 13.7 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 9.535e-05/0.378, allocations: 40.2 kB / 1.065 GB, free: 13.66 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002577/0.3783, allocations: 11.94 kB / 1.065 GB, free: 13.65 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001723/0.38, allocations: 1.52 MB / 1.067 GB, free: 12.04 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003171/0.3804, allocations: 0.6926 MB / 1.068 GB, free: 11.32 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.851e-05/0.3804, allocations: 4 kB / 1.068 GB, free: 11.31 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.087e-05/0.3805, allocations: 26.17 kB / 1.068 GB, free: 11.29 MB / 0.8262 GB Notification: Performance of SimCode: time 2e-07/0.3805, allocations: 0 / 1.068 GB, free: 11.29 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0134/0.3939, allocations: 2.332 MB / 1.07 GB, free: 9.133 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002105/0.3941, allocations: 267.8 kB / 1.07 GB, free: 8.777 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.96/2.354, allocations: 0 / 1.07 GB, free: 8.777 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall_res.mat --tempDir=temp_Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Herkel2008WindowsSmall_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Occupants_Office_Windows_Validation_Herkel2008WindowsSmall.fmu > Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Windows_Validation_Herkel2008WindowsSmall.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.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