Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.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.Haldi2008WindowsTIn,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|win.TIn|win.occ|win.p|win.on",fileNamePrefix="Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn") translateModel(Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|win.TIn|win.occ|win.p|win.on",fileNamePrefix="Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001122/0.001122, 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.001122/0.001122, allocations: 191.3 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.364/1.364, allocations: 222.9 MB / 240.2 MB, free: 4.371 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.248/3.248, allocations: 472.7 MB / 0.7452 GB, free: 4.578 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001258/0.001258, allocations: 68.94 kB / 0.9121 GB, free: 33.41 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3442/0.3455, allocations: 159.9 MB / 1.068 GB, free: 10.34 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn): time 0.002855/0.3484, allocations: 1.494 MB / 1.07 GB, free: 8.836 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001296/0.3497, allocations: 0.7323 MB / 1.07 GB, free: 8.098 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.208e-05/0.3498, allocations: 3.938 kB / 1.07 GB, free: 8.094 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.222e-05/0.3498, allocations: 7.875 kB / 1.07 GB, free: 8.086 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.062e-05/0.3499, allocations: 11.88 kB / 1.07 GB, free: 8.074 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005196/0.3504, allocations: 123.6 kB / 1.071 GB, free: 7.953 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001096/0.3505, allocations: 75.77 kB / 1.071 GB, free: 7.879 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001019/0.3506, allocations: 23.97 kB / 1.071 GB, free: 7.855 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 8.151e-05/0.3507, allocations: 27.92 kB / 1.071 GB, free: 7.828 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 7.143e-05/0.3508, allocations: 43.81 kB / 1.071 GB, free: 7.785 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.018e-05/0.3508, allocations: 8 kB / 1.071 GB, free: 7.777 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002092/0.351, allocations: 95.84 kB / 1.071 GB, free: 7.684 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 3.684e-05/0.3511, allocations: 19.92 kB / 1.071 GB, free: 7.664 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 4.433e-05/0.3511, allocations: 31.86 kB / 1.071 GB, free: 7.633 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002089/0.3514, allocations: 147.9 kB / 1.071 GB, free: 7.488 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.3514, allocations: 0 / 1.071 GB, free: 7.488 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.553e-06/0.3514, allocations: 0 / 1.071 GB, free: 7.488 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.831e-06/0.3514, allocations: 0 / 1.071 GB, free: 7.488 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.0006364/0.352, allocations: 415.4 kB / 1.071 GB, free: 7.031 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.735e-05/0.3521, allocations: 8.031 kB / 1.071 GB, free: 7.023 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.377e-05/0.3521, allocations: 8.844 kB / 1.071 GB, free: 7.016 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001334/0.3523, allocations: 176.2 kB / 1.072 GB, free: 6.805 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.792e-05/0.3523, allocations: 8.297 kB / 1.072 GB, free: 6.797 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.779e-05/0.3523, allocations: 12.38 kB / 1.072 GB, free: 6.785 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002003/0.3525, allocations: 69.97 kB / 1.072 GB, free: 6.711 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.744e-06/0.3525, allocations: 0 / 1.072 GB, free: 6.711 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.31e-05/0.3526, allocations: 0 / 1.072 GB, free: 6.711 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.488e-06/0.3526, allocations: 0 / 1.072 GB, free: 6.711 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001337/0.3527, allocations: 39.97 kB / 1.072 GB, free: 6.672 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000613/0.3533, allocations: 316.7 kB / 1.072 GB, free: 6.312 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001302/0.3535, allocations: 50.5 kB / 1.072 GB, free: 6.254 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.296e-05/0.3536, allocations: 36.97 kB / 1.072 GB, free: 6.215 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.942e-05/0.3536, allocations: 0 / 1.072 GB, free: 6.215 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001901/0.3538, allocations: 83.44 kB / 1.072 GB, free: 6.121 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 1.292e-06/0.3538, allocations: 0 / 1.072 GB, free: 6.121 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0003904/0.3542, allocations: 141.5 kB / 1.072 GB, free: 5.977 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.116e-05/0.3542, allocations: 55.41 kB / 1.072 GB, free: 5.91 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001077/0.3543, allocations: 121.8 kB / 1.072 GB, free: 5.781 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.794e-05/0.3544, allocations: 25.7 kB / 1.072 GB, free: 5.75 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.162e-05/0.3544, allocations: 96.12 kB / 1.073 GB, free: 5.652 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.723e-05/0.3545, allocations: 15.75 kB / 1.073 GB, free: 5.637 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.935e-05/0.3545, allocations: 29.7 kB / 1.073 GB, free: 5.602 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001294/0.3546, allocations: 326.8 kB / 1.073 GB, free: 5.273 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.968e-05/0.3547, allocations: 23.98 kB / 1.073 GB, free: 5.25 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.16e-05/0.3548, allocations: 51.42 kB / 1.073 GB, free: 5.188 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001891/0.355, allocations: 87.28 kB / 1.073 GB, free: 5.09 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.355, allocations: 0 / 1.073 GB, free: 5.09 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002345/0.3553, allocations: 117.5 kB / 1.073 GB, free: 4.969 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.306e-05/0.3553, allocations: 4 kB / 1.073 GB, free: 4.965 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.793e-06/0.3553, allocations: 4 kB / 1.073 GB, free: 4.961 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.155e-05/0.3553, allocations: 8 kB / 1.073 GB, free: 4.953 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.186e-05/0.3554, allocations: 11.98 kB / 1.073 GB, free: 4.941 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.17e-06/0.3554, allocations: 0 / 1.073 GB, free: 4.941 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.635e-05/0.3555, allocations: 12.05 kB / 1.073 GB, free: 4.93 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.351e-05/0.3555, allocations: 4 kB / 1.073 GB, free: 4.926 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 (win.curSeed,$PRE.win.curSeed,occ.y,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.916e-05/0.3556, allocations: 131.5 kB / 1.073 GB, free: 4.789 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.659e-05/0.3557, allocations: 3.906 kB / 1.073 GB, free: 4.785 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.881e-05/0.3557, allocations: 12.36 kB / 1.073 GB, free: 4.773 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.3557, allocations: 7.938 kB / 1.073 GB, free: 4.766 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.3557, allocations: 0 / 1.073 GB, free: 4.766 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.567e-06/0.3557, allocations: 0 / 1.073 GB, free: 4.766 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004469/0.3562, allocations: 382.4 kB / 1.074 GB, free: 4.336 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.3562, allocations: 0 / 1.074 GB, free: 4.336 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.721e-05/0.3562, allocations: 4 kB / 1.074 GB, free: 4.332 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.509e-06/0.3562, allocations: 4 kB / 1.074 GB, free: 4.328 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.069e-05/0.3562, allocations: 0 / 1.074 GB, free: 4.328 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.156e-06/0.3563, allocations: 7.984 kB / 1.074 GB, free: 4.32 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/0.3563, allocations: 7.875 kB / 1.074 GB, free: 4.312 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002691/0.3565, allocations: 211.8 kB / 1.074 GB, free: 4.09 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.55e-05/0.3566, allocations: 81.02 kB / 1.074 GB, free: 3.992 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.882e-05/0.3566, allocations: 0 / 1.074 GB, free: 3.992 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.713e-05/0.3567, allocations: 7.984 kB / 1.074 GB, free: 3.984 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.116e-05/0.3567, allocations: 7.938 kB / 1.074 GB, free: 3.977 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.148e-05/0.3568, allocations: 11.98 kB / 1.074 GB, free: 3.965 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 6.025e-05/0.3568, allocations: 95.92 kB / 1.074 GB, free: 3.871 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3568, allocations: 0 / 1.074 GB, free: 3.871 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002872/0.3571, allocations: 36 kB / 1.074 GB, free: 3.836 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,occ.y,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.0003349/0.3575, allocations: 165 kB / 1.074 GB, free: 3.684 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002384/0.3577, allocations: 79.89 kB / 1.074 GB, free: 3.605 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.3577, allocations: 0 / 1.074 GB, free: 3.605 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 9.374e-05/0.3578, allocations: 39.86 kB / 1.074 GB, free: 3.566 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002501/0.3581, allocations: 11.98 kB / 1.074 GB, free: 3.555 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003964/0.3585, allocations: 176.4 kB / 1.075 GB, free: 3.352 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002526/0.3588, allocations: 0.6885 MB / 1.075 GB, free: 2.637 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.413e-05/0.3588, allocations: 4 kB / 1.075 GB, free: 2.633 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.644e-05/0.3588, allocations: 11.44 kB / 1.075 GB, free: 2.621 MB / 0.8262 GB Notification: Performance of SimCode: time 2.1e-07/0.3588, allocations: 0 / 1.075 GB, free: 2.621 MB / 0.8262 GB Notification: Performance of Templates: time 0.003898/0.3627, allocations: 1.463 MB / 1.077 GB, free: 1.16 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.makefile (rm -f Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.pipe ; mkfifo Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.pipe ; head -c 1048576 < Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.pipe >> ../files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.sim & ./Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Occupants_Office_Windows_Validation_Haldi2008WindowsTIn.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,win.TIn,win.occ,win.p,win.on Variables in the result:TIn.amplitude,TIn.f,TIn.offset,TIn.phase,TIn.startTime,occ.startTime,occ.startValue,occ.y,time,win.A,win.B,win.TIn,win.occ,win.on,win.p,win.samplePeriod,win.seed,win.t0