Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo", uses=false) Using package ThermofluidStream with version 0.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ThermofluidStream.Boundaries.Tests.TerminalSourceSink,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|pulse.T_start|pulse.count|terminalSource.p",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.TerminalSourceSink") translateModel(ThermofluidStream.Boundaries.Tests.TerminalSourceSink,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|pulse.T_start|pulse.count|terminalSource.p",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.TerminalSourceSink") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.01395/0.01395, allocations: 170.6 kB / 15.12 MB, free: 5.555 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.041/2.041, allocations: 205.4 MB / 221.3 MB, free: 13.68 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000936/0.0009361, allocations: 98.84 kB / 269.6 MB, free: 13.22 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo): time 0.9001/0.9001, allocations: 90.6 MB / 408.4 MB, free: 14.93 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003515/0.0003517, allocations: 12 kB / 485.2 MB, free: 2.047 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4962/0.4965, allocations: 66.28 MB / 0.5386 GB, free: 45.72 MB / 426.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.TerminalSourceSink): time 0.1753/0.6719, allocations: 119.1 MB / 0.6549 GB, free: 4.586 MB / 474.7 MB Notification: Performance of NFInst.instExpressions: time 0.002089/0.674, allocations: 1.76 MB / 0.6566 GB, free: 2.828 MB / 474.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001345/0.6742, allocations: 0 / 0.6566 GB, free: 2.828 MB / 474.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004364/0.6747, allocations: 91.61 kB / 0.6567 GB, free: 2.738 MB / 474.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002948/0.675, allocations: 135.5 kB / 0.6568 GB, free: 2.605 MB / 474.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003783/0.6753, allocations: 131.6 kB / 0.6569 GB, free: 2.477 MB / 474.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002232/0.6756, allocations: 167.6 kB / 0.6571 GB, free: 2.312 MB / 474.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001593/0.6757, allocations: 41.83 kB / 0.6571 GB, free: 2.273 MB / 474.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003881/0.6761, allocations: 143.5 kB / 0.6573 GB, free: 2.133 MB / 474.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001497/0.6763, allocations: 91.67 kB / 0.6573 GB, free: 2.043 MB / 474.7 MB Notification: Performance of NFPackage.collectConstants: time 1.928e-05/0.6763, allocations: 9.219 kB / 0.6574 GB, free: 2.035 MB / 474.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003359/0.6767, allocations: 199.7 kB / 0.6575 GB, free: 1.84 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 3.808e-05/0.6767, allocations: 19.86 kB / 0.6576 GB, free: 1.82 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 6.076e-05/0.6768, allocations: 57.64 kB / 0.6576 GB, free: 1.758 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002499/0.6771, allocations: 154.5 kB / 0.6578 GB, free: 1.617 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.796e-06/0.6771, allocations: 0 / 0.6578 GB, free: 1.617 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.833e-06/0.6771, allocations: 4 kB / 0.6578 GB, free: 1.613 MB / 474.7 MB Notification: Performance of Transformations before backend: time 5.841e-06/0.6771, allocations: 4 kB / 0.6578 GB, free: 1.609 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.0009671/0.6781, allocations: 497 kB / 0.6582 GB, free: 1.074 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.16e-05/0.6781, allocations: 12.03 kB / 0.6583 GB, free: 1.062 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.182e-05/0.6782, allocations: 15.81 kB / 0.6583 GB, free: 1.047 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000264/0.6784, allocations: 219.7 kB / 0.6585 GB, free: 0.793 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.582e-05/0.6785, allocations: 12.23 kB / 0.6585 GB, free: 0.7812 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.313e-05/0.6785, allocations: 12.66 kB / 0.6585 GB, free: 0.7695 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000381/0.6789, allocations: 170.2 kB / 0.6587 GB, free: 0.5938 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.878e-06/0.6789, allocations: 0 / 0.6587 GB, free: 0.5938 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.992e-05/0.679, allocations: 4 kB / 0.6587 GB, free: 0.5898 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.187e-06/0.679, allocations: 4 kB / 0.6587 GB, free: 0.5859 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003133/0.6793, allocations: 115.9 kB / 0.6588 GB, free: 484 kB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001117/0.6804, allocations: 0.7921 MB / 0.6596 GB, free: 15.58 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003598/0.6808, allocations: 115.9 kB / 0.6597 GB, free: 15.46 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001229/0.6809, allocations: 81.11 kB / 0.6597 GB, free: 15.36 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003225/0.6813, allocations: 121.9 kB / 0.6599 GB, free: 15.22 MB / 490.7 MB Notification: Performance of pre-optimization done (n=9): time 2.906e-06/0.6813, allocations: 0 / 0.6599 GB, free: 15.22 MB / 490.7 MB Notification: Performance of matching and sorting (n=9): time 0.000579/0.6819, allocations: 270.7 kB / 0.6601 GB, free: 14.93 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.743e-05/0.6819, allocations: 85.09 kB / 0.6602 GB, free: 14.83 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001735/0.6821, allocations: 186.6 kB / 0.6604 GB, free: 14.64 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 2.596e-05/0.6821, allocations: 25.7 kB / 0.6604 GB, free: 14.61 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.92e-05/0.6823, allocations: 147.8 kB / 0.6605 GB, free: 14.45 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.696e-05/0.6823, allocations: 29.61 kB / 0.6606 GB, free: 14.43 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.518e-06/0.6823, allocations: 4 kB / 0.6606 GB, free: 14.42 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001258/0.6824, allocations: 326.8 kB / 0.6609 GB, free: 14.09 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000152/0.6826, allocations: 59.97 kB / 0.6609 GB, free: 14.04 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001726/0.6828, allocations: 93.97 kB / 0.661 GB, free: 13.92 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001788/0.683, allocations: 94.16 kB / 0.6611 GB, free: 13.82 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.683, allocations: 0 / 0.6611 GB, free: 13.82 MB / 490.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0004431/0.6834, allocations: 231.7 kB / 0.6613 GB, free: 13.59 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.486e-05/0.6835, allocations: 33.69 kB / 0.6614 GB, free: 13.55 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.106e-05/0.6835, allocations: 4 kB / 0.6614 GB, free: 13.54 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.13e-05/0.6835, allocations: 4 kB / 0.6614 GB, free: 13.54 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001708/0.6837, allocations: 40.09 kB / 0.6614 GB, free: 13.5 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.694e-06/0.6837, allocations: 0 / 0.6614 GB, free: 13.5 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001662/0.6839, allocations: 31.83 kB / 0.6615 GB, free: 13.47 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.833e-05/0.6839, allocations: 4.938 kB / 0.6615 GB, free: 13.46 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 1 * 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 0.0001266/0.6841, allocations: 130.1 kB / 0.6616 GB, free: 13.33 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.483e-05/0.6841, allocations: 19.81 kB / 0.6616 GB, free: 13.31 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003514/0.6845, allocations: 145.3 kB / 0.6617 GB, free: 13.17 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.061e-06/0.6845, allocations: 4 kB / 0.6617 GB, free: 13.16 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.6845, allocations: 0 / 0.6617 GB, free: 13.16 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.576e-06/0.6845, allocations: 0 / 0.6617 GB, free: 13.16 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002169/0.6847, allocations: 233.5 kB / 0.662 GB, free: 12.89 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.355e-06/0.6847, allocations: 0 / 0.662 GB, free: 12.89 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001134/0.6848, allocations: 22.17 kB / 0.662 GB, free: 12.87 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-06/0.6849, allocations: 0 / 0.662 GB, free: 12.87 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.747e-05/0.6849, allocations: 7.984 kB / 0.662 GB, free: 12.86 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.6849, allocations: 0 / 0.662 GB, free: 12.86 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.6849, allocations: 4 kB / 0.662 GB, free: 12.86 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005102/0.6854, allocations: 236.7 kB / 0.6622 GB, free: 12.6 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.854e-05/0.6855, allocations: 93.03 kB / 0.6623 GB, free: 12.49 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.035e-05/0.6856, allocations: 8 kB / 0.6623 GB, free: 12.48 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001211/0.6857, allocations: 19.89 kB / 0.6623 GB, free: 12.46 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.4e-05/0.6858, allocations: 11.98 kB / 0.6624 GB, free: 12.45 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.083e-05/0.6858, allocations: 4 kB / 0.6624 GB, free: 12.45 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0001008/0.6859, allocations: 132.5 kB / 0.6625 GB, free: 12.32 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6859, allocations: 3.938 kB / 0.6625 GB, free: 12.31 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.000265/0.6862, allocations: 40 kB / 0.6625 GB, free: 12.27 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (terminalSource.p) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 2 * 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.0002056/0.6864, allocations: 144.6 kB / 0.6627 GB, free: 12.12 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0004281/0.6868, allocations: 183.3 kB / 0.6628 GB, free: 11.93 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.6868, allocations: 0 / 0.6628 GB, free: 11.93 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001591/0.687, allocations: 61.31 kB / 0.6629 GB, free: 11.87 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002998/0.6873, allocations: 43.05 kB / 0.6629 GB, free: 11.83 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000894/0.6882, allocations: 466.2 kB / 0.6634 GB, free: 11.35 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000316/0.6885, allocations: 0.7243 MB / 0.6641 GB, free: 10.6 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 8.384e-05/0.6886, allocations: 18.94 kB / 0.6641 GB, free: 10.58 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.313e-05/0.6887, allocations: 11.44 kB / 0.6641 GB, free: 10.57 MB / 490.7 MB Notification: Performance of SimCode: time 2.2e-07/0.6887, allocations: 0 / 0.6641 GB, free: 10.57 MB / 490.7 MB Notification: Performance of Templates: time 0.005834/0.6945, allocations: 2.292 MB / 0.6664 GB, free: 8.344 MB / 490.7 MB make -j1 -f ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.makefile (rm -f ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe ; mkfifo ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe ; head -c 1048576 < ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe >> ../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.sim & ./ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.TerminalSourceSink -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe 2>&1) diffSimulationResults("ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.TerminalSourceSink_res.mat","/mnt/ReferenceFiles/ThermofluidStream-OM-regression/ReferenceData/ThermofluidStream.Boundaries.Tests.TerminalSourceSink_ref.mat","../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches