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.005789/0.005789, allocations: 101.1 kB / 15.88 MB, free: 5.863 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.001227/0.001227, allocations: 188.7 kB / 16.79 MB, free: 5.805 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.35/1.35, allocations: 222.9 MB / 240.5 MB, free: 4.57 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.335/2.335, allocations: 390.2 MB / 0.6649 GB, free: 0.5977 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001488/0.001488, allocations: 63.91 kB / 0.8125 GB, free: 14.85 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6481/0.6496, allocations: 140.4 MB / 0.9496 GB, free: 9.125 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout): time 0.002868/0.6525, allocations: 1.648 MB / 0.9512 GB, free: 7.832 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001692/0.6542, allocations: 0.7824 MB / 0.9519 GB, free: 7.227 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.159e-05/0.6543, allocations: 2.062 kB / 0.952 GB, free: 7.227 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 4.371e-05/0.6543, allocations: 7.938 kB / 0.952 GB, free: 7.219 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.263e-05/0.6544, allocations: 21 kB / 0.952 GB, free: 7.199 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005176/0.6549, allocations: 119.3 kB / 0.9521 GB, free: 7.113 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001239/0.6551, allocations: 131 kB / 0.9522 GB, free: 7.039 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.767e-05/0.6552, allocations: 24.41 kB / 0.9522 GB, free: 7.023 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.167e-05/0.6553, allocations: 52.67 kB / 0.9523 GB, free: 6.996 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.312e-05/0.6554, allocations: 62.39 kB / 0.9524 GB, free: 6.957 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.381e-05/0.6554, allocations: 6.406 kB / 0.9524 GB, free: 6.957 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001697/0.6556, allocations: 101.2 kB / 0.9525 GB, free: 6.902 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.913e-05/0.6556, allocations: 27.98 kB / 0.9525 GB, free: 6.879 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.436e-05/0.6557, allocations: 52.8 kB / 0.9525 GB, free: 6.84 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001685/0.6558, allocations: 132 kB / 0.9527 GB, free: 6.754 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.189e-06/0.6559, allocations: 5.156 kB / 0.9527 GB, free: 6.75 MB / 0.7169 GB Notification: Performance of FrontEnd: time 9.12e-07/0.6559, allocations: 4 kB / 0.9527 GB, free: 6.746 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.258e-06/0.6559, allocations: 0 / 0.9527 GB, free: 6.746 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.0006438/0.6565, allocations: 479.7 kB / 0.9531 GB, free: 6.262 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.51e-05/0.6566, allocations: 10.03 kB / 0.9531 GB, free: 6.262 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.954e-05/0.6566, allocations: 18.11 kB / 0.9531 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.164e-05/0.6567, allocations: 179.7 kB / 0.9533 GB, free: 6.043 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.197e-05/0.6567, allocations: 7.625 kB / 0.9533 GB, free: 6.039 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.615e-05/0.6568, allocations: 13.12 kB / 0.9533 GB, free: 6.031 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002295/0.657, allocations: 103.3 kB / 0.9534 GB, free: 5.953 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.119e-05/0.657, allocations: 0 / 0.9534 GB, free: 5.953 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.435e-05/0.657, allocations: 1.281 kB / 0.9534 GB, free: 5.953 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.01e-05/0.6571, allocations: 1.219 kB / 0.9534 GB, free: 5.953 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001954/0.6573, allocations: 62.02 kB / 0.9535 GB, free: 5.926 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000764/0.658, allocations: 379.6 kB / 0.9539 GB, free: 5.555 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001673/0.6582, allocations: 69.45 kB / 0.9539 GB, free: 5.504 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001222/0.6583, allocations: 48.94 kB / 0.954 GB, free: 5.477 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.484e-05/0.6584, allocations: 9.578 kB / 0.954 GB, free: 5.469 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002378/0.6586, allocations: 99.47 kB / 0.9541 GB, free: 5.387 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=9): time 1.353e-06/0.6586, allocations: 0 / 0.9541 GB, free: 5.387 MB / 0.7169 GB Notification: Performance of matching and sorting (n=9): time 0.0005988/0.6592, allocations: 210.5 kB / 0.9543 GB, free: 5.273 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.941e-05/0.6593, allocations: 52.56 kB / 0.9543 GB, free: 5.211 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001036/0.6594, allocations: 157.2 kB / 0.9545 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.617e-05/0.6594, allocations: 28.42 kB / 0.9545 GB, free: 5.043 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.455e-05/0.6594, allocations: 104 kB / 0.9546 GB, free: 4.938 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.152e-05/0.6595, allocations: 16.09 kB / 0.9546 GB, free: 4.926 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.348e-05/0.6595, allocations: 30.62 kB / 0.9547 GB, free: 4.898 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.488e-05/0.6596, allocations: 330.7 kB / 0.955 GB, free: 4.57 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001265/0.6597, allocations: 45.03 kB / 0.955 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001269/0.6599, allocations: 74.33 kB / 0.9551 GB, free: 4.484 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002176/0.6601, allocations: 117.7 kB / 0.9552 GB, free: 4.398 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.6601, allocations: 1.156 kB / 0.9552 GB, free: 4.398 MB / 0.7169 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003103/0.6604, allocations: 158.5 kB / 0.9553 GB, free: 4.305 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.54e-05/0.6604, allocations: 5.688 kB / 0.9554 GB, free: 4.305 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.59e-06/0.6604, allocations: 0 / 0.9554 GB, free: 4.305 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.476e-05/0.6605, allocations: 2.344 kB / 0.9554 GB, free: 4.305 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001429/0.6606, allocations: 16.92 kB / 0.9554 GB, free: 4.301 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.056e-05/0.6606, allocations: 14.83 kB / 0.9554 GB, free: 4.289 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.988e-05/0.6607, allocations: 9.5 kB / 0.9554 GB, free: 4.285 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.518e-05/0.6608, allocations: 3.938 kB / 0.9554 GB, free: 4.285 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 (win.curSeed,$PRE.win.curSeed,win.on,$PRE.win.on,win.occ,win.pClose,$PRE.win.pClose,win.pOpen,$PRE.win.pOpen,win.sampleTrigger,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.888e-05/0.6608, allocations: 128.8 kB / 0.9555 GB, free: 4.156 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.37e-05/0.6609, allocations: 12.03 kB / 0.9555 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.962e-05/0.6609, allocations: 11.38 kB / 0.9555 GB, free: 4.141 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.996e-06/0.6609, allocations: 1.375 kB / 0.9555 GB, free: 4.141 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.131e-06/0.6609, allocations: 3.938 kB / 0.9555 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.6609, allocations: 4 kB / 0.9555 GB, free: 4.133 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005278/0.6615, allocations: 453.4 kB / 0.956 GB, free: 3.727 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.6615, allocations: 0 / 0.956 GB, free: 3.727 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.305e-05/0.6615, allocations: 10.61 kB / 0.956 GB, free: 3.723 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.825e-06/0.6616, allocations: 3.938 kB / 0.956 GB, free: 3.719 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.628e-05/0.6616, allocations: 5.234 kB / 0.956 GB, free: 3.715 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.472e-06/0.6616, allocations: 1.25 kB / 0.956 GB, free: 3.715 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.6616, allocations: 4 kB / 0.956 GB, free: 3.711 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003684/0.662, allocations: 262.2 kB / 0.9563 GB, free: 3.516 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.594e-05/0.662, allocations: 96.23 kB / 0.9563 GB, free: 3.406 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.939e-05/0.662, allocations: 1 kB / 0.9563 GB, free: 3.406 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001344/0.6622, allocations: 9.078 kB / 0.9564 GB, free: 3.402 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.577e-05/0.6622, allocations: 7.297 kB / 0.9564 GB, free: 3.398 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.383e-05/0.6623, allocations: 18.09 kB / 0.9564 GB, free: 3.383 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 5.071e-05/0.6623, allocations: 108.8 kB / 0.9565 GB, free: 3.293 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6623, allocations: 0 / 0.9565 GB, free: 3.293 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003183/0.6626, allocations: 50.5 kB / 0.9565 GB, free: 3.277 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 (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.0003487/0.663, allocations: 167 kB / 0.9567 GB, free: 3.156 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003255/0.6633, allocations: 110.2 kB / 0.9568 GB, free: 3.109 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.6633, allocations: 0 / 0.9568 GB, free: 3.109 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001473/0.6635, allocations: 59.16 kB / 0.9569 GB, free: 3.082 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002946/0.6638, allocations: 11.56 kB / 0.9569 GB, free: 3.078 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004611/0.6643, allocations: 280.3 kB / 0.9571 GB, free: 2.836 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001279/0.6644, allocations: 0.6973 MB / 0.9578 GB, free: 2.133 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.216e-05/0.6645, allocations: 18.48 kB / 0.9578 GB, free: 2.117 MB / 0.7169 GB Notification: Performance of SimCode: time 3.2e-07/0.6645, allocations: 3.938 kB / 0.9578 GB, free: 2.113 MB / 0.7169 GB Notification: Performance of Templates: time 0.003647/0.6681, allocations: 2.04 MB / 0.9598 GB, free: 1.062 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Occupants.Office.Windows.Validation.Haldi2009WindowsTInTout.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches