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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.0008108/0.0008109, allocations: 87.11 kB / 15.06 MB, free: 1.09 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.0009356/0.0009356, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.409/1.409, allocations: 223.3 MB / 240 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.47/2.47, allocations: 390.9 MB / 0.666 GB, free: 2.406 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003644/0.0003645, allocations: 12 kB / 0.8154 GB, free: 13.63 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8214/0.8218, allocations: 142.4 MB / 0.9544 GB, free: 7.762 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Haldi2008WindowsTIn): time 0.001392/0.8233, allocations: 1.198 MB / 0.9556 GB, free: 6.812 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009828/0.8243, allocations: 0.6851 MB / 0.9563 GB, free: 6.281 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.425e-05/0.8243, allocations: 1.312 kB / 0.9563 GB, free: 6.281 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.429e-05/0.8243, allocations: 3.938 kB / 0.9563 GB, free: 6.277 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.926e-05/0.8244, allocations: 9.062 kB / 0.9563 GB, free: 6.27 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004468/0.8249, allocations: 101.4 kB / 0.9564 GB, free: 6.199 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.29e-05/0.825, allocations: 61.62 kB / 0.9565 GB, free: 6.164 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.185e-05/0.8251, allocations: 13.17 kB / 0.9565 GB, free: 6.156 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.794e-05/0.8251, allocations: 34.2 kB / 0.9565 GB, free: 6.137 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.322e-05/0.8252, allocations: 30.09 kB / 0.9565 GB, free: 6.117 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.615e-05/0.8252, allocations: 4.25 kB / 0.9565 GB, free: 6.117 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001611/0.8254, allocations: 84.53 kB / 0.9566 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.101e-05/0.8254, allocations: 23.09 kB / 0.9566 GB, free: 6.055 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.343e-05/0.8255, allocations: 34.14 kB / 0.9567 GB, free: 6.02 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001637/0.8256, allocations: 91.86 kB / 0.9568 GB, free: 5.965 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.8257, allocations: 0 / 0.9568 GB, free: 5.965 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.304e-06/0.8257, allocations: 1.125 kB / 0.9568 GB, free: 5.965 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.158e-06/0.8257, allocations: 0 / 0.9568 GB, free: 5.965 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.0005078/0.8262, allocations: 413 kB / 0.9571 GB, free: 5.535 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.898e-05/0.8262, allocations: 16.69 kB / 0.9572 GB, free: 5.531 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.809e-05/0.8263, allocations: 13.55 kB / 0.9572 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.609e-05/0.8264, allocations: 174.7 kB / 0.9573 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.866e-05/0.8264, allocations: 1.875 kB / 0.9573 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.523e-05/0.8264, allocations: 3.562 kB / 0.9573 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001597/0.8266, allocations: 79.17 kB / 0.9574 GB, free: 5.25 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.265e-06/0.8266, allocations: 0 / 0.9574 GB, free: 5.25 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.15e-05/0.8266, allocations: 0 / 0.9574 GB, free: 5.25 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.204e-06/0.8266, allocations: 1.781 kB / 0.9574 GB, free: 5.25 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001147/0.8268, allocations: 49.11 kB / 0.9575 GB, free: 5.227 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004995/0.8273, allocations: 320.2 kB / 0.9578 GB, free: 4.898 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001152/0.8274, allocations: 51.38 kB / 0.9578 GB, free: 4.859 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.695e-05/0.8275, allocations: 33.41 kB / 0.9579 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.253e-05/0.8275, allocations: 1.406 kB / 0.9579 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001803/0.8277, allocations: 88.27 kB / 0.9579 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 2.455e-06/0.8277, allocations: 0 / 0.9579 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0003996/0.8281, allocations: 152.6 kB / 0.9581 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.301e-05/0.8281, allocations: 56.66 kB / 0.9581 GB, free: 4.609 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.996e-05/0.8282, allocations: 121 kB / 0.9583 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.174e-05/0.8282, allocations: 26.83 kB / 0.9583 GB, free: 4.465 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.61e-05/0.8283, allocations: 90.34 kB / 0.9584 GB, free: 4.375 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.877e-05/0.8283, allocations: 15.12 kB / 0.9584 GB, free: 4.363 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.961e-06/0.8283, allocations: 0 / 0.9584 GB, free: 4.363 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.157e-05/0.8284, allocations: 320.9 kB / 0.9587 GB, free: 4.043 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.581e-05/0.8285, allocations: 28.8 kB / 0.9587 GB, free: 4.031 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.314e-05/0.8285, allocations: 64.88 kB / 0.9588 GB, free: 3.977 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.741e-05/0.8286, allocations: 31.16 kB / 0.9588 GB, free: 3.965 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.8286, allocations: 0 / 0.9588 GB, free: 3.965 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002105/0.8289, allocations: 127.1 kB / 0.9589 GB, free: 3.887 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.66e-05/0.8289, allocations: 5.25 kB / 0.9589 GB, free: 3.887 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/0.8289, allocations: 5.734 kB / 0.9589 GB, free: 3.883 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.395e-05/0.8289, allocations: 1.375 kB / 0.9589 GB, free: 3.883 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.341e-05/0.829, allocations: 16.98 kB / 0.959 GB, free: 3.875 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.382e-06/0.829, allocations: 1.594 kB / 0.959 GB, free: 3.875 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.72e-05/0.8291, allocations: 21.66 kB / 0.959 GB, free: 3.859 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.261e-05/0.8291, allocations: 2.562 kB / 0.959 GB, free: 3.859 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 ($PRE.win.curSeed,win.curSeed,occ.y,$PRE.win.on,win.on,$PRE.win.p,win.p,$whenCondition1,win.sampleTrigger) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.724e-05/0.8292, allocations: 115 kB / 0.9591 GB, free: 3.742 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.422e-05/0.8292, allocations: 6.953 kB / 0.9591 GB, free: 3.738 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.3e-05/0.8292, allocations: 10 kB / 0.9591 GB, free: 3.73 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.376e-06/0.8292, allocations: 5.672 kB / 0.9591 GB, free: 3.727 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.8293, allocations: 4 kB / 0.9591 GB, free: 3.723 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.446e-06/0.8293, allocations: 1.219 kB / 0.9591 GB, free: 3.723 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000347/0.8296, allocations: 387.6 kB / 0.9595 GB, free: 3.352 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.8296, allocations: 0 / 0.9595 GB, free: 3.352 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.694e-05/0.8297, allocations: 4.422 kB / 0.9595 GB, free: 3.352 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.46e-06/0.8297, allocations: 9.375 kB / 0.9595 GB, free: 3.344 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.101e-05/0.8297, allocations: 7.984 kB / 0.9595 GB, free: 3.336 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.402e-06/0.8297, allocations: 5.719 kB / 0.9595 GB, free: 3.332 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.8297, allocations: 0 / 0.9595 GB, free: 3.332 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002226/0.8299, allocations: 210.9 kB / 0.9597 GB, free: 3.164 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.241e-05/0.83, allocations: 86.38 kB / 0.9598 GB, free: 3.062 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.044e-05/0.83, allocations: 5.328 kB / 0.9598 GB, free: 3.059 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.131e-05/0.8301, allocations: 8.125 kB / 0.9598 GB, free: 3.055 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.283e-05/0.8301, allocations: 14.72 kB / 0.9598 GB, free: 3.043 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.748e-06/0.8301, allocations: 2.75 kB / 0.9598 GB, free: 3.043 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.371e-05/0.8302, allocations: 91.52 kB / 0.9599 GB, free: 2.961 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8302, allocations: 0 / 0.9599 GB, free: 2.961 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003007/0.8305, allocations: 44.75 kB / 0.96 GB, free: 2.945 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003529/0.8309, allocations: 161 kB / 0.9601 GB, free: 2.832 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002295/0.8311, allocations: 78.62 kB / 0.9602 GB, free: 2.801 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.8311, allocations: 0 / 0.9602 GB, free: 2.801 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.258e-05/0.8312, allocations: 39.34 kB / 0.9602 GB, free: 2.785 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002517/0.8315, allocations: 14.86 kB / 0.9602 GB, free: 2.773 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003483/0.8318, allocations: 206.5 kB / 0.9604 GB, free: 2.59 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001146/0.8319, allocations: 0.6878 MB / 0.9611 GB, free: 1.887 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.679e-05/0.832, allocations: 8.312 kB / 0.9611 GB, free: 1.883 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.413e-05/0.832, allocations: 10.19 kB / 0.9611 GB, free: 1.875 MB / 0.7169 GB Notification: Performance of SimCode: time 2.2e-07/0.832, allocations: 0 / 0.9611 GB, free: 1.875 MB / 0.7169 GB Notification: Performance of Templates: time 0.003794/0.8358, allocations: 1.35 MB / 0.9624 GB, free: 1.172 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