Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_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 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.Haldi2009WindowsTInTout,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|win.TOut|win.occ|win.pOpen|win.on",fileNamePrefix="Buildings_9_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_9_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.001277/0.001277, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001362/0.001362, allocations: 177.3 kB / 15.95 MB, free: 216 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.416/1.416, allocations: 223.2 MB / 239.9 MB, free: 5.418 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.455/2.455, allocations: 390.3 MB / 0.6653 GB, free: 2.891 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004875/0.0004875, allocations: 8 kB / 0.8145 GB, free: 14.2 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7866/0.7871, allocations: 142.3 MB / 0.9535 GB, free: 8.102 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout): time 0.001837/0.789, allocations: 1.263 MB / 0.9547 GB, free: 7.105 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001237/0.7903, allocations: 0.7308 MB / 0.9555 GB, free: 6.543 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.986e-05/0.7903, allocations: 1.188 kB / 0.9555 GB, free: 6.543 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.074e-05/0.7904, allocations: 7.875 kB / 0.9555 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.59e-05/0.7905, allocations: 22.98 kB / 0.9555 GB, free: 6.516 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005067/0.791, allocations: 112.5 kB / 0.9556 GB, free: 6.434 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001217/0.7911, allocations: 80.73 kB / 0.9557 GB, free: 6.379 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001056/0.7912, allocations: 11.36 kB / 0.9557 GB, free: 6.375 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001067/0.7913, allocations: 51.86 kB / 0.9557 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001025/0.7915, allocations: 70 kB / 0.9558 GB, free: 6.301 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.341e-05/0.7915, allocations: 5.844 kB / 0.9558 GB, free: 6.301 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001709/0.7917, allocations: 73.94 kB / 0.9559 GB, free: 6.266 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.054e-05/0.7917, allocations: 23.61 kB / 0.9559 GB, free: 6.246 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.663e-05/0.7918, allocations: 45.14 kB / 0.9559 GB, free: 6.203 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000182/0.7919, allocations: 132.2 kB / 0.9561 GB, free: 6.117 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.357e-06/0.792, allocations: 1.062 kB / 0.9561 GB, free: 6.117 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.034e-06/0.792, allocations: 0 / 0.9561 GB, free: 6.117 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 8.486e-06/0.792, allocations: 0 / 0.9561 GB, free: 6.117 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0006941/0.7927, allocations: 472.6 kB / 0.9565 GB, free: 5.637 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.386e-05/0.7927, allocations: 9.031 kB / 0.9565 GB, free: 5.637 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.004e-05/0.7928, allocations: 18.39 kB / 0.9565 GB, free: 5.625 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000101/0.7929, allocations: 179.2 kB / 0.9567 GB, free: 5.418 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.131e-05/0.7929, allocations: 3.5 kB / 0.9567 GB, free: 5.418 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.635e-05/0.793, allocations: 8.625 kB / 0.9567 GB, free: 5.414 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002599/0.7932, allocations: 110.9 kB / 0.9568 GB, free: 5.332 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.165e-06/0.7932, allocations: 0 / 0.9568 GB, free: 5.332 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.75e-05/0.7933, allocations: 0.9062 kB / 0.9568 GB, free: 5.332 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.342e-06/0.7933, allocations: 0.9688 kB / 0.9568 GB, free: 5.332 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002092/0.7935, allocations: 79.03 kB / 0.9569 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008116/0.7943, allocations: 373.1 kB / 0.9573 GB, free: 4.938 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001792/0.7945, allocations: 79.23 kB / 0.9573 GB, free: 4.883 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.616e-05/0.7945, allocations: 5.453 kB / 0.9574 GB, free: 4.879 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002394/0.7948, allocations: 103.3 kB / 0.9574 GB, free: 4.797 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=9): time 1.653e-06/0.7948, allocations: 0 / 0.9574 GB, free: 4.797 MB / 0.7169 GB Notification: Performance of matching and sorting (n=9): time 0.0005657/0.7954, allocations: 234.5 kB / 0.9577 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.17e-05/0.7954, allocations: 58.31 kB / 0.9577 GB, free: 4.605 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001042/0.7955, allocations: 150.3 kB / 0.9579 GB, free: 4.477 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.632e-05/0.7955, allocations: 28.86 kB / 0.9579 GB, free: 4.445 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.368e-05/0.7956, allocations: 99.45 kB / 0.958 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.422e-05/0.7956, allocations: 18.62 kB / 0.958 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.175e-06/0.7956, allocations: 5.219 kB / 0.958 GB, free: 4.324 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.371e-05/0.7957, allocations: 325 kB / 0.9583 GB, free: 4 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001138/0.7958, allocations: 46.56 kB / 0.9584 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001247/0.796, allocations: 74.83 kB / 0.9584 GB, free: 3.922 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001268/0.7961, allocations: 52.8 kB / 0.9585 GB, free: 3.898 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.456e-06/0.7961, allocations: 2.156 kB / 0.9585 GB, free: 3.898 MB / 0.7169 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003165/0.7964, allocations: 166 kB / 0.9587 GB, free: 3.805 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.631e-05/0.7964, allocations: 9.438 kB / 0.9587 GB, free: 3.801 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.7965, allocations: 1.375 kB / 0.9587 GB, free: 3.801 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.86e-05/0.7965, allocations: 5.328 kB / 0.9587 GB, free: 3.797 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001431/0.7966, allocations: 23.11 kB / 0.9587 GB, free: 3.789 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.917e-06/0.7966, allocations: 1.375 kB / 0.9587 GB, free: 3.789 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001011/0.7968, allocations: 24.02 kB / 0.9587 GB, free: 3.773 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.568e-05/0.7968, allocations: 4.125 kB / 0.9587 GB, free: 3.773 MB / 0.7169 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 ($PRE.win.curSeed,win.curSeed,$PRE.win.on,win.on,win.occ,$PRE.win.pOpen,win.pOpen,$PRE.win.pClose,win.pClose,$whenCondition1,win.sampleTrigger) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.744e-05/0.7969, allocations: 128.5 kB / 0.9588 GB, free: 3.648 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.941e-05/0.7969, allocations: 9.406 kB / 0.9588 GB, free: 3.645 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.251e-05/0.7969, allocations: 14.08 kB / 0.9589 GB, free: 3.629 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.7969, allocations: 5.328 kB / 0.9589 GB, free: 3.625 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.145e-06/0.797, allocations: 1.375 kB / 0.9589 GB, free: 3.625 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.797, allocations: 0 / 0.9589 GB, free: 3.625 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005613/0.7975, allocations: 473 kB / 0.9593 GB, free: 3.207 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.7975, allocations: 1.188 kB / 0.9593 GB, free: 3.207 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.184e-05/0.7976, allocations: 11.11 kB / 0.9593 GB, free: 3.203 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.377e-06/0.7976, allocations: 5.109 kB / 0.9593 GB, free: 3.199 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.509e-05/0.7976, allocations: 0.9375 kB / 0.9593 GB, free: 3.199 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.482e-06/0.7976, allocations: 9.25 kB / 0.9593 GB, free: 3.191 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.7977, allocations: 0 / 0.9593 GB, free: 3.191 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003971/0.7981, allocations: 283.2 kB / 0.9596 GB, free: 2.984 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.076e-05/0.7981, allocations: 92.17 kB / 0.9597 GB, free: 2.879 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.036e-05/0.7981, allocations: 9.109 kB / 0.9597 GB, free: 2.871 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001247/0.7983, allocations: 10.55 kB / 0.9597 GB, free: 2.867 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.586e-05/0.7983, allocations: 7.422 kB / 0.9597 GB, free: 2.863 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.318e-05/0.7983, allocations: 6.406 kB / 0.9597 GB, free: 2.859 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 5.437e-05/0.7984, allocations: 107.2 kB / 0.9598 GB, free: 2.77 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.7984, allocations: 1.312 kB / 0.9598 GB, free: 2.77 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003348/0.7987, allocations: 41.5 kB / 0.9599 GB, free: 2.762 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: 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 (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.0003646/0.7991, allocations: 163.5 kB / 0.96 GB, free: 2.645 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003394/0.7995, allocations: 118.4 kB / 0.9601 GB, free: 2.598 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.7995, allocations: 0.75 kB / 0.9601 GB, free: 2.598 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001488/0.7996, allocations: 63.09 kB / 0.9602 GB, free: 2.57 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001968/0.7998, allocations: 16.17 kB / 0.9602 GB, free: 2.559 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004504/0.8003, allocations: 251 kB / 0.9605 GB, free: 2.348 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001434/0.8005, allocations: 0.6997 MB / 0.9611 GB, free: 1.641 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 5.08e-05/0.8005, allocations: 12.11 kB / 0.9612 GB, free: 1.633 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.228e-05/0.8005, allocations: 11.56 kB / 0.9612 GB, free: 1.629 MB / 0.7169 GB Notification: Performance of SimCode: time 2.21e-07/0.8006, allocations: 0 / 0.9612 GB, free: 1.629 MB / 0.7169 GB Notification: Performance of Templates: time 0.005/0.8056, allocations: 1.789 MB / 0.9629 GB, free: 0.6992 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout.makefile (rm -f Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout.pipe ; mkfifo Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout.pipe ; head -c 1048576 < Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout.pipe >> ../files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout.sim & ./Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Occupants_Office_Windows_Validation_Haldi2009WindowsTInTout.csv","../files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,win.TOut,win.occ,win.pOpen,win.on Variables in the result:TIn.amplitude,TIn.f,TIn.offset,TIn.phase,TIn.startTime,TOut.amplitude,TOut.f,TOut.offset,TOut.phase,TOut.startTime,occ.startTime,occ.startValue,time,win.ACloseIn,win.ACloseOut,win.AOpenIn,win.AOpenOut,win.BClose,win.BOpen,win.TOut,win.occ,win.on,win.pOpen,win.samplePeriod,win.seed,win.t0