Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink.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.1-main/package.mo", uses=false) Using package ThermofluidStream with version 0.4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.1-main/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.SourceSink,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|source.outlet.m_flow|source1.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink") translateModel(ThermofluidStream.Boundaries.Tests.SourceSink,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|source.outlet.m_flow|source1.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001713/0.001713, allocations: 182.4 kB / 15.98 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.431/1.431, allocations: 205.1 MB / 221.8 MB, free: 8.477 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.001003/0.001003, allocations: 102.3 kB / 269.2 MB, free: 8.422 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.1-main/package.mo): time 0.674/0.674, allocations: 91.21 MB / 407.8 MB, free: 2.543 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001104/0.001104, allocations: 47.92 kB / 483.5 MB, free: 6.605 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2668/0.268, allocations: 64.98 MB / 0.5357 GB, free: 33.6 MB / 394.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.SourceSink): time 0.1286/0.3966, allocations: 138.6 MB / 0.671 GB, free: 10.63 MB / 0.4948 GB Notification: Performance of NFInst.instExpressions: time 0.003368/0.4, allocations: 3.28 MB / 0.6742 GB, free: 7.344 MB / 0.4948 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002215/0.4003, allocations: 4 kB / 0.6742 GB, free: 7.34 MB / 0.4948 GB Notification: Performance of NFTyping.typeComponents: time 0.0004728/0.4008, allocations: 107.4 kB / 0.6743 GB, free: 7.234 MB / 0.4948 GB Notification: Performance of NFTyping.typeBindings: time 0.0003655/0.4012, allocations: 159.1 kB / 0.6744 GB, free: 7.078 MB / 0.4948 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004682/0.4017, allocations: 187.3 kB / 0.6746 GB, free: 6.895 MB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 0.0003303/0.402, allocations: 350.6 kB / 0.6749 GB, free: 6.551 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001131/0.4022, allocations: 47.77 kB / 0.675 GB, free: 6.508 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003598/0.4025, allocations: 167.3 kB / 0.6752 GB, free: 6.344 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001592/0.4027, allocations: 123.5 kB / 0.6753 GB, free: 6.223 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 1.976e-05/0.4027, allocations: 8 kB / 0.6753 GB, free: 6.215 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005591/0.4033, allocations: 339.2 kB / 0.6756 GB, free: 5.883 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 3.366e-05/0.4033, allocations: 23.91 kB / 0.6756 GB, free: 5.859 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 8.172e-05/0.4034, allocations: 87.55 kB / 0.6757 GB, free: 5.773 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.0003986/0.4038, allocations: 283.2 kB / 0.676 GB, free: 5.496 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.4038, allocations: 0 / 0.676 GB, free: 5.496 MB / 0.4948 GB Notification: Performance of FrontEnd: time 8.72e-07/0.4039, allocations: 4 kB / 0.676 GB, free: 5.492 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 4.398e-06/0.4039, allocations: 0 / 0.676 GB, free: 5.492 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0007349/0.4046, allocations: 494.5 kB / 0.6765 GB, free: 4.961 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.854e-05/0.4046, allocations: 15.97 kB / 0.6765 GB, free: 4.945 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.341e-05/0.4047, allocations: 16.75 kB / 0.6765 GB, free: 4.93 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002533/0.405, allocations: 224.4 kB / 0.6767 GB, free: 4.672 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.853e-05/0.405, allocations: 12.31 kB / 0.6767 GB, free: 4.66 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.734e-05/0.405, allocations: 12.38 kB / 0.6767 GB, free: 4.648 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002465/0.4053, allocations: 148.2 kB / 0.6769 GB, free: 4.488 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.965e-06/0.4053, allocations: 0 / 0.6769 GB, free: 4.488 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.679e-05/0.4053, allocations: 11.97 kB / 0.6769 GB, free: 4.477 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.664e-06/0.4053, allocations: 4 kB / 0.6769 GB, free: 4.473 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001407/0.4055, allocations: 79.91 kB / 0.677 GB, free: 4.395 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007636/0.4062, allocations: 0.748 MB / 0.6777 GB, free: 3.543 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001727/0.4064, allocations: 121.2 kB / 0.6778 GB, free: 3.406 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.596e-05/0.4065, allocations: 53.77 kB / 0.6779 GB, free: 3.348 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 4.519e-05/0.4066, allocations: 11.98 kB / 0.6779 GB, free: 3.336 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.574e-05/0.4066, allocations: 42.5 kB / 0.6779 GB, free: 3.285 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=12): time 1.442e-06/0.4066, allocations: 0 / 0.6779 GB, free: 3.285 MB / 0.4948 GB Notification: Performance of matching and sorting (n=12): time 0.0007399/0.4074, allocations: 365.2 kB / 0.6783 GB, free: 2.879 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.459e-05/0.4074, allocations: 81.05 kB / 0.6783 GB, free: 2.781 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001783/0.4076, allocations: 195.8 kB / 0.6785 GB, free: 2.578 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 1.865e-05/0.4076, allocations: 29.7 kB / 0.6785 GB, free: 2.543 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 7.491e-05/0.4077, allocations: 120 kB / 0.6787 GB, free: 2.422 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 4.254e-05/0.4078, allocations: 43.39 kB / 0.6787 GB, free: 2.379 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.011e-05/0.4078, allocations: 25.72 kB / 0.6787 GB, free: 2.348 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001129/0.4079, allocations: 334.8 kB / 0.679 GB, free: 2.012 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.356e-05/0.408, allocations: 31.98 kB / 0.6791 GB, free: 1.98 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.193e-05/0.4081, allocations: 63.42 kB / 0.6791 GB, free: 1.906 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001405/0.4082, allocations: 103.9 kB / 0.6792 GB, free: 1.793 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.4083, allocations: 0 / 0.6792 GB, free: 1.793 MB / 0.4948 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002925/0.4086, allocations: 187 kB / 0.6794 GB, free: 1.598 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.413e-05/0.4086, allocations: 8 kB / 0.6794 GB, free: 1.59 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.668e-06/0.4086, allocations: 3.938 kB / 0.6794 GB, free: 1.586 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000195/0.4088, allocations: 41.64 kB / 0.6795 GB, free: 1.539 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.259e-05/0.4089, allocations: 12 kB / 0.6795 GB, free: 1.527 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2004/0.6093, allocations: 2.554 MB / 0.682 GB, free: 142 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000116/0.6094, allocations: 8.141 kB / 0.682 GB, free: 142 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.491e-05/0.6094, allocations: 5 kB / 0.682 GB, free: 142 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 9.409e-05/0.6095, allocations: 131.9 kB / 0.6821 GB, free: 141.9 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.253e-05/0.6096, allocations: 19.22 kB / 0.6821 GB, free: 141.9 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003419/0.61, allocations: 172.8 kB / 0.6823 GB, free: 141.8 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.198e-06/0.61, allocations: 1.281 kB / 0.6823 GB, free: 141.8 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.61, allocations: 7.906 kB / 0.6823 GB, free: 141.8 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.61, allocations: 5.125 kB / 0.6823 GB, free: 141.8 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003137/0.6103, allocations: 239.8 kB / 0.6825 GB, free: 141.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/0.6103, allocations: 4.125 kB / 0.6825 GB, free: 141.6 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.303e-05/0.6104, allocations: 7.516 kB / 0.6825 GB, free: 141.6 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001389/0.6105, allocations: 37.22 kB / 0.6826 GB, free: 141.6 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.55e-05/0.6105, allocations: 6.484 kB / 0.6826 GB, free: 141.6 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001132/0.6117, allocations: 2.575 MB / 0.6851 GB, free: 139 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/0.6117, allocations: 1.484 kB / 0.6851 GB, free: 139 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002944/0.6146, allocations: 4.367 MB / 0.6894 GB, free: 134.9 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 3.573e-05/0.6147, allocations: 98.44 kB / 0.6895 GB, free: 134.8 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.206e-05/0.6147, allocations: 5.719 kB / 0.6895 GB, free: 134.8 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001191/0.6148, allocations: 2.359 kB / 0.6895 GB, free: 134.8 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.277e-05/0.6149, allocations: 20.22 kB / 0.6895 GB, free: 134.8 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.1e-05/0.6149, allocations: 7.469 kB / 0.6895 GB, free: 134.8 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0001179/0.615, allocations: 141.7 kB / 0.6896 GB, free: 134.7 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.1e-07/0.615, allocations: 0 / 0.6896 GB, free: 134.7 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0005194/0.6156, allocations: 81.41 kB / 0.6897 GB, free: 134.7 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (sink.inlet.m_flow,sink1.inlet.m_flow) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002131/0.6158, allocations: 150.5 kB / 0.6899 GB, free: 134.6 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0004575/0.6162, allocations: 387.4 kB / 0.6902 GB, free: 134.2 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.6163, allocations: 3.25 kB / 0.6902 GB, free: 134.2 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0002828/0.6166, allocations: 337.3 kB / 0.6905 GB, free: 133.9 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005521/0.6171, allocations: 40.58 kB / 0.6906 GB, free: 133.9 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009784/0.6181, allocations: 0.8919 MB / 0.6915 GB, free: 133.2 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001883/0.6183, allocations: 0.7361 MB / 0.6922 GB, free: 132.5 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 6.853e-05/0.6184, allocations: 17.14 kB / 0.6922 GB, free: 132.5 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.204e-05/0.6184, allocations: 15.25 kB / 0.6922 GB, free: 132.5 MB / 0.4948 GB Notification: Performance of SimCode: time 2.51e-07/0.6184, allocations: 0.7188 kB / 0.6922 GB, free: 132.5 MB / 0.4948 GB Notification: Performance of Templates: time 0.008273/0.6267, allocations: 3.723 MB / 0.6958 GB, free: 131.8 MB / 0.4948 GB make -j1 -f ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink.makefile (rm -f ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink.pipe >> ../files/ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink.sim & ./ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Boundaries.Tests.SourceSink_ref.mat","../files/ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches