Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTable.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.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTable,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|timTabLin.y.1.|timTabLinCon.y.1.|timTabCon.y.1.|timTabLinHol.y.1.|timTabLinDer.y.1.",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTable") translateModel(Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTable,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|timTabLin.y.1.|timTabLinCon.y.1.|timTabCon.y.1.|timTabLinHol.y.1.|timTabLinDer.y.1.",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTable") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001313/0.001313, allocations: 97.78 kB / 16.02 MB, free: 76 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.001327/0.001327, allocations: 187.3 kB / 16.92 MB, free: 6.75 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.416/1.416, allocations: 223.3 MB / 241 MB, free: 5.336 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.359/2.359, allocations: 390.9 MB / 0.667 GB, free: 2.363 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003604/0.0003605, allocations: 12 kB / 0.8167 GB, free: 13.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7263/0.7267, allocations: 142.4 MB / 0.9557 GB, free: 7.828 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTable): time 0.002448/0.7291, allocations: 2.145 MB / 0.9578 GB, free: 6.129 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002222/0.7314, allocations: 1.547 MB / 0.9593 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001672/0.7316, allocations: 7.719 kB / 0.9594 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0005809/0.7322, allocations: 304.1 kB / 0.9596 GB, free: 4.742 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0005179/0.7327, allocations: 301.6 kB / 0.9599 GB, free: 4.531 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009011/0.7336, allocations: 406.7 kB / 0.9603 GB, free: 4.273 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0006618/0.7343, allocations: 0.6622 MB / 0.961 GB, free: 3.895 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002182/0.7345, allocations: 75 kB / 0.961 GB, free: 3.859 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000378/0.7349, allocations: 292 kB / 0.9613 GB, free: 3.695 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003504/0.7352, allocations: 303.8 kB / 0.9616 GB, free: 3.535 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.986e-05/0.7353, allocations: 10.88 kB / 0.9616 GB, free: 3.535 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002005/0.7355, allocations: 74.8 kB / 0.9617 GB, free: 3.504 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001842/0.7357, allocations: 178.3 kB / 0.9619 GB, free: 3.402 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.000229/0.7359, allocations: 275.8 kB / 0.9621 GB, free: 3.18 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0005291/0.7365, allocations: 0.5769 MB / 0.9627 GB, free: 2.773 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.7365, allocations: 0 / 0.9627 GB, free: 2.773 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.504e-06/0.7365, allocations: 0 / 0.9627 GB, free: 2.773 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.264e-06/0.7365, allocations: 0 / 0.9627 GB, free: 2.773 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: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.001279/0.7378, allocations: 0.9062 MB / 0.9636 GB, free: 1.988 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.182e-05/0.7378, allocations: 8.469 kB / 0.9636 GB, free: 1.988 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001177/0.738, allocations: 73.75 kB / 0.9636 GB, free: 1.949 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007882/0.7388, allocations: 0.6223 MB / 0.9643 GB, free: 1.453 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.924e-05/0.7388, allocations: 10.03 kB / 0.9643 GB, free: 1.449 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.209e-05/0.7388, allocations: 17.19 kB / 0.9643 GB, free: 1.441 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003676/0.7392, allocations: 198.4 kB / 0.9645 GB, free: 1.289 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.097e-06/0.7392, allocations: 1.062 kB / 0.9645 GB, free: 1.289 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.471e-05/0.7393, allocations: 6.094 kB / 0.9645 GB, free: 1.285 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.678e-06/0.7393, allocations: 2.188 kB / 0.9645 GB, free: 1.285 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002353/0.7395, allocations: 101.7 kB / 0.9646 GB, free: 1.234 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001202/0.7407, allocations: 1.054 MB / 0.9656 GB, free: 316 kB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005439/0.7413, allocations: 285.9 kB / 0.9659 GB, free: 92 kB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001781/0.7415, allocations: 103.6 kB / 0.966 GB, free: 12 kB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 3.418e-05/0.7415, allocations: 7.281 kB / 0.966 GB, free: 8 kB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000469/0.742, allocations: 225.1 kB / 0.9662 GB, free: 15.83 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=25): time 1.473e-06/0.742, allocations: 0 / 0.9662 GB, free: 15.83 MB / 0.7325 GB Notification: Performance of matching and sorting (n=25): time 0.001014/0.743, allocations: 420.5 kB / 0.9666 GB, free: 15.62 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.879e-05/0.7431, allocations: 166.1 kB / 0.9668 GB, free: 15.42 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001427/0.7446, allocations: 1.037 MB / 0.9678 GB, free: 14.9 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.635e-05/0.7446, allocations: 37.14 kB / 0.9678 GB, free: 14.86 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002545/0.7449, allocations: 289.1 kB / 0.9681 GB, free: 14.61 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 8.862e-05/0.745, allocations: 84.33 kB / 0.9682 GB, free: 14.54 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001005/0.7451, allocations: 65.06 kB / 0.9682 GB, free: 14.49 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001279/0.7452, allocations: 332.1 kB / 0.9685 GB, free: 14.17 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003988/0.7456, allocations: 209 kB / 0.9687 GB, free: 14.08 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004715/0.7461, allocations: 309 kB / 0.969 GB, free: 13.88 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006955/0.7468, allocations: 411.4 kB / 0.9694 GB, free: 13.64 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.953e-06/0.7468, allocations: 1.312 kB / 0.9694 GB, free: 13.64 MB / 0.7325 GB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001199/0.748, allocations: 0.6745 MB / 0.9701 GB, free: 13.32 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.219e-05/0.7481, allocations: 5.594 kB / 0.9701 GB, free: 13.32 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.225e-06/0.7481, allocations: 3.031 kB / 0.9701 GB, free: 13.32 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.184e-05/0.7481, allocations: 9.25 kB / 0.9701 GB, free: 13.32 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004145/0.7485, allocations: 116 kB / 0.9702 GB, free: 13.29 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.524e-05/0.7485, allocations: 12.48 kB / 0.9702 GB, free: 13.29 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003485/0.7489, allocations: 47.77 kB / 0.9703 GB, free: 13.25 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.724e-05/0.749, allocations: 27.92 kB / 0.9703 GB, free: 13.25 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 25 ($PRE.timTabLin.tab.nextTimeEvent,$whenCondition5,$PRE.timTabLinHol.tab.nextTimeEvent,$whenCondition4,$PRE.timTabLinDer.tab.nextTimeEvent,$whenCondition3,$PRE.timTabCon.tab.nextTimeEvent,$whenCondition2,$PRE.timTabLinCon.tab.nextTimeEvent,$whenCondition1,timTabLinCon.tab.nextTimeEventScaled,$PRE.timTabLinCon.tab.nextTimeEventScaled,timTabLinCon.tab.nextTimeEvent,timTabCon.tab.nextTimeEventScaled,$PRE.timTabCon.tab.nextTimeEventScaled,timTabCon.tab.nextTimeEvent,timTabLinDer.tab.nextTimeEventScaled,$PRE.timTabLinDer.tab.nextTimeEventScaled,timTabLinDer.tab.nextTimeEvent,timTabLinHol.tab.nextTimeEventScaled,$PRE.timTabLinHol.tab.nextTimeEventScaled,timTabLinHol.tab.nextTimeEvent,timTabLin.tab.nextTimeEventScaled,$PRE.timTabLin.tab.nextTimeEventScaled,timTabLin.tab.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (75): * Single equations (assignments): 75 * 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 0.0003743/0.7494, allocations: 275.3 kB / 0.9706 GB, free: 13.05 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001003/0.7495, allocations: 76.39 kB / 0.9706 GB, free: 13 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001245/0.7496, allocations: 75.33 kB / 0.9707 GB, free: 12.96 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.448e-06/0.7496, allocations: 4.094 kB / 0.9707 GB, free: 12.96 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.129e-05/0.7496, allocations: 5.062 kB / 0.9707 GB, free: 12.96 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.095e-06/0.7496, allocations: 6.047 kB / 0.9707 GB, free: 12.95 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005244/0.7502, allocations: 463.7 kB / 0.9712 GB, free: 12.57 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/0.7502, allocations: 1.094 kB / 0.9712 GB, free: 12.57 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.445e-05/0.7502, allocations: 20.69 kB / 0.9712 GB, free: 12.56 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.813e-06/0.7503, allocations: 6.578 kB / 0.9712 GB, free: 12.56 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.281e-05/0.7503, allocations: 8.375 kB / 0.9712 GB, free: 12.55 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.107e-06/0.7503, allocations: 2.406 kB / 0.9712 GB, free: 12.55 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.85e-06/0.7503, allocations: 8.969 kB / 0.9712 GB, free: 12.55 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006934/0.751, allocations: 387.6 kB / 0.9716 GB, free: 12.31 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001861/0.7512, allocations: 175.8 kB / 0.9717 GB, free: 12.15 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.552e-05/0.7513, allocations: 8.906 kB / 0.9718 GB, free: 12.14 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001845/0.7515, allocations: 23.03 kB / 0.9718 GB, free: 12.13 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.491e-05/0.7516, allocations: 25.94 kB / 0.9718 GB, free: 12.12 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.623e-05/0.7516, allocations: 11.34 kB / 0.9718 GB, free: 12.12 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0008443/0.7524, allocations: 0.6028 MB / 0.9724 GB, free: 11.8 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7524, allocations: 0 / 0.9724 GB, free: 11.8 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.000484/0.7529, allocations: 113.4 kB / 0.9725 GB, free: 11.78 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition5,timTabLin.tab.nextTimeEvent,timTabLin.tab.nextTimeEventScaled,$whenCondition4,timTabLinHol.tab.nextTimeEvent,timTabLinHol.tab.nextTimeEventScaled,$whenCondition3,timTabLinDer.tab.nextTimeEvent,timTabLinDer.tab.nextTimeEventScaled,$whenCondition2,timTabCon.tab.nextTimeEvent,timTabCon.tab.nextTimeEventScaled,$whenCondition1,timTabLinCon.tab.nextTimeEvent,timTabLinCon.tab.nextTimeEventScaled) * Number of discrete states: 10 (timTabLinCon.tab.nextTimeEventScaled,timTabLinCon.tab.nextTimeEvent,timTabCon.tab.nextTimeEventScaled,timTabCon.tab.nextTimeEvent,timTabLinDer.tab.nextTimeEventScaled,timTabLinDer.tab.nextTimeEvent,timTabLinHol.tab.nextTimeEventScaled,timTabLinHol.tab.nextTimeEvent,timTabLin.tab.nextTimeEventScaled,timTabLin.tab.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 10 * 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.00122/0.7542, allocations: 0.4932 MB / 0.973 GB, free: 11.54 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0008253/0.755, allocations: 399 kB / 0.9734 GB, free: 11.38 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/0.755, allocations: 1.25 kB / 0.9734 GB, free: 11.38 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0002438/0.7553, allocations: 106.8 kB / 0.9735 GB, free: 11.33 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001127/0.7564, allocations: 202.5 kB / 0.9737 GB, free: 11.24 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002198/0.7586, allocations: 1.284 MB / 0.9749 GB, free: 10.38 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005567/0.7592, allocations: 0.927 MB / 0.9758 GB, free: 9.57 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001838/0.7594, allocations: 59.7 kB / 0.9759 GB, free: 9.551 MB / 0.7325 GB Notification: Performance of SimCode: time 1.042e-06/0.7594, allocations: 4 kB / 0.9759 GB, free: 9.547 MB / 0.7325 GB Notification: Performance of Templates: time 0.01488/0.7743, allocations: 8.686 MB / 0.9844 GB, free: 1.719 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTable.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTable.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTable.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTable.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTable.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTable -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTable.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTable_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Sources_Validation_TimeTable.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTable.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches