Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Fittings_TestMultiPortTraceSubstances",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Fittings_TestMultiPortTraceSubstances",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 4.0.0+maint.om/package.mo): time 0.001233/0.001233, allocations: 178.7 kB / 8.519 MB, free: 1.832 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.172/1.172, allocations: 221.4 MB / 230.3 MB, free: 7.785 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009321/0.0009321, allocations: 88.73 kB / 281.2 MB, free: 5.531 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.158/0.158, allocations: 44.15 MB / 376.1 MB, free: 3.258 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.186/0.3441, allocations: 68.04 MB / 444.1 MB, free: 15.55 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0919/0.436, allocations: 61.9 MB / 0.4942 GB, free: 1.57 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.876/5.312, allocations: 3.455 GB / 3.949 GB, free: 122.1 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002637/5.313, allocations: 95.47 kB / 3.949 GB, free: 122 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 752 * Number of variables: 752 Notification: Performance of Generate backend data structure: time 5.095/10.41, allocations: 1.592 GB / 5.541 GB, free: 14.8 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.114e-05/10.41, allocations: 17.44 kB / 5.542 GB, free: 14.79 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001708/10.41, allocations: 403.8 kB / 5.542 GB, free: 14.39 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004311/10.41, allocations: 2.108 MB / 5.544 GB, free: 12.23 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002293/10.41, allocations: 408.7 kB / 5.544 GB, free: 11.77 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004639/10.41, allocations: 171.9 kB / 5.545 GB, free: 11.6 MB / 0.6042 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005946/10.42, allocations: 4.47 MB / 5.549 GB, free: 7.125 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005679/10.43, allocations: 4.488 MB / 5.553 GB, free: 2.383 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.447e-05/10.43, allocations: 15.78 kB / 5.553 GB, free: 2.367 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003491/10.43, allocations: 11.98 kB / 5.553 GB, free: 2.355 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001859/10.43, allocations: 277.2 kB / 5.554 GB, free: 2.082 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3081/10.74, allocations: 20.47 MB / 5.574 GB, free: 65.7 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003133/10.74, allocations: 1.798 MB / 5.575 GB, free: 65.68 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002011/10.74, allocations: 1.529 MB / 5.577 GB, free: 65.67 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002189/10.74, allocations: 3.317 MB / 5.58 GB, free: 62.11 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.28e-05/10.74, allocations: 65.11 kB / 5.58 GB, free: 62.07 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=232): time 4.699e-06/10.74, allocations: 0 / 5.58 GB, free: 62.07 MB / 0.6198 GB Notification: Performance of matching and sorting (n=268): time 0.0474/10.79, allocations: 13.21 MB / 5.593 GB, free: 61.36 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.772e-05/10.79, allocations: 235.8 kB / 5.593 GB, free: 61.1 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002334/10.79, allocations: 1.718 MB / 5.595 GB, free: 60.87 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 0.0003663/10.79, allocations: 29.61 kB / 5.595 GB, free: 60.84 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005744/10.79, allocations: 1.202 MB / 5.596 GB, free: 60.25 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009169/10.79, allocations: 0.9167 MB / 5.597 GB, free: 59.78 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002433/10.79, allocations: 5.75 kB / 5.597 GB, free: 59.78 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0001629/10.79, allocations: 464.7 kB / 5.597 GB, free: 59.47 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002505/10.8, allocations: 1.817 MB / 5.599 GB, free: 59.46 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003047/10.8, allocations: 3.001 MB / 5.602 GB, free: 58.09 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01049/10.81, allocations: 3.69 MB / 5.606 GB, free: 58.04 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.049e-05/10.81, allocations: 10.34 kB / 5.606 GB, free: 58.04 MB / 0.6198 GB Notification: Performance of matching and sorting (n=502) (initialization): time 0.01731/10.83, allocations: 6.71 MB / 5.612 GB, free: 57.77 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 0.002639/10.83, allocations: 14.76 MB / 5.627 GB, free: 42.07 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.05e-05/10.83, allocations: 36.38 kB / 5.627 GB, free: 42.07 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002864/10.83, allocations: 0.725 MB / 5.627 GB, free: 42.05 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004017/10.84, allocations: 0.8993 MB / 5.628 GB, free: 42.05 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002482/10.84, allocations: 2.597 MB / 5.631 GB, free: 40.48 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005171/10.85, allocations: 311.3 kB / 5.631 GB, free: 40.47 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001173/10.85, allocations: 241.2 kB / 5.631 GB, free: 40.47 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.405e-05/10.85, allocations: 7.906 kB / 5.631 GB, free: 40.47 MB / 0.6198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01604/10.86, allocations: 6.147 MB / 5.637 GB, free: 40.37 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.529e-05/10.86, allocations: 36.72 kB / 5.637 GB, free: 40.37 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002774/10.87, allocations: 0.7344 MB / 5.638 GB, free: 40.34 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00372/10.87, allocations: 0.8962 MB / 5.639 GB, free: 40.34 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00242/10.87, allocations: 2.6 MB / 5.642 GB, free: 38.78 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003976/10.88, allocations: 295.5 kB / 5.642 GB, free: 38.77 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004865/10.88, allocations: 243.9 kB / 5.642 GB, free: 38.77 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 166 * Number of states: 0 () * Number of discrete variables: 22 (traceSubstance1.ind,traceSubstance2.ind,traceSubstance3.ind,traceSubstance.ind,volume1.regularFlow[1],volume1.regularFlow[2],volume1.regularFlow[3],volume2.regularFlow[1],volume2.regularFlow[2],volume2.regularFlow[3],volume3.regularFlow[1],volume3.regularFlow[2],volume3.regularFlow[3],volume3.inFlow[3],volume3.inFlow[2],volume3.inFlow[1],volume2.inFlow[3],volume2.inFlow[2],volume2.inFlow[1],volume1.inFlow[3],volume1.inFlow[2],volume1.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (481): * Single equations (assignments): 474 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 6,2 6,2 6} Notification: Performance of prepare postOptimizeDAE: time 0.0009543/10.88, allocations: 237.8 kB / 5.642 GB, free: 38.66 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000512/10.88, allocations: 277.2 kB / 5.643 GB, free: 38.53 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01388/10.89, allocations: 6.835 MB / 5.649 GB, free: 38.23 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.199e-05/10.89, allocations: 41.22 kB / 5.649 GB, free: 38.23 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.889e-06/10.89, allocations: 3.188 kB / 5.649 GB, free: 38.23 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.764e-05/10.89, allocations: 13.78 kB / 5.649 GB, free: 38.23 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01718/10.91, allocations: 8.484 MB / 5.658 GB, free: 37.73 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.023e-05/10.91, allocations: 6.281 kB / 5.658 GB, free: 37.73 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002392/10.91, allocations: 0.5287 MB / 5.658 GB, free: 37.73 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003969/10.92, allocations: 0.9229 MB / 5.659 GB, free: 37.7 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003575/10.92, allocations: 78.38 kB / 5.659 GB, free: 37.7 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002245/10.92, allocations: 2.491 MB / 5.662 GB, free: 36.13 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/10.92, allocations: 0.6562 kB / 5.662 GB, free: 36.13 MB / 0.6198 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01459/10.93, allocations: 7.125 MB / 5.668 GB, free: 35.54 MB / 0.6198 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01893/10.95, allocations: 10.53 MB / 5.679 GB, free: 34.55 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002121/10.95, allocations: 0.8387 MB / 5.68 GB, free: 34.31 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007239/10.95, allocations: 23.33 kB / 5.68 GB, free: 34.31 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00285/10.96, allocations: 234.8 kB / 5.68 GB, free: 34.3 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003465/10.96, allocations: 183.9 kB / 5.68 GB, free: 34.3 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003659/10.96, allocations: 144.7 kB / 5.68 GB, free: 34.3 MB / 0.6198 GB Notification: Performance of sort global known variables: time 0.001765/10.96, allocations: 1.287 MB / 5.681 GB, free: 34.16 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0164/10.98, allocations: 4.85 MB / 5.686 GB, free: 34.16 MB / 0.6198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 12 (volume1.medium.p,volume1.medium.Xi[1],volume1.medium.T,volume1.mC_scaled[1],volume2.medium.p,volume2.medium.Xi[1],volume2.medium.T,volume2.mC_scaled[1],volume3.medium.p,volume3.medium.Xi[1],volume3.medium.T,volume3.mC_scaled[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (285): * Single equations (assignments): 273 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 6,2 6,2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.01322/10.99, allocations: 4.929 MB / 5.691 GB, free: 33.62 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.01196/11, allocations: 7.454 MB / 5.698 GB, free: 33.28 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.053e-05/11, allocations: 4.062 kB / 5.698 GB, free: 33.28 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.003296/11.01, allocations: 2.096 MB / 5.7 GB, free: 33.27 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005079/11.01, allocations: 1.011 MB / 5.701 GB, free: 33.24 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01395/11.02, allocations: 6.419 MB / 5.708 GB, free: 32.18 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002939/11.03, allocations: 2.722 MB / 5.71 GB, free: 47.39 MB / 0.6355 GB Notification: Performance of SimCode: time 1.253e-06/11.03, allocations: 0 / 5.71 GB, free: 47.39 MB / 0.6355 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Fittings_TestMultiPortTraceSubstances_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Fittings_TestMultiPortTraceSubstances.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances.pipe 2>&1)