Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_9_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_9_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.001427/0.001427, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001917/0.001917, allocations: 198.4 kB / 16.14 MB, free: 6.648 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.368/1.368, allocations: 222.9 MB / 239.8 MB, free: 4.609 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.425/2.425, allocations: 390.2 MB / 0.6642 GB, free: 0.5977 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001538/0.001538, allocations: 59.91 kB / 0.8119 GB, free: 14.87 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7602/0.7617, allocations: 140.4 MB / 0.9489 GB, free: 9.145 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn): time 0.002372/0.7641, allocations: 1.553 MB / 0.9504 GB, free: 7.926 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001081/0.7652, allocations: 0.7408 MB / 0.9512 GB, free: 7.355 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.457e-05/0.7653, allocations: 5.594 kB / 0.9512 GB, free: 7.352 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.701e-05/0.7653, allocations: 0 / 0.9512 GB, free: 7.352 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.055e-05/0.7654, allocations: 8.875 kB / 0.9512 GB, free: 7.344 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003787/0.7658, allocations: 96.58 kB / 0.9513 GB, free: 7.277 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.713e-05/0.7659, allocations: 78.48 kB / 0.9513 GB, free: 7.23 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 7.666e-05/0.766, allocations: 14.36 kB / 0.9514 GB, free: 7.223 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.398e-05/0.766, allocations: 37.45 kB / 0.9514 GB, free: 7.199 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.735e-05/0.7661, allocations: 35.59 kB / 0.9514 GB, free: 7.176 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.633e-05/0.7661, allocations: 4.219 kB / 0.9514 GB, free: 7.176 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001536/0.7663, allocations: 94.16 kB / 0.9515 GB, free: 7.125 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.132e-05/0.7663, allocations: 14.72 kB / 0.9515 GB, free: 7.113 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.132e-05/0.7664, allocations: 28.11 kB / 0.9516 GB, free: 7.094 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001854/0.7665, allocations: 134.8 kB / 0.9517 GB, free: 7.008 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/0.7666, allocations: 0 / 0.9517 GB, free: 7.008 MB / 0.7169 GB Notification: Performance of FrontEnd: time 9.32e-07/0.7666, allocations: 0 / 0.9517 GB, free: 7.008 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.903e-06/0.7666, allocations: 1.062 kB / 0.9517 GB, free: 7.008 MB / 0.7169 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.000514/0.7671, allocations: 431.3 kB / 0.9521 GB, free: 6.562 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.342e-05/0.7671, allocations: 10.22 kB / 0.9521 GB, free: 6.562 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.729e-05/0.7672, allocations: 3.406 kB / 0.9521 GB, free: 6.562 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.08e-05/0.7673, allocations: 176.1 kB / 0.9523 GB, free: 6.355 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.909e-05/0.7673, allocations: 7.312 kB / 0.9523 GB, free: 6.352 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.947e-05/0.7673, allocations: 8.844 kB / 0.9523 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001605/0.7675, allocations: 75.09 kB / 0.9524 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.593e-06/0.7675, allocations: 1.156 kB / 0.9524 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.138e-05/0.7675, allocations: 4 kB / 0.9524 GB, free: 6.281 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.739e-06/0.7675, allocations: 0.9688 kB / 0.9524 GB, free: 6.281 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001223/0.7676, allocations: 36.81 kB / 0.9524 GB, free: 6.266 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005096/0.7682, allocations: 320.2 kB / 0.9527 GB, free: 5.934 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000112/0.7683, allocations: 49.44 kB / 0.9528 GB, free: 5.895 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.404e-05/0.7684, allocations: 31.5 kB / 0.9528 GB, free: 5.875 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.138e-05/0.7684, allocations: 1.781 kB / 0.9528 GB, free: 5.875 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002005/0.7686, allocations: 80.86 kB / 0.9529 GB, free: 5.801 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.252e-06/0.7686, allocations: 0 / 0.9529 GB, free: 5.801 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0003777/0.769, allocations: 147.9 kB / 0.953 GB, free: 5.711 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.908e-05/0.769, allocations: 57.41 kB / 0.9531 GB, free: 5.645 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.937e-05/0.7691, allocations: 117.4 kB / 0.9532 GB, free: 5.535 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.395e-05/0.7691, allocations: 27.23 kB / 0.9532 GB, free: 5.504 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.548e-05/0.7692, allocations: 90.88 kB / 0.9533 GB, free: 5.414 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.675e-05/0.7692, allocations: 14.75 kB / 0.9533 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.432e-05/0.7692, allocations: 33.08 kB / 0.9533 GB, free: 5.371 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.543e-05/0.7693, allocations: 329.3 kB / 0.9536 GB, free: 5.043 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.783e-05/0.7694, allocations: 26.3 kB / 0.9537 GB, free: 5.031 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.034e-05/0.7695, allocations: 49.67 kB / 0.9537 GB, free: 4.988 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001439/0.7696, allocations: 86.47 kB / 0.9538 GB, free: 4.922 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.7696, allocations: 0 / 0.9538 GB, free: 4.922 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002187/0.7699, allocations: 114.3 kB / 0.9539 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.471e-05/0.7699, allocations: 5.031 kB / 0.9539 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.309e-06/0.7699, allocations: 5.172 kB / 0.9539 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.213e-05/0.7699, allocations: 1.312 kB / 0.9539 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.189e-05/0.77, allocations: 12.66 kB / 0.9539 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.251e-06/0.77, allocations: 2.375 kB / 0.9539 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.913e-05/0.7701, allocations: 15.58 kB / 0.954 GB, free: 4.832 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.281e-05/0.7701, allocations: 3.625 kB / 0.954 GB, free: 4.832 MB / 0.7169 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 6.501e-05/0.7702, allocations: 125.9 kB / 0.9541 GB, free: 4.707 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.624e-05/0.7702, allocations: 6.562 kB / 0.9541 GB, free: 4.703 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.344e-05/0.7702, allocations: 13.8 kB / 0.9541 GB, free: 4.691 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.7702, allocations: 1.094 kB / 0.9541 GB, free: 4.691 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.396e-06/0.7702, allocations: 1.281 kB / 0.9541 GB, free: 4.691 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.7703, allocations: 0 / 0.9541 GB, free: 4.691 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003503/0.7706, allocations: 386.6 kB / 0.9545 GB, free: 4.316 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.7706, allocations: 5.062 kB / 0.9545 GB, free: 4.312 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.91e-05/0.7707, allocations: 6.75 kB / 0.9545 GB, free: 4.309 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.7707, allocations: 1.188 kB / 0.9545 GB, free: 4.309 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.159e-05/0.7707, allocations: 5.109 kB / 0.9545 GB, free: 4.305 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.7707, allocations: 0 / 0.9545 GB, free: 4.305 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.7707, allocations: 4.906 kB / 0.9545 GB, free: 4.301 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002272/0.7709, allocations: 205.7 kB / 0.9547 GB, free: 4.133 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.996e-05/0.771, allocations: 83.42 kB / 0.9548 GB, free: 4.035 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.79e-05/0.771, allocations: 0 / 0.9548 GB, free: 4.035 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.595e-05/0.7711, allocations: 11.27 kB / 0.9548 GB, free: 4.027 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.099e-05/0.7711, allocations: 7.094 kB / 0.9548 GB, free: 4.023 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.698e-06/0.7711, allocations: 6.359 kB / 0.9548 GB, free: 4.02 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.277e-05/0.7712, allocations: 95.64 kB / 0.9549 GB, free: 3.934 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.01e-07/0.7712, allocations: 0 / 0.9549 GB, free: 3.934 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003191/0.7715, allocations: 45.12 kB / 0.9549 GB, free: 3.918 MB / 0.7169 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.0002985/0.7718, allocations: 161.7 kB / 0.9551 GB, free: 3.801 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002102/0.772, allocations: 74.28 kB / 0.9551 GB, free: 3.77 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.215e-06/0.772, allocations: 4.125 kB / 0.9551 GB, free: 3.766 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.007e-05/0.7721, allocations: 39.88 kB / 0.9552 GB, free: 3.746 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002443/0.7724, allocations: 7.938 kB / 0.9552 GB, free: 3.742 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003583/0.7727, allocations: 186.2 kB / 0.9554 GB, free: 3.574 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001085/0.7729, allocations: 0.697 MB / 0.9561 GB, free: 2.863 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.531e-05/0.7729, allocations: 2.875 kB / 0.9561 GB, free: 2.863 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.58e-05/0.7729, allocations: 11.28 kB / 0.9561 GB, free: 2.855 MB / 0.7169 GB Notification: Performance of SimCode: time 1.9e-07/0.7729, allocations: 0 / 0.9561 GB, free: 2.855 MB / 0.7169 GB Notification: Performance of Templates: time 0.003599/0.7766, allocations: 1.375 MB / 0.9574 GB, free: 2.145 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.makefile (rm -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.sim & ./Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Windows_Validation_Haldi2008WindowsTIn.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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