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 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.Herkel2008WindowsSmall,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|win.TOut|win.occ|win.p|win.on",fileNamePrefix="Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall") translateModel(Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|win.TOut|win.occ|win.p|win.on",fileNamePrefix="Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001644/0.001645, 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.002479/0.002479, allocations: 194.8 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.438/1.438, allocations: 222.9 MB / 240.2 MB, free: 4.375 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.954/2.954, allocations: 472.7 MB / 0.7452 GB, free: 4.562 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001185/0.001186, allocations: 61.72 kB / 0.9121 GB, free: 33.29 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3454/0.3466, allocations: 159.9 MB / 1.068 GB, free: 10.36 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall): time 0.00344/0.3501, allocations: 1.495 MB / 1.07 GB, free: 8.852 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001297/0.3514, allocations: 0.7245 MB / 1.07 GB, free: 8.113 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.223e-05/0.3515, allocations: 3.938 kB / 1.07 GB, free: 8.109 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.596e-05/0.3515, allocations: 3.938 kB / 1.07 GB, free: 8.105 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.7e-05/0.3516, allocations: 11.88 kB / 1.07 GB, free: 8.094 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005579/0.3522, allocations: 123.6 kB / 1.071 GB, free: 7.973 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001092/0.3523, allocations: 71.83 kB / 1.071 GB, free: 7.902 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001147/0.3524, allocations: 23.97 kB / 1.071 GB, free: 7.879 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 8.679e-05/0.3525, allocations: 31.86 kB / 1.071 GB, free: 7.848 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 6.953e-05/0.3526, allocations: 43.81 kB / 1.071 GB, free: 7.805 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.355e-05/0.3526, allocations: 8 kB / 1.071 GB, free: 7.797 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001956/0.3528, allocations: 91.91 kB / 1.071 GB, free: 7.707 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 3.253e-05/0.3528, allocations: 19.92 kB / 1.071 GB, free: 7.688 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 5.374e-05/0.3529, allocations: 35.73 kB / 1.071 GB, free: 7.652 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002362/0.3531, allocations: 143.9 kB / 1.071 GB, free: 7.512 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.3532, allocations: 4 kB / 1.071 GB, free: 7.508 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.703e-06/0.3532, allocations: 4 kB / 1.071 GB, free: 7.504 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.56e-06/0.3532, allocations: 0 / 1.071 GB, free: 7.504 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0007894/0.354, allocations: 409 kB / 1.071 GB, free: 7.051 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.386e-05/0.354, allocations: 12.03 kB / 1.071 GB, free: 7.039 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.254e-05/0.3541, allocations: 12.83 kB / 1.071 GB, free: 7.027 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001263/0.3542, allocations: 172.2 kB / 1.072 GB, free: 6.82 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.486e-05/0.3543, allocations: 384 / 1.072 GB, free: 6.82 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.04e-05/0.3543, allocations: 12.38 kB / 1.072 GB, free: 6.809 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002221/0.3545, allocations: 77.89 kB / 1.072 GB, free: 6.727 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.807e-06/0.3545, allocations: 0 / 1.072 GB, free: 6.727 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.343e-05/0.3545, allocations: 0 / 1.072 GB, free: 6.727 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.919e-06/0.3546, allocations: 0 / 1.072 GB, free: 6.727 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001336/0.3547, allocations: 35.97 kB / 1.072 GB, free: 6.691 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006572/0.3554, allocations: 320.7 kB / 1.072 GB, free: 6.328 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001313/0.3555, allocations: 46.55 kB / 1.072 GB, free: 6.273 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.372e-05/0.3556, allocations: 44.91 kB / 1.072 GB, free: 6.227 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.13e-05/0.3556, allocations: 4.062 kB / 1.072 GB, free: 6.223 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000209/0.3558, allocations: 79.38 kB / 1.072 GB, free: 6.133 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 1.453e-06/0.3558, allocations: 0 / 1.072 GB, free: 6.133 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.000435/0.3563, allocations: 137.5 kB / 1.072 GB, free: 5.992 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.372e-05/0.3563, allocations: 55.41 kB / 1.072 GB, free: 5.926 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001629/0.3565, allocations: 133.6 kB / 1.072 GB, free: 5.785 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.772e-05/0.3565, allocations: 25.7 kB / 1.072 GB, free: 5.754 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.51e-05/0.3566, allocations: 92.14 kB / 1.073 GB, free: 5.66 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.028e-05/0.3566, allocations: 23.72 kB / 1.073 GB, free: 5.637 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.732e-05/0.3567, allocations: 25.72 kB / 1.073 GB, free: 5.605 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001727/0.3568, allocations: 326.8 kB / 1.073 GB, free: 5.277 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.934e-05/0.3569, allocations: 23.98 kB / 1.073 GB, free: 5.254 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.667e-05/0.357, allocations: 50.55 kB / 1.073 GB, free: 5.195 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000155/0.3572, allocations: 74.5 kB / 1.073 GB, free: 5.113 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.3572, allocations: 0 / 1.073 GB, free: 5.113 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002233/0.3574, allocations: 109.5 kB / 1.073 GB, free: 5 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.705e-05/0.3575, allocations: 6.188 kB / 1.073 GB, free: 4.996 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.3575, allocations: 0 / 1.073 GB, free: 4.996 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.44e-05/0.3575, allocations: 4 kB / 1.073 GB, free: 4.992 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.59e-05/0.3576, allocations: 20.05 kB / 1.073 GB, free: 4.973 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.41e-06/0.3576, allocations: 0 / 1.073 GB, free: 4.973 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.575e-05/0.3577, allocations: 7.984 kB / 1.073 GB, free: 4.965 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.457e-05/0.3577, allocations: 7.938 kB / 1.073 GB, free: 4.957 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 9.678e-05/0.3578, allocations: 127 kB / 1.073 GB, free: 4.824 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.885e-05/0.3578, allocations: 7.906 kB / 1.073 GB, free: 4.816 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.868e-05/0.3578, allocations: 8.375 kB / 1.073 GB, free: 4.809 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.073e-06/0.3579, allocations: 0 / 1.073 GB, free: 4.809 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.3579, allocations: 11.98 kB / 1.073 GB, free: 4.797 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.516e-06/0.3579, allocations: 0 / 1.073 GB, free: 4.797 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004416/0.3583, allocations: 382.4 kB / 1.074 GB, free: 4.367 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.3583, allocations: 4 kB / 1.074 GB, free: 4.363 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.837e-05/0.3584, allocations: 4 kB / 1.074 GB, free: 4.359 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.178e-06/0.3584, allocations: 0 / 1.074 GB, free: 4.359 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.166e-05/0.3584, allocations: 3.938 kB / 1.074 GB, free: 4.355 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.3584, allocations: 0 / 1.074 GB, free: 4.355 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.732e-05/0.3584, allocations: 11.92 kB / 1.074 GB, free: 4.344 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002834/0.3587, allocations: 203.9 kB / 1.074 GB, free: 4.129 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.012e-05/0.3588, allocations: 81.02 kB / 1.074 GB, free: 4.031 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.071e-05/0.3588, allocations: 8 kB / 1.074 GB, free: 4.023 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.608e-05/0.3589, allocations: 3.984 kB / 1.074 GB, free: 4.02 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.089e-05/0.3589, allocations: 7.938 kB / 1.074 GB, free: 4.012 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.395e-05/0.359, allocations: 7.984 kB / 1.074 GB, free: 4.004 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.273e-05/0.359, allocations: 91.28 kB / 1.074 GB, free: 3.914 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.11e-07/0.359, allocations: 0 / 1.074 GB, free: 3.914 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002982/0.3593, allocations: 39.98 kB / 1.074 GB, free: 3.875 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.0003689/0.3597, allocations: 166 kB / 1.074 GB, free: 3.719 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002538/0.36, allocations: 83.94 kB / 1.074 GB, free: 3.637 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.36, allocations: 3.938 kB / 1.074 GB, free: 3.633 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 9.749e-05/0.3601, allocations: 35.92 kB / 1.074 GB, free: 3.598 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000256/0.3603, allocations: 4.938 kB / 1.074 GB, free: 3.594 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004164/0.3608, allocations: 180.4 kB / 1.075 GB, free: 3.387 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002941/0.3611, allocations: 0.6885 MB / 1.075 GB, free: 2.672 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.72e-05/0.3611, allocations: 7.984 kB / 1.075 GB, free: 2.664 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.814e-05/0.3612, allocations: 11.44 kB / 1.075 GB, free: 2.652 MB / 0.8262 GB Notification: Performance of SimCode: time 3.51e-07/0.3612, allocations: 0 / 1.075 GB, free: 2.652 MB / 0.8262 GB Notification: Performance of Templates: time 0.004345/0.3655, allocations: 1.449 MB / 1.077 GB, free: 1.207 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall.makefile (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 & ./Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Herkel2008WindowsSmall -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/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,occ.startTime,occ.startValue,time,win.A,win.B,win.TOut,win.occ,win.on,win.p,win.samplePeriod,win.seed,win.t0