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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001636/0.001636, allocations: 185.9 kB / 7.804 MB, free: 2.488 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.485/1.485, allocations: 205.2 MB / 213.4 MB, free: 13.86 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.001022/0.001022, allocations: 88.78 kB / 261.4 MB, free: 13.54 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.217/0.217, allocations: 43.49 MB / 352.8 MB, free: 1.949 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2349/0.4519, allocations: 64.98 MB / 417.8 MB, free: 40.46 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3855/0.8375, allocations: 58.83 MB / 476.7 MB, free: 5.176 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.886/8.723, allocations: 3.632 GB / 4.098 GB, free: 35.84 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003069/8.724, allocations: 83.45 kB / 4.098 GB, free: 35.76 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: 498 * Number of variables: 498 Notification: Performance of Generate backend data structure: time 6.256/14.98, allocations: 1.469 GB / 5.567 GB, free: 12.19 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 5.623e-05/14.98, allocations: 8 kB / 5.567 GB, free: 12.18 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002752/14.98, allocations: 285 kB / 5.567 GB, free: 11.9 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006724/14.99, allocations: 1.584 MB / 5.568 GB, free: 10.26 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002002/14.99, allocations: 64 kB / 5.569 GB, free: 10.2 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001484/14.99, allocations: 111.9 kB / 5.569 GB, free: 10.09 MB / 0.573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007578/15, allocations: 3.17 MB / 5.572 GB, free: 6.918 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008784/15.01, allocations: 2.876 MB / 5.575 GB, free: 3.977 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001041/15.01, allocations: 4 kB / 5.575 GB, free: 3.973 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008905/15.01, allocations: 4 kB / 5.575 GB, free: 3.969 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002269/15.01, allocations: 195.7 kB / 5.575 GB, free: 3.777 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03021/15.04, allocations: 11.86 MB / 5.586 GB, free: 7.207 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003501/15.04, allocations: 1.353 MB / 5.588 GB, free: 5.84 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00228/15.05, allocations: 1.091 MB / 5.589 GB, free: 4.746 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002244/15.05, allocations: 1.676 MB / 5.59 GB, free: 2.738 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.615e-05/15.05, allocations: 55.88 kB / 5.59 GB, free: 2.676 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=153): time 4.609e-06/15.05, allocations: 0 / 5.59 GB, free: 2.676 MB / 0.5886 GB Notification: Performance of matching and sorting (n=165): time 0.4431/15.49, allocations: 7.462 MB / 5.598 GB, free: 73.55 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.805e-05/15.49, allocations: 197.9 kB / 5.598 GB, free: 73.33 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002472/15.49, allocations: 1.261 MB / 5.599 GB, free: 73.17 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.0005948/15.49, allocations: 29.61 kB / 5.599 GB, free: 73.14 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005098/15.49, allocations: 0.7823 MB / 5.6 GB, free: 72.77 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007403/15.5, allocations: 0.5532 MB / 5.6 GB, free: 72.48 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001838/15.5, allocations: 0 / 5.6 GB, free: 72.48 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001697/15.5, allocations: 395.2 kB / 5.601 GB, free: 72.18 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00201/15.5, allocations: 1.245 MB / 5.602 GB, free: 72.17 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00196/15.5, allocations: 1.579 MB / 5.604 GB, free: 71.85 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01946/15.52, allocations: 4.17 MB / 5.608 GB, free: 71.84 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.207e-05/15.52, allocations: 7.781 kB / 5.608 GB, free: 71.84 MB / 0.5886 GB Notification: Performance of matching and sorting (n=275) (initialization): time 0.0288/15.55, allocations: 6.592 MB / 5.614 GB, free: 71.66 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007792/15.55, allocations: 2.914 MB / 5.617 GB, free: 68.66 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.545e-05/15.55, allocations: 6.938 kB / 5.617 GB, free: 68.66 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004923/15.55, allocations: 0.9251 MB / 5.618 GB, free: 68.65 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003548/15.56, allocations: 0.5069 MB / 5.618 GB, free: 68.65 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004153/15.56, allocations: 2.231 MB / 5.621 GB, free: 67.6 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004396/15.57, allocations: 156.1 kB / 5.621 GB, free: 67.59 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000876/15.57, allocations: 166.4 kB / 5.621 GB, free: 67.59 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.492e-05/15.57, allocations: 3.5 kB / 5.621 GB, free: 67.59 MB / 0.5886 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02666/15.59, allocations: 6.186 MB / 5.627 GB, free: 67.53 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.695e-05/15.59, allocations: 6.531 kB / 5.627 GB, free: 67.53 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00484/15.6, allocations: 0.856 MB / 5.628 GB, free: 67.52 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003362/15.6, allocations: 0.5109 MB / 5.628 GB, free: 67.52 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002768/15.6, allocations: 1.922 MB / 5.63 GB, free: 66.47 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003485/15.61, allocations: 150.5 kB / 5.63 GB, free: 66.46 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005715/15.61, allocations: 166.4 kB / 5.63 GB, free: 66.46 MB / 0.5886 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.001128/15.61, allocations: 173.2 kB / 5.631 GB, free: 66.36 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007809/15.61, allocations: 183.7 kB / 5.631 GB, free: 66.26 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009908/15.62, allocations: 4.207 MB / 5.635 GB, free: 66.02 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.86e-05/15.62, allocations: 21.56 kB / 5.635 GB, free: 66.02 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.031e-05/15.62, allocations: 0 / 5.635 GB, free: 66.02 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.395e-05/15.62, allocations: 13.64 kB / 5.635 GB, free: 66.02 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01312/15.63, allocations: 5.444 MB / 5.64 GB, free: 65.55 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.2e-05/15.63, allocations: 3.938 kB / 5.64 GB, free: 65.55 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001489/15.64, allocations: 305 kB / 5.641 GB, free: 65.55 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00318/15.64, allocations: 0.7862 MB / 5.641 GB, free: 65.53 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002915/15.64, allocations: 47.64 kB / 5.641 GB, free: 65.53 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003365/15.64, allocations: 2.116 MB / 5.643 GB, free: 64.47 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.097e-05/15.64, allocations: 5.344 kB / 5.643 GB, free: 64.47 MB / 0.5886 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01103/15.65, allocations: 4.46 MB / 5.648 GB, free: 63.68 MB / 0.5886 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0127/15.67, allocations: 6.771 MB / 5.654 GB, free: 62.51 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001326/15.67, allocations: 353.5 kB / 5.655 GB, free: 62.32 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006416/15.67, allocations: 11.77 kB / 5.655 GB, free: 62.32 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002292/15.67, allocations: 134.3 kB / 5.655 GB, free: 62.32 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003125/15.67, allocations: 122.2 kB / 5.655 GB, free: 62.31 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003495/15.67, allocations: 120.2 kB / 5.655 GB, free: 62.31 MB / 0.5886 GB Notification: Performance of sort global known variables: time 0.001672/15.67, allocations: 1.06 MB / 5.656 GB, free: 62.2 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.02051/15.69, allocations: 4.089 MB / 5.66 GB, free: 62.2 MB / 0.5886 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.01874/15.71, allocations: 4.619 MB / 5.665 GB, free: 61.76 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.01189/15.72, allocations: 4.586 MB / 5.669 GB, free: 61.59 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.96e-05/15.72, allocations: 4.5 kB / 5.669 GB, free: 61.59 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.002419/15.73, allocations: 1.188 MB / 5.67 GB, free: 61.58 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005924/15.73, allocations: 0.8992 MB / 5.671 GB, free: 61.54 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009768/15.74, allocations: 3.668 MB / 5.675 GB, free: 60.73 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003323/15.75, allocations: 2.076 MB / 5.677 GB, free: 59.98 MB / 0.5886 GB Notification: Performance of SimCode: time 1.834e-06/15.75, allocations: 0 / 5.677 GB, free: 59.98 MB / 0.5886 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)