Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_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.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.SourceSink,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|source.outlet.m_flow|source1.outlet.m_flow",fileNamePrefix="ThermofluidStream_OM_adaptions_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_OM_adaptions_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.007473/0.007473, allocations: 169.8 kB / 15.13 MB, free: 6.023 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.486/1.486, allocations: 205.4 MB / 221.3 MB, free: 13.8 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.0008104/0.0008104, allocations: 78.33 kB / 269.6 MB, free: 13.34 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.7119/0.7119, allocations: 90.59 MB / 408.5 MB, free: 14.96 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000287/0.000287, allocations: 8 kB / 485.2 MB, free: 2.051 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.333/0.3333, allocations: 66.27 MB / 0.5386 GB, free: 45.35 MB / 426.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.SourceSink): time 0.1357/0.469, allocations: 127.5 MB / 0.6631 GB, free: 12.16 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.003323/0.4724, allocations: 3.063 MB / 0.6661 GB, free: 9.105 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001984/0.4726, allocations: 4 kB / 0.6661 GB, free: 9.102 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004595/0.4731, allocations: 111.3 kB / 0.6662 GB, free: 8.992 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004576/0.4736, allocations: 175.5 kB / 0.6663 GB, free: 8.82 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003806/0.474, allocations: 139.5 kB / 0.6665 GB, free: 8.684 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003458/0.4743, allocations: 310.6 kB / 0.6668 GB, free: 8.379 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001243/0.4745, allocations: 39.77 kB / 0.6668 GB, free: 8.344 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003479/0.4748, allocations: 139.4 kB / 0.6669 GB, free: 8.207 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001883/0.475, allocations: 111.5 kB / 0.667 GB, free: 8.098 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 1.944e-05/0.4751, allocations: 5.031 kB / 0.667 GB, free: 8.094 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005094/0.4756, allocations: 263.5 kB / 0.6673 GB, free: 7.836 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 2.866e-05/0.4756, allocations: 15.92 kB / 0.6673 GB, free: 7.82 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 5.886e-05/0.4757, allocations: 61.58 kB / 0.6674 GB, free: 7.754 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002407/0.4759, allocations: 163.6 kB / 0.6675 GB, free: 7.594 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.4759, allocations: 0 / 0.6675 GB, free: 7.594 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.422e-06/0.4759, allocations: 8 kB / 0.6675 GB, free: 7.586 MB / 490.7 MB Notification: Performance of Transformations before backend: time 8.787e-06/0.476, allocations: 0 / 0.6675 GB, free: 7.586 MB / 490.7 MB 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.000651/0.4766, allocations: 463 kB / 0.668 GB, free: 7.09 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.32e-05/0.4767, allocations: 8.031 kB / 0.668 GB, free: 7.082 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.062e-05/0.4767, allocations: 15.81 kB / 0.668 GB, free: 7.066 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002445/0.477, allocations: 227.8 kB / 0.6682 GB, free: 6.805 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.131e-05/0.477, allocations: 11.94 kB / 0.6682 GB, free: 6.793 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.728e-05/0.477, allocations: 15.94 kB / 0.6682 GB, free: 6.777 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002461/0.4773, allocations: 136.1 kB / 0.6684 GB, free: 6.629 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.955e-06/0.4773, allocations: 0 / 0.6684 GB, free: 6.629 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.696e-05/0.4773, allocations: 4 kB / 0.6684 GB, free: 6.625 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.406e-06/0.4774, allocations: 4 kB / 0.6684 GB, free: 6.621 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001483/0.4775, allocations: 86.55 kB / 0.6685 GB, free: 6.539 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008791/0.4784, allocations: 0.7559 MB / 0.6692 GB, free: 5.68 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001963/0.4786, allocations: 121.2 kB / 0.6693 GB, free: 5.543 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.854e-05/0.4787, allocations: 49.83 kB / 0.6694 GB, free: 5.488 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.883e-05/0.4787, allocations: 4 kB / 0.6694 GB, free: 5.484 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.756e-05/0.4788, allocations: 42.55 kB / 0.6694 GB, free: 5.434 MB / 490.7 MB Notification: Performance of pre-optimization done (n=12): time 1.473e-06/0.4788, allocations: 0 / 0.6694 GB, free: 5.434 MB / 490.7 MB Notification: Performance of matching and sorting (n=12): time 0.0007498/0.4795, allocations: 366.4 kB / 0.6698 GB, free: 5.027 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.758e-05/0.4796, allocations: 85.06 kB / 0.6698 GB, free: 4.926 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001775/0.4798, allocations: 195.8 kB / 0.67 GB, free: 4.719 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 1.772e-05/0.4798, allocations: 25.7 kB / 0.6701 GB, free: 4.688 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.015e-05/0.4799, allocations: 128.5 kB / 0.6702 GB, free: 4.559 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.089e-05/0.4799, allocations: 39.39 kB / 0.6702 GB, free: 4.52 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.294e-06/0.48, allocations: 4 kB / 0.6702 GB, free: 4.516 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001159/0.4801, allocations: 322.8 kB / 0.6705 GB, free: 4.191 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.841e-05/0.4802, allocations: 35.98 kB / 0.6706 GB, free: 4.156 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.838e-05/0.4802, allocations: 64.08 kB / 0.6706 GB, free: 4.082 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.647e-05/0.4803, allocations: 38.31 kB / 0.6707 GB, free: 4.047 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.4803, allocations: 0 / 0.6707 GB, free: 4.047 MB / 490.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003053/0.4806, allocations: 179.5 kB / 0.6708 GB, free: 3.859 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.608e-05/0.4807, allocations: 17.42 kB / 0.6708 GB, free: 3.844 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.964e-05/0.4807, allocations: 0.9375 kB / 0.6708 GB, free: 3.844 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000203/0.4809, allocations: 41.69 kB / 0.6709 GB, free: 3.797 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.31e-05/0.481, allocations: 15.94 kB / 0.6709 GB, free: 3.781 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001777/0.4828, allocations: 2.561 MB / 0.6734 GB, free: 0.9531 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.438e-05/0.4829, allocations: 10.12 kB / 0.6734 GB, free: 0.9453 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.485e-05/0.4829, allocations: 11.94 kB / 0.6734 GB, free: 0.9336 MB / 490.7 MB 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001133/0.483, allocations: 125.6 kB / 0.6735 GB, free: 0.8008 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.764e-05/0.4831, allocations: 27.77 kB / 0.6736 GB, free: 0.7734 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003309/0.4834, allocations: 166.1 kB / 0.6737 GB, free: 0.6016 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.219e-06/0.4834, allocations: 4 kB / 0.6737 GB, free: 0.5977 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.905e-06/0.4835, allocations: 0 / 0.6737 GB, free: 0.5977 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.4835, allocations: 0 / 0.6737 GB, free: 0.5977 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002973/0.4838, allocations: 241.5 kB / 0.674 GB, free: 320 kB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.235e-06/0.4838, allocations: 0 / 0.674 GB, free: 320 kB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.296e-05/0.4838, allocations: 8 kB / 0.674 GB, free: 312 kB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001261/0.4839, allocations: 49.59 kB / 0.674 GB, free: 256 kB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.482e-05/0.484, allocations: 1.562 kB / 0.674 GB, free: 256 kB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001724/0.4857, allocations: 2.571 MB / 0.6765 GB, free: 13.42 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.4857, allocations: 1.969 kB / 0.6765 GB, free: 13.42 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004188/0.4861, allocations: 372.2 kB / 0.6769 GB, free: 13.03 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 5.264e-05/0.4862, allocations: 92.94 kB / 0.677 GB, free: 12.92 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.266e-05/0.4862, allocations: 8.156 kB / 0.677 GB, free: 12.91 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001293/0.4864, allocations: 7.953 kB / 0.677 GB, free: 12.91 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.25e-05/0.4864, allocations: 12.8 kB / 0.677 GB, free: 12.89 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.969e-06/0.4864, allocations: 7.938 kB / 0.677 GB, free: 12.89 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0001051/0.4865, allocations: 137.5 kB / 0.6771 GB, free: 12.75 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4866, allocations: 0 / 0.6771 GB, free: 12.75 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0003542/0.4869, allocations: 51.91 kB / 0.6772 GB, free: 12.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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000218/0.4871, allocations: 161.3 kB / 0.6773 GB, free: 12.54 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.000546/0.4877, allocations: 375.7 kB / 0.6777 GB, free: 12.14 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.4877, allocations: 4.125 kB / 0.6777 GB, free: 12.13 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0003391/0.4881, allocations: 338.6 kB / 0.678 GB, free: 11.77 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005313/0.4886, allocations: 47.72 kB / 0.6781 GB, free: 11.72 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008053/0.4894, allocations: 0.5509 MB / 0.6786 GB, free: 11.15 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003122/0.4897, allocations: 0.7359 MB / 0.6793 GB, free: 10.39 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 7.51e-05/0.4898, allocations: 14.17 kB / 0.6793 GB, free: 10.38 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.708e-05/0.4899, allocations: 15.44 kB / 0.6794 GB, free: 10.36 MB / 0.4948 GB Notification: Performance of SimCode: time 2.31e-07/0.4899, allocations: 4 kB / 0.6794 GB, free: 10.36 MB / 0.4948 GB Notification: Performance of Templates: time 0.006994/0.4969, allocations: 3.155 MB / 0.6824 GB, free: 7.27 MB / 0.4948 GB make -j1 -f ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.SourceSink.makefile (rm -f ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.SourceSink.pipe ; mkfifo ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.SourceSink.pipe ; head -c 1048576 < ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.SourceSink.pipe >> ../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.SourceSink.sim & ./ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.SourceSink -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.SourceSink.pipe 2>&1) diffSimulationResults("ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.SourceSink_res.mat","/mnt/ReferenceFiles/ThermofluidStream-OM-regression/ReferenceData/ThermofluidStream.Boundaries.Tests.SourceSink_ref.mat","../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.SourceSink.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches