Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionTraceSubstances.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/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/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(ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionTraceSubstances,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Fittings_TestJunctionTraceSubstances",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionTraceSubstances,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Fittings_TestJunctionTraceSubstances",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.001219/0.001219, allocations: 177.6 kB / 8.008 MB, free: 1.066 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.729/1.729, allocations: 205.3 MB / 213.7 MB, free: 1.73 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009286/0.0009287, allocations: 90.36 kB / 261.7 MB, free: 1.688 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2565/0.2565, allocations: 43.49 MB / 353.2 MB, free: 296 kB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.829e-05/1.831e-05, allocations: 0 / 418.3 MB, free: 28.45 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1487/0.1488, allocations: 58.86 MB / 477.2 MB, free: 1.551 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.281/9.43, allocations: 3.632 GB / 4.098 GB, free: 41.62 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000255/9.43, allocations: 85.48 kB / 4.098 GB, free: 41.58 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 6.282/15.71, allocations: 1.448 GB / 5.547 GB, free: 24.65 MB / 0.573 GB Notification: Performance of FrontEnd: time 1.743e-06/15.71, allocations: 0 / 5.547 GB, free: 24.65 MB / 0.573 GB Notification: Performance of Transformations before backend: time 0.0001871/15.71, allocations: 53.61 kB / 5.547 GB, free: 24.64 MB / 0.573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 498 * Number of variables: 498 Notification: Performance of Generate backend data structure: time 0.0329/15.74, allocations: 7.285 MB / 5.554 GB, free: 20.46 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 7.486e-05/15.74, allocations: 9.344 kB / 5.554 GB, free: 20.46 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002778/15.75, allocations: 282.2 kB / 5.554 GB, free: 20.33 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004831/15.75, allocations: 1.568 MB / 5.556 GB, free: 19.87 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001026/15.75, allocations: 65.34 kB / 5.556 GB, free: 19.87 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006601/15.75, allocations: 113.9 kB / 5.556 GB, free: 19.86 MB / 0.573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005179/15.76, allocations: 3.097 MB / 5.559 GB, free: 19.86 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004811/15.76, allocations: 2.817 MB / 5.562 GB, free: 19.62 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.853e-05/15.76, allocations: 7.078 kB / 5.562 GB, free: 19.61 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002626/15.76, allocations: 7.109 kB / 5.562 GB, free: 19.61 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002257/15.76, allocations: 188.9 kB / 5.562 GB, free: 19.61 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02163/15.79, allocations: 11.76 MB / 5.573 GB, free: 13.17 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002968/15.79, allocations: 1.61 MB / 5.575 GB, free: 12.24 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001321/15.79, allocations: 1.062 MB / 5.576 GB, free: 11.3 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001402/15.79, allocations: 1.682 MB / 5.578 GB, free: 9.355 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.016e-05/15.79, allocations: 52.56 kB / 5.578 GB, free: 9.293 MB / 0.573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002169/15.79, allocations: 287.8 kB / 5.578 GB, free: 9.059 MB / 0.573 GB Notification: Performance of pre-optimization done (n=153): time 6.402e-06/15.79, allocations: 0 / 5.578 GB, free: 9.059 MB / 0.573 GB Notification: Performance of matching and sorting (n=165): time 0.02698/15.82, allocations: 7.169 MB / 5.585 GB, free: 3.094 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.229e-05/15.82, allocations: 201.2 kB / 5.585 GB, free: 2.855 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002502/15.82, allocations: 1.242 MB / 5.586 GB, free: 1.723 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0004999/15.82, allocations: 29.7 kB / 5.586 GB, free: 1.688 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007336/15.82, allocations: 0.9894 MB / 5.587 GB, free: 0.7852 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007822/15.83, allocations: 0.5553 MB / 5.588 GB, free: 280 kB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000389/15.83, allocations: 0 / 5.588 GB, free: 280 kB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0002356/15.83, allocations: 400.3 kB / 5.588 GB, free: 15.91 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002329/15.83, allocations: 1.196 MB / 5.589 GB, free: 14.83 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002608/15.83, allocations: 1.535 MB / 5.591 GB, free: 13.32 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01878/15.85, allocations: 3.936 MB / 5.595 GB, free: 10.39 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.802e-05/15.85, allocations: 4 kB / 5.595 GB, free: 10.39 MB / 0.5886 GB Notification: Performance of matching and sorting (n=275) (initialization): time 0.0284/15.88, allocations: 6.292 MB / 5.601 GB, free: 5.332 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.001007/15.88, allocations: 2.959 MB / 5.604 GB, free: 2.164 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.865e-05/15.88, allocations: 8 kB / 5.604 GB, free: 2.156 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004452/15.88, allocations: 0.9027 MB / 5.605 GB, free: 1.25 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002958/15.89, allocations: 0.5031 MB / 5.605 GB, free: 0.7461 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003451/15.89, allocations: 2.161 MB / 5.607 GB, free: 14.53 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003522/15.89, allocations: 159.6 kB / 5.607 GB, free: 14.38 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005722/15.89, allocations: 167.9 kB / 5.608 GB, free: 14.21 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.45e-05/15.89, allocations: 4 kB / 5.608 GB, free: 14.21 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02651/15.92, allocations: 5.887 MB / 5.613 GB, free: 8.312 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.993e-05/15.92, allocations: 19.5 kB / 5.613 GB, free: 8.297 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004255/15.93, allocations: 0.8146 MB / 5.614 GB, free: 7.477 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003151/15.93, allocations: 0.5071 MB / 5.615 GB, free: 6.969 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002566/15.93, allocations: 1.86 MB / 5.617 GB, free: 5.059 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003309/15.93, allocations: 143.7 kB / 5.617 GB, free: 4.918 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005113/15.93, allocations: 167.8 kB / 5.617 GB, free: 4.754 MB / 0.6042 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: junction.port_2.m_flow:VARIABLE(flow=true min = max(-(if junction1.portFlowDirection_1 == Modelica.Fluid.Types.PortFlowDirection.Leaving then 0.0 else 9.999999999999999e+59), if junction.portFlowDirection_2 == Modelica.Fluid.Types.PortFlowDirection.Entering then 0.0 else -9.999999999999999e+59) max = min(-(if junction1.portFlowDirection_1 == Modelica.Fluid.Types.PortFlowDirection.Entering then 0.0 else -9.999999999999999e+59), if junction.portFlowDirection_2 == Modelica.Fluid.Types.PortFlowDirection.Leaving then 0.0 else 9.999999999999999e+59) unit = "kg/s" ) "Mass flow rate from the connection point into the component" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 2 (traceSubstance2.ind,traceSubstance.ind) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (250): * Single equations (assignments): 246 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * 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: 0 * Non-linear torn systems: 2 {2 6,3 16} Notification: Performance of prepare postOptimizeDAE: time 0.001147/15.94, allocations: 186.7 kB / 5.617 GB, free: 4.57 MB / 0.6042 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01043/15.95, allocations: 2.991 MB / 5.62 GB, free: 1.562 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001028/15.95, allocations: 185.8 kB / 5.62 GB, free: 1.379 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.5131/16.46, allocations: 3.914 MB / 5.624 GB, free: 56.37 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.984e-05/16.46, allocations: 19.09 kB / 5.624 GB, free: 56.37 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.244e-05/16.46, allocations: 0.75 kB / 5.624 GB, free: 56.37 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.409e-05/16.46, allocations: 8.156 kB / 5.624 GB, free: 56.37 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01231/16.47, allocations: 5.326 MB / 5.629 GB, free: 55.94 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.269e-05/16.47, allocations: 8.25 kB / 5.629 GB, free: 55.94 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001455/16.47, allocations: 304.9 kB / 5.629 GB, free: 55.94 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003077/16.48, allocations: 0.7583 MB / 5.63 GB, free: 55.93 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003133/16.48, allocations: 46.36 kB / 5.63 GB, free: 55.93 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002929/16.48, allocations: 2.054 MB / 5.632 GB, free: 54.89 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.579e-05/16.48, allocations: 8.734 kB / 5.632 GB, free: 54.89 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0102/16.49, allocations: 4.312 MB / 5.636 GB, free: 54.19 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001284/16.49, allocations: 361.6 kB / 5.637 GB, free: 54.1 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004428/16.49, allocations: 12.66 kB / 5.637 GB, free: 54.1 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002105/16.5, allocations: 130.5 kB / 5.637 GB, free: 54.1 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002995/16.5, allocations: 131.4 kB / 5.637 GB, free: 54.09 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003174/16.5, allocations: 122.6 kB / 5.637 GB, free: 54.09 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.001826/16.5, allocations: 1.044 MB / 5.638 GB, free: 53.98 MB / 0.6042 GB Notification: Performance of sort global known variables: time 2.11e-07/16.5, allocations: 6.359 kB / 5.638 GB, free: 53.98 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.01201/16.51, allocations: 3.054 MB / 5.641 GB, free: 53.98 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 4 (junction1.medium.p,junction1.medium.Xi[1],junction1.medium.T,junction1.mC_scaled[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (150): * Single equations (assignments): 148 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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: 0 * Non-linear torn systems: 2 {2 6,3 23} Notification: Performance of Backend phase and start with SimCode phase: time 0.02163/16.53, allocations: 10.37 MB / 5.651 GB, free: 51.33 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.009027/16.54, allocations: 4.551 MB / 5.656 GB, free: 51.03 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.017e-05/16.54, allocations: 5.594 kB / 5.656 GB, free: 51.03 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.002193/16.54, allocations: 1.162 MB / 5.657 GB, free: 51.03 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005805/16.55, allocations: 0.9115 MB / 5.658 GB, free: 51.01 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01351/16.56, allocations: 4.883 MB / 5.663 GB, free: 50.29 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001313/16.56, allocations: 1.712 MB / 5.664 GB, free: 49.55 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.005463/16.57, allocations: 1.179 MB / 5.665 GB, free: 49.5 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001596/16.57, allocations: 0.9185 MB / 5.666 GB, free: 49.5 MB / 0.6042 GB Notification: Performance of SimCode: time 1.062e-06/16.57, allocations: 0 / 5.666 GB, free: 49.5 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1776/16.75, allocations: 111 MB / 5.775 GB, free: 42.68 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001669/16.75, allocations: 192 kB / 5.775 GB, free: 42.43 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.291/23.04, allocations: 0 / 5.775 GB, free: 42.43 MB / 0.6042 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionTraceSubstances.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionTraceSubstances.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionTraceSubstances.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionTraceSubstances.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionTraceSubstances_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Fittings_TestJunctionTraceSubstances_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Fittings_TestJunctionTraceSubstances.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestJunctionTraceSubstances.pipe 2>&1)