Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.Topology.Tests.TestJunction.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: "" <> buildModelFMU(ThermofluidStream.Topology.Tests.TestJunction,fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream_Topology_Tests_TestJunction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Topology.Tests.TestJunction,fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream_Topology_Tests_TestJunction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.004282/0.004282, allocations: 168.3 kB / 15.13 MB, free: 6.027 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.279/1.279, allocations: 205.4 MB / 221.3 MB, free: 13.81 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.0006999/0.0006999, allocations: 86.31 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.6291/0.6291, allocations: 90.6 MB / 408.5 MB, free: 14.95 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002786/0.0002786, allocations: 8 kB / 485.3 MB, free: 1.953 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2981/0.2984, allocations: 66.28 MB / 0.5387 GB, free: 45.11 MB / 426.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestJunction): time 0.1351/0.4336, allocations: 131.2 MB / 0.6668 GB, free: 8.309 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.004949/0.4386, allocations: 4.206 MB / 0.6709 GB, free: 4.094 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004493/0.4391, allocations: 9.812 kB / 0.6709 GB, free: 4.086 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007467/0.4398, allocations: 155.1 kB / 0.6711 GB, free: 3.934 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000975/0.4408, allocations: 294.3 kB / 0.6714 GB, free: 3.645 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009703/0.4418, allocations: 306.7 kB / 0.6717 GB, free: 3.344 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008935/0.4427, allocations: 0.6972 MB / 0.6723 GB, free: 2.645 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001989/0.443, allocations: 80.38 kB / 0.6724 GB, free: 2.574 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000713/0.4437, allocations: 271 kB / 0.6727 GB, free: 2.309 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006092/0.4443, allocations: 303.1 kB / 0.673 GB, free: 2.012 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 7.176e-05/0.4444, allocations: 16 kB / 0.673 GB, free: 1.996 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009156/0.4453, allocations: 435.1 kB / 0.6734 GB, free: 1.57 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 9.818e-05/0.4454, allocations: 75.78 kB / 0.6735 GB, free: 1.496 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001129/0.4455, allocations: 85.52 kB / 0.6735 GB, free: 1.406 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005217/0.4461, allocations: 371.1 kB / 0.6739 GB, free: 1.043 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/0.4461, allocations: 0 / 0.6739 GB, free: 1.043 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.023e-06/0.4461, allocations: 0 / 0.6739 GB, free: 1.043 MB / 490.7 MB Notification: Performance of Transformations before backend: time 1.265e-05/0.4461, allocations: 0 / 0.6739 GB, free: 1.043 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: 65 * Number of variables: 65 Notification: Performance of Generate backend data structure: time 0.001465/0.4476, allocations: 0.6631 MB / 0.6745 GB, free: 344 kB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.04e-05/0.4476, allocations: 8.031 kB / 0.6746 GB, free: 336 kB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.727e-05/0.4477, allocations: 62.53 kB / 0.6746 GB, free: 264 kB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.806e-05/0.4478, allocations: 31.62 kB / 0.6746 GB, free: 232 kB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003642/0.4482, allocations: 305.2 kB / 0.6749 GB, free: 15.89 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.383e-05/0.4482, allocations: 16.56 kB / 0.675 GB, free: 15.88 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.328e-05/0.4483, allocations: 24 kB / 0.675 GB, free: 15.85 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006274/0.4489, allocations: 400.7 kB / 0.6754 GB, free: 15.45 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.237e-06/0.4489, allocations: 0 / 0.6754 GB, free: 15.45 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.29e-05/0.449, allocations: 8 kB / 0.6754 GB, free: 15.45 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.847e-05/0.449, allocations: 25.05 kB / 0.6754 GB, free: 15.42 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007052/0.4497, allocations: 485.8 kB / 0.6759 GB, free: 14.95 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002052/0.4518, allocations: 1.505 MB / 0.6773 GB, free: 13.29 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006621/0.4525, allocations: 430.4 kB / 0.6777 GB, free: 12.86 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003732/0.4528, allocations: 272.7 kB / 0.678 GB, free: 12.59 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001347/0.453, allocations: 97.08 kB / 0.6781 GB, free: 12.47 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.007e-05/0.453, allocations: 40.75 kB / 0.6781 GB, free: 12.43 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=38): time 1.893e-06/0.453, allocations: 4 kB / 0.6781 GB, free: 12.42 MB / 0.4948 GB Notification: Performance of matching and sorting (n=39): time 0.002798/0.4558, allocations: 1.788 MB / 0.6799 GB, free: 10.52 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.099e-05/0.4559, allocations: 55.41 kB / 0.6799 GB, free: 10.46 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002003/0.4561, allocations: 221 kB / 0.6801 GB, free: 10.23 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 3.417e-05/0.4561, allocations: 33.7 kB / 0.6802 GB, free: 10.2 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 7.465e-05/0.4562, allocations: 148.9 kB / 0.6803 GB, free: 10.05 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001107/0.4563, allocations: 134 kB / 0.6804 GB, free: 9.914 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.998e-05/0.4564, allocations: 4 kB / 0.6804 GB, free: 9.91 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001197/0.4565, allocations: 342.8 kB / 0.6808 GB, free: 9.566 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002873/0.4568, allocations: 207.6 kB / 0.681 GB, free: 9.363 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002871/0.4571, allocations: 203.9 kB / 0.6812 GB, free: 9.164 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003259/0.4574, allocations: 232 kB / 0.6814 GB, free: 8.938 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.067e-06/0.4574, allocations: 7.891 kB / 0.6814 GB, free: 8.93 MB / 0.4948 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0009393/0.4584, allocations: 0.6186 MB / 0.682 GB, free: 8.301 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.516e-05/0.4584, allocations: 8 kB / 0.682 GB, free: 8.293 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.4584, allocations: 0.7031 kB / 0.682 GB, free: 8.293 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003648/0.4588, allocations: 113.5 kB / 0.6821 GB, free: 8.18 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002464/0.459, allocations: 57.91 kB / 0.6822 GB, free: 8.125 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002164/0.4612, allocations: 2.114 MB / 0.6842 GB, free: 5.875 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001973/0.4614, allocations: 16.7 kB / 0.6842 GB, free: 5.859 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.279e-05/0.4614, allocations: 19.92 kB / 0.6843 GB, free: 5.84 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (28): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 9} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001598/0.4616, allocations: 157.8 kB / 0.6844 GB, free: 5.676 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.735e-05/0.4617, allocations: 31.62 kB / 0.6844 GB, free: 5.645 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001073/0.4628, allocations: 0.673 MB / 0.6851 GB, free: 4.965 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.4628, allocations: 8 kB / 0.6851 GB, free: 4.957 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.07e-06/0.4628, allocations: 4 kB / 0.6851 GB, free: 4.953 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.4628, allocations: 2.062 kB / 0.6851 GB, free: 4.953 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005071/0.4633, allocations: 485.1 kB / 0.6856 GB, free: 4.43 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.4633, allocations: 0 / 0.6856 GB, free: 4.43 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002164/0.4635, allocations: 47.95 kB / 0.6856 GB, free: 4.383 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003081/0.4639, allocations: 129.3 kB / 0.6858 GB, free: 4.254 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.637e-05/0.4639, allocations: 15.97 kB / 0.6858 GB, free: 4.238 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002246/0.4662, allocations: 2.12 MB / 0.6878 GB, free: 1.988 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.4662, allocations: 0 / 0.6878 GB, free: 1.988 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001628/0.4678, allocations: 1.008 MB / 0.6888 GB, free: 0.9609 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 8.14e-05/0.4679, allocations: 96.83 kB / 0.6889 GB, free: 0.8477 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.535e-05/0.468, allocations: 15.95 kB / 0.6889 GB, free: 0.832 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003332/0.4683, allocations: 17.5 kB / 0.6889 GB, free: 0.8164 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.093e-05/0.4684, allocations: 27.95 kB / 0.689 GB, free: 0.7891 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.292e-05/0.4685, allocations: 11.98 kB / 0.689 GB, free: 0.7773 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0001815/0.4687, allocations: 164.5 kB / 0.6891 GB, free: 0.6172 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.804e-06/0.4687, allocations: 4 kB / 0.6891 GB, free: 0.6133 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0007545/0.4694, allocations: 123.9 kB / 0.6893 GB, free: 0.4922 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (source.outlet.m_flow,source1.outlet.m_flow,source2.outlet.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 (25): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,62.5%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002411/0.4718, allocations: 1.639 MB / 0.6909 GB, free: 14.83 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.00154/0.4734, allocations: 0.765 MB / 0.6916 GB, free: 14.04 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/0.4734, allocations: 0 / 0.6916 GB, free: 14.04 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.001059/0.4745, allocations: 0.5561 MB / 0.6922 GB, free: 13.45 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008155/0.4753, allocations: 85.95 kB / 0.6922 GB, free: 13.38 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005059/0.4804, allocations: 2.506 MB / 0.6947 GB, free: 10.83 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004609/0.4809, allocations: 0.8112 MB / 0.6955 GB, free: 9.992 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.0003406/0.4812, allocations: 88.22 kB / 0.6956 GB, free: 9.906 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001723/0.4814, allocations: 111.4 kB / 0.6957 GB, free: 9.797 MB / 0.5105 GB Notification: Performance of SimCode: time 3.3e-07/0.4814, allocations: 4 kB / 0.6957 GB, free: 9.793 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02768/0.5091, allocations: 10.21 MB / 0.7056 GB, free: 15.89 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002234/0.5094, allocations: 224.8 kB / 0.7059 GB, free: 15.64 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.047/2.557, allocations: 0 / 0.7059 GB, free: 15.64 MB / 0.5261 GB (rm -f ThermofluidStream_OM_adaptions_ThermofluidStream.Topology.Tests.TestJunction.pipe ; mkfifo ThermofluidStream_OM_adaptions_ThermofluidStream.Topology.Tests.TestJunction.pipe ; head -c 1048576 < ThermofluidStream_OM_adaptions_ThermofluidStream.Topology.Tests.TestJunction.pipe >> ../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Topology.Tests.TestJunction.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ThermofluidStream_OM_adaptions_ThermofluidStream.Topology.Tests.TestJunction_res.mat --tempDir=temp_ThermofluidStream_OM_adaptions_ThermofluidStream_Topology_Tests_TestJunction_fmu --startTime=0 --stopTime=1 --timeout=1200 --tolerance=1e-06 ThermofluidStream_OM_adaptions_ThermofluidStream_Topology_Tests_TestJunction.fmu > ThermofluidStream_OM_adaptions_ThermofluidStream.Topology.Tests.TestJunction.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ThermofluidStream_OM_adaptions_ThermofluidStream.Topology.Tests.TestJunction_res.mat does not exist to compare? outputFormat=mat