Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances.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.TestMultiPortTraceSubstances,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Fittings_TestMultiPortTraceSubstances",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances,fileNamePrefix="ModelicaTest_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001639/0.001638, allocations: 193.1 kB / 7.805 MB, free: 2.5 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.598/1.598, allocations: 205.2 MB / 213.4 MB, free: 13.91 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.0009304/0.0009305, allocations: 95.55 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.2157/0.2157, allocations: 43.49 MB / 352.8 MB, free: 1.969 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.3281/0.5439, allocations: 64.97 MB / 417.8 MB, free: 40.47 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3969/0.9408, allocations: 58.84 MB / 476.7 MB, free: 5.184 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.904/8.845, allocations: 3.62 GB / 4.085 GB, free: 46.98 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003399/8.845, allocations: 83.95 kB / 4.085 GB, free: 46.89 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: 752 * Number of variables: 752 Notification: Performance of Generate backend data structure: time 7.379/16.22, allocations: 1.643 GB / 5.729 GB, free: 18.56 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 6.051e-05/16.22, allocations: 13.75 kB / 5.729 GB, free: 18.56 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003592/16.23, allocations: 401.4 kB / 5.729 GB, free: 18.38 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009389/16.24, allocations: 2.129 MB / 5.731 GB, free: 17.84 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006077/16.24, allocations: 408.9 kB / 5.732 GB, free: 17.54 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002001/16.24, allocations: 162.6 kB / 5.732 GB, free: 17.54 MB / 0.5886 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01199/16.25, allocations: 4.507 MB / 5.736 GB, free: 17.53 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0155/16.27, allocations: 4.526 MB / 5.741 GB, free: 16.8 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002506/16.27, allocations: 12.69 kB / 5.741 GB, free: 16.8 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001657/16.27, allocations: 10.56 kB / 5.741 GB, free: 16.8 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003833/16.27, allocations: 280.8 kB / 5.741 GB, free: 16.79 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0431/16.31, allocations: 20.33 MB / 5.761 GB, free: 6.738 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004817/16.32, allocations: 1.808 MB / 5.763 GB, free: 6.699 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003568/16.32, allocations: 1.532 MB / 5.764 GB, free: 6.688 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003389/16.33, allocations: 3.346 MB / 5.767 GB, free: 19.21 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.361e-05/16.33, allocations: 65.2 kB / 5.767 GB, free: 19.16 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=232): time 6.672e-06/16.33, allocations: 2.25 kB / 5.767 GB, free: 19.16 MB / 0.6042 GB Notification: Performance of matching and sorting (n=268): time 0.06826/16.39, allocations: 13.72 MB / 5.781 GB, free: 18.1 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001538/16.39, allocations: 234.2 kB / 5.781 GB, free: 17.84 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003545/16.4, allocations: 1.713 MB / 5.783 GB, free: 17.59 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 0.0009999/16.4, allocations: 32.55 kB / 5.783 GB, free: 17.55 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009847/16.4, allocations: 1.213 MB / 5.784 GB, free: 16.79 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.001675/16.4, allocations: 0.9141 MB / 5.785 GB, free: 16.2 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002779/16.4, allocations: 2 kB / 5.785 GB, free: 16.2 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.0003446/16.4, allocations: 472 kB / 5.785 GB, free: 15.88 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004116/16.41, allocations: 1.826 MB / 5.787 GB, free: 15.88 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004581/16.41, allocations: 3.005 MB / 5.79 GB, free: 14.18 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02771/16.44, allocations: 5.875 MB / 5.796 GB, free: 13.05 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001081/16.44, allocations: 13.03 kB / 5.796 GB, free: 13.05 MB / 0.6042 GB Notification: Performance of matching and sorting (n=502) (initialization): time 0.03803/16.48, allocations: 8.932 MB / 5.805 GB, free: 9.504 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.007759/16.48, allocations: 14.76 MB / 5.819 GB, free: 9.312 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001095/16.48, allocations: 36 kB / 5.819 GB, free: 9.277 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003262/16.49, allocations: 0.7317 MB / 5.82 GB, free: 8.703 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005133/16.49, allocations: 0.9194 MB / 5.821 GB, free: 7.918 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003274/16.5, allocations: 2.596 MB / 5.823 GB, free: 5.383 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005789/16.5, allocations: 311.1 kB / 5.823 GB, free: 5.148 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001004/16.5, allocations: 281.8 kB / 5.824 GB, free: 4.906 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.513e-05/16.5, allocations: 7.5 kB / 5.824 GB, free: 4.902 MB / 0.6198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.4819/16.98, allocations: 8.795 MB / 5.832 GB, free: 85.06 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001443/16.99, allocations: 36.44 kB / 5.832 GB, free: 85.06 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003016/16.99, allocations: 0.7373 MB / 5.833 GB, free: 85.04 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005081/16.99, allocations: 0.9163 MB / 5.834 GB, free: 85.04 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002726/17, allocations: 2.595 MB / 5.836 GB, free: 83.49 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0056/17, allocations: 300 kB / 5.837 GB, free: 83.49 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00157/17, allocations: 274.5 kB / 5.837 GB, free: 83.49 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.001551/17, allocations: 244.1 kB / 5.837 GB, free: 83.38 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009783/17.01, allocations: 271.7 kB / 5.838 GB, free: 83.38 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01761/17.02, allocations: 6.761 MB / 5.844 GB, free: 83.13 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.9e-05/17.02, allocations: 34.44 kB / 5.844 GB, free: 83.13 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.241e-05/17.02, allocations: 3.422 kB / 5.844 GB, free: 83.13 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.271e-05/17.02, allocations: 14.44 kB / 5.844 GB, free: 83.13 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02175/17.05, allocations: 8.746 MB / 5.853 GB, free: 82.67 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.267e-05/17.05, allocations: 3.938 kB / 5.853 GB, free: 82.67 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00252/17.05, allocations: 0.5461 MB / 5.853 GB, free: 82.67 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003932/17.05, allocations: 0.9217 MB / 5.854 GB, free: 82.65 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004083/17.05, allocations: 85.97 kB / 5.854 GB, free: 82.65 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002755/17.06, allocations: 2.499 MB / 5.857 GB, free: 81.1 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.768e-06/17.06, allocations: 5.188 kB / 5.857 GB, free: 81.1 MB / 0.6198 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01681/17.07, allocations: 7.387 MB / 5.864 GB, free: 80.67 MB / 0.6198 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02247/17.09, allocations: 10.8 MB / 5.874 GB, free: 79.74 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002909/17.1, allocations: 0.8478 MB / 5.875 GB, free: 79.5 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009933/17.1, allocations: 29.22 kB / 5.875 GB, free: 79.5 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003528/17.1, allocations: 234.9 kB / 5.876 GB, free: 79.49 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003765/17.1, allocations: 183.1 kB / 5.876 GB, free: 79.49 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004604/17.1, allocations: 177.7 kB / 5.876 GB, free: 79.49 MB / 0.6198 GB Notification: Performance of sort global known variables: time 0.002135/17.1, allocations: 1.295 MB / 5.877 GB, free: 79.34 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.02528/17.13, allocations: 5.264 MB / 5.882 GB, free: 79.34 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.01934/17.15, allocations: 5.608 MB / 5.888 GB, free: 78.85 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.01415/17.16, allocations: 7.484 MB / 5.895 GB, free: 78.52 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.12e-05/17.16, allocations: 7.938 kB / 5.895 GB, free: 78.52 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.004058/17.17, allocations: 2.114 MB / 5.897 GB, free: 78.5 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006285/17.17, allocations: 1.014 MB / 5.898 GB, free: 78.46 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01664/17.19, allocations: 6.429 MB / 5.904 GB, free: 77.42 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004464/17.2, allocations: 2.845 MB / 5.907 GB, free: 76.64 MB / 0.6198 GB Notification: Performance of SimCode: time 1.663e-06/17.2, allocations: 0 / 5.907 GB, free: 76.64 MB / 0.6198 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Fittings_TestMultiPortTraceSubstances_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Fittings_TestMultiPortTraceSubstances.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances.pipe 2>&1)