Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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: translateModel(Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|win.TOut|win.occ|win.pOpen|win.on",fileNamePrefix="Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout") translateModel(Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|win.TOut|win.occ|win.pOpen|win.on",fileNamePrefix="Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001641/0.001641, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.002112/0.002112, allocations: 197.2 kB / 16.26 MB, free: 6.629 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.379/1.379, allocations: 222.9 MB / 239.9 MB, free: 4.562 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.891/2.891, allocations: 472.6 MB / 0.7448 GB, free: 4.887 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002033/0.002033, allocations: 64.17 kB / 0.9116 GB, free: 33.51 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3963/0.3983, allocations: 159.9 MB / 1.068 GB, free: 10.79 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout): time 0.003239/0.4016, allocations: 1.644 MB / 1.069 GB, free: 9.137 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.00182/0.4035, allocations: 0.779 MB / 1.07 GB, free: 8.352 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001131/0.4036, allocations: 0 / 1.07 GB, free: 8.352 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 7.091e-05/0.4037, allocations: 7.922 kB / 1.07 GB, free: 8.344 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001133/0.4038, allocations: 11.88 kB / 1.07 GB, free: 8.332 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008645/0.4047, allocations: 131.7 kB / 1.07 GB, free: 8.203 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002653/0.405, allocations: 139.6 kB / 1.07 GB, free: 8.066 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001287/0.4051, allocations: 15.98 kB / 1.07 GB, free: 8.051 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001722/0.4053, allocations: 63.81 kB / 1.07 GB, free: 7.988 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001431/0.4055, allocations: 67.8 kB / 1.071 GB, free: 7.922 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.56e-05/0.4055, allocations: 16 kB / 1.071 GB, free: 7.906 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002811/0.4058, allocations: 107.8 kB / 1.071 GB, free: 7.801 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 4.716e-05/0.4059, allocations: 27.95 kB / 1.071 GB, free: 7.773 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 9.392e-05/0.406, allocations: 51.72 kB / 1.071 GB, free: 7.723 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003695/0.4063, allocations: 199.7 kB / 1.071 GB, free: 7.527 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.503e-06/0.4064, allocations: 4 kB / 1.071 GB, free: 7.523 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.164e-06/0.4064, allocations: 0 / 1.071 GB, free: 7.523 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.975e-06/0.4064, allocations: 0 / 1.071 GB, free: 7.523 MB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.00104/0.4074, allocations: 482.4 kB / 1.071 GB, free: 6.992 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 6.008e-05/0.4075, allocations: 8.031 kB / 1.071 GB, free: 6.984 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.92e-05/0.4076, allocations: 12.84 kB / 1.071 GB, free: 6.973 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001945/0.4078, allocations: 188.6 kB / 1.072 GB, free: 6.75 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.16e-05/0.4078, allocations: 4.375 kB / 1.072 GB, free: 6.746 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.622e-05/0.4079, allocations: 12.12 kB / 1.072 GB, free: 6.734 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003202/0.4082, allocations: 97.56 kB / 1.072 GB, free: 6.633 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.266e-05/0.4082, allocations: 0 / 1.072 GB, free: 6.633 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.985e-05/0.4082, allocations: 0 / 1.072 GB, free: 6.633 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.324e-06/0.4083, allocations: 7.984 kB / 1.072 GB, free: 6.625 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002181/0.4085, allocations: 63.95 kB / 1.072 GB, free: 6.562 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001023/0.4095, allocations: 376.5 kB / 1.072 GB, free: 6.145 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001996/0.4097, allocations: 70.55 kB / 1.072 GB, free: 6.066 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001363/0.4099, allocations: 52.83 kB / 1.072 GB, free: 6.012 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 4.031e-05/0.4099, allocations: 4 kB / 1.072 GB, free: 6.008 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002909/0.4102, allocations: 103.2 kB / 1.072 GB, free: 5.895 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=9): time 1.713e-06/0.4102, allocations: 8 kB / 1.072 GB, free: 5.887 MB / 0.8262 GB Notification: Performance of matching and sorting (n=9): time 0.0006169/0.4109, allocations: 209.4 kB / 1.073 GB, free: 5.676 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.955e-05/0.4109, allocations: 51.41 kB / 1.073 GB, free: 5.613 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001418/0.4111, allocations: 151.1 kB / 1.073 GB, free: 5.457 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.082e-05/0.4111, allocations: 25.7 kB / 1.073 GB, free: 5.426 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.801e-05/0.4112, allocations: 100.3 kB / 1.073 GB, free: 5.32 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.074e-05/0.4112, allocations: 27.88 kB / 1.073 GB, free: 5.293 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.278e-05/0.4113, allocations: 37.7 kB / 1.073 GB, free: 5.25 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001307/0.4114, allocations: 318.8 kB / 1.073 GB, free: 4.93 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000121/0.4115, allocations: 39.98 kB / 1.073 GB, free: 4.891 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000141/0.4117, allocations: 72.25 kB / 1.073 GB, free: 4.805 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002444/0.4119, allocations: 112.2 kB / 1.073 GB, free: 4.68 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.412, allocations: 0 / 1.073 GB, free: 4.68 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003659/0.4123, allocations: 161.6 kB / 1.074 GB, free: 4.516 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.651e-05/0.4123, allocations: 7.938 kB / 1.074 GB, free: 4.508 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.462e-06/0.4124, allocations: 4 kB / 1.074 GB, free: 4.504 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.424e-05/0.4124, allocations: 0 / 1.074 GB, free: 4.504 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001554/0.4125, allocations: 19.92 kB / 1.074 GB, free: 4.484 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.236e-06/0.4126, allocations: 7.938 kB / 1.074 GB, free: 4.477 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001078/0.4127, allocations: 11.89 kB / 1.074 GB, free: 4.465 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.428e-05/0.4127, allocations: 4 kB / 1.074 GB, free: 4.461 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 11 (win.curSeed,$PRE.win.curSeed,win.on,$PRE.win.on,win.occ,win.pClose,$PRE.win.pClose,win.pOpen,$PRE.win.pOpen,win.sampleTrigger,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 14 * 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.0001169/0.4128, allocations: 125.9 kB / 1.074 GB, free: 4.328 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.469e-05/0.4128, allocations: 7.906 kB / 1.074 GB, free: 4.32 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.794e-05/0.4129, allocations: 16.7 kB / 1.074 GB, free: 4.301 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.4129, allocations: 0 / 1.074 GB, free: 4.301 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.217e-06/0.4129, allocations: 8 kB / 1.074 GB, free: 4.293 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.4129, allocations: 0 / 1.074 GB, free: 4.293 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006226/0.4135, allocations: 470.6 kB / 1.074 GB, free: 3.777 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.4136, allocations: 0 / 1.074 GB, free: 3.777 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.594e-05/0.4136, allocations: 11.98 kB / 1.074 GB, free: 3.766 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.719e-06/0.4136, allocations: 4.031 kB / 1.074 GB, free: 3.762 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.474e-05/0.4137, allocations: 3.938 kB / 1.074 GB, free: 3.758 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.973e-06/0.4137, allocations: 0 / 1.074 GB, free: 3.758 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.4137, allocations: 0 / 1.074 GB, free: 3.758 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000417/0.4141, allocations: 271.3 kB / 1.074 GB, free: 3.477 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 8.32e-05/0.4142, allocations: 88.95 kB / 1.075 GB, free: 3.371 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.763e-05/0.4142, allocations: 4 kB / 1.075 GB, free: 3.367 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001279/0.4144, allocations: 7.984 kB / 1.075 GB, free: 3.359 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.469e-05/0.4144, allocations: 7.984 kB / 1.075 GB, free: 3.352 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.769e-05/0.4144, allocations: 8 kB / 1.075 GB, free: 3.344 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 7.022e-05/0.4145, allocations: 104.8 kB / 1.075 GB, free: 3.242 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.41e-07/0.4145, allocations: 0 / 1.075 GB, free: 3.242 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003533/0.4149, allocations: 47.98 kB / 1.075 GB, free: 3.195 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: 7 (win.sampleTrigger,$whenCondition1,win.occ,win.on,win.pOpen,win.pClose,win.curSeed) * Number of discrete states: 1 (win.on) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0003454/0.4152, allocations: 168 kB / 1.075 GB, free: 3.039 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.000346/0.4156, allocations: 119.8 kB / 1.075 GB, free: 2.922 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.466e-06/0.4156, allocations: 4.188 kB / 1.075 GB, free: 2.918 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001455/0.4158, allocations: 51.97 kB / 1.075 GB, free: 2.867 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002887/0.4161, allocations: 23.86 kB / 1.075 GB, free: 2.844 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000492/0.4166, allocations: 248.4 kB / 1.075 GB, free: 2.574 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002547/0.4168, allocations: 0.7002 MB / 1.076 GB, free: 1.848 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 5.712e-05/0.4169, allocations: 4 kB / 1.076 GB, free: 1.844 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.014e-05/0.4169, allocations: 19.42 kB / 1.076 GB, free: 1.824 MB / 0.8262 GB Notification: Performance of SimCode: time 3.61e-07/0.4169, allocations: 0 / 1.076 GB, free: 1.824 MB / 0.8262 GB Notification: Performance of Templates: time 0.004754/0.4217, allocations: 1.906 MB / 1.078 GB, free: 15.93 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout.makefile (rm -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout.sim & ./Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Windows_Validation_Haldi2009WindowsTInTout.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches