Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances.conf.json Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Fluid_TestComponents_Fittings_TestMultiPortTraceSubstances",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo): time 0.01139/0.01139, allocations: 110.9 kB / 15.06 MB, free: 5.555 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo): time 0.001302/0.001301, allocations: 181.8 kB / 15.95 MB, free: 5.52 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo): time 1.915/1.915, allocations: 194.6 MB / 211.3 MB, free: 10.96 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo): time 0.2619/0.2619, allocations: 40.04 MB / 296.5 MB, free: 6.238 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004585/0.0004586, allocations: 12 kB / 361.1 MB, free: 9.535 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1112/0.1117, allocations: 54.9 MB / 416 MB, free: 2.543 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances): time 1.083/1.195, allocations: 255.6 MB / 0.6559 GB, free: 3.586 MB / 474.7 MB Notification: Performance of NFInst.instExpressions: time 0.06123/1.256, allocations: 34.07 MB / 0.6891 GB, free: 2.965 MB / 474.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004031/1.26, allocations: 97.56 kB / 0.6892 GB, free: 2.965 MB / 474.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004923/1.265, allocations: 1.082 MB / 0.6903 GB, free: 2.648 MB / 474.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03425/1.299, allocations: 8.501 MB / 0.6986 GB, free: 0.8086 MB / 474.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02419/1.324, allocations: 5.964 MB / 0.7044 GB, free: 15.41 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.009695/1.333, allocations: 4.695 MB / 0.709 GB, free: 14.62 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004927/1.338, allocations: 2.084 MB / 0.711 GB, free: 13.83 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01552/1.354, allocations: 4.745 MB / 0.7157 GB, free: 12.36 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007544/1.361, allocations: 2.681 MB / 0.7183 GB, free: 10.53 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001712/1.363, allocations: 200 kB / 0.7185 GB, free: 10.33 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.04575/1.409, allocations: 16.04 MB / 0.7341 GB, free: 14.14 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 0.003599/1.413, allocations: 1.472 MB / 0.7356 GB, free: 13.12 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 0.00227/1.415, allocations: 0.7002 MB / 0.7363 GB, free: 12.71 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.02747/1.442, allocations: 9.422 MB / 0.7455 GB, free: 4.574 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/1.442, allocations: 0 / 0.7455 GB, free: 4.574 MB / 0.4948 GB Notification: Performance of FrontEnd: time 3.136e-06/1.442, allocations: 0 / 0.7455 GB, free: 4.574 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0001499/1.443, allocations: 0 / 0.7455 GB, free: 4.574 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 0.02167/1.464, allocations: 5.429 MB / 0.7508 GB, free: 15.36 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.246e-05/1.464, allocations: 8.031 kB / 0.7508 GB, free: 15.36 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001793/1.466, allocations: 429.9 kB / 0.7512 GB, free: 15.11 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001808/1.468, allocations: 399.7 kB / 0.7516 GB, free: 14.72 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005973/1.474, allocations: 1.887 MB / 0.7534 GB, free: 13.3 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005902/1.475, allocations: 0.5048 MB / 0.7539 GB, free: 12.85 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001232/1.476, allocations: 284.4 kB / 0.7542 GB, free: 12.66 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01455/1.49, allocations: 4.928 MB / 0.759 GB, free: 8.973 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001179/1.491, allocations: 10.8 kB / 0.759 GB, free: 8.965 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006674/1.491, allocations: 129.5 kB / 0.7591 GB, free: 8.934 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005588/1.492, allocations: 275.6 kB / 0.7594 GB, free: 8.695 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01594/1.508, allocations: 5.112 MB / 0.7644 GB, free: 5.207 MB / 0.5105 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05157/1.559, allocations: 21.77 MB / 0.7856 GB, free: 0.8516 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008669/1.568, allocations: 2.628 MB / 0.7882 GB, free: 14.23 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004027/1.572, allocations: 3.374 MB / 0.7915 GB, free: 10.19 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.516e-05/1.572, allocations: 64.56 kB / 0.7916 GB, free: 10.12 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=235): time 5.16e-06/1.572, allocations: 0 / 0.7916 GB, free: 10.12 MB / 0.5417 GB Notification: Performance of matching and sorting (n=271): time 0.1067/1.679, allocations: 15.91 MB / 0.8071 GB, free: 10.16 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001343/1.679, allocations: 235.8 kB / 0.8073 GB, free: 9.883 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004735/1.684, allocations: 2.273 MB / 0.8095 GB, free: 7.59 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0008733/1.685, allocations: 81.7 kB / 0.8096 GB, free: 7.504 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.001618/1.687, allocations: 1.481 MB / 0.8111 GB, free: 6.023 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.001695/1.688, allocations: 0.9593 MB / 0.812 GB, free: 5.07 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005189/1.689, allocations: 80 kB / 0.8121 GB, free: 4.992 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0003522/1.689, allocations: 470.5 kB / 0.8125 GB, free: 4.523 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007458/1.697, allocations: 1.971 MB / 0.8145 GB, free: 2.543 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008938/1.706, allocations: 3.269 MB / 0.8176 GB, free: 14.7 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009114/1.715, allocations: 2.547 MB / 0.8201 GB, free: 12.14 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.965e-05/1.715, allocations: 12 kB / 0.8201 GB, free: 12.13 MB / 0.573 GB Notification: Performance of matching and sorting (n=514) (initialization): time 0.02424/1.739, allocations: 6.19 MB / 0.8262 GB, free: 6.113 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.3146/2.054, allocations: 16.61 MB / 0.8424 GB, free: 229.1 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001417/2.054, allocations: 40.34 kB / 0.8425 GB, free: 229.1 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008654/2.063, allocations: 0.9825 MB / 0.8434 GB, free: 229.1 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007506/2.07, allocations: 0.9381 MB / 0.8443 GB, free: 229.1 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007637/2.078, allocations: 2.784 MB / 0.847 GB, free: 227.5 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006765/2.085, allocations: 377.4 kB / 0.8474 GB, free: 227.5 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001287/2.086, allocations: 285.1 kB / 0.8477 GB, free: 227.5 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.506e-05/2.086, allocations: 3.094 kB / 0.8477 GB, free: 227.5 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02134/2.107, allocations: 5.839 MB / 0.8534 GB, free: 227.1 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001364/2.108, allocations: 40.97 kB / 0.8534 GB, free: 227.1 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008404/2.116, allocations: 0.9837 MB / 0.8544 GB, free: 227 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007166/2.123, allocations: 0.926 MB / 0.8553 GB, free: 227 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007418/2.131, allocations: 2.785 MB / 0.858 GB, free: 225.4 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006291/2.137, allocations: 377 kB / 0.8584 GB, free: 225.4 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00127/2.138, allocations: 273.1 kB / 0.8586 GB, free: 225.3 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 183 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (493): * Single equations (assignments): 486 * 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.00335/2.142, allocations: 0.9839 MB / 0.8596 GB, free: 224.8 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001006/2.143, allocations: 293.9 kB / 0.8599 GB, free: 224.8 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02284/2.166, allocations: 6.13 MB / 0.8659 GB, free: 222.6 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.016e-05/2.166, allocations: 36.3 kB / 0.8659 GB, free: 222.6 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.355e-05/2.166, allocations: 0 / 0.8659 GB, free: 222.6 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.841e-05/2.166, allocations: 18.17 kB / 0.8659 GB, free: 222.6 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02894/2.195, allocations: 8.885 MB / 0.8746 GB, free: 219.3 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.295e-05/2.195, allocations: 1.844 kB / 0.8746 GB, free: 219.3 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005314/2.2, allocations: 0.5733 MB / 0.8751 GB, free: 219.2 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01069/2.211, allocations: 1.158 MB / 0.8763 GB, free: 219.1 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009041/2.212, allocations: 123.4 kB / 0.8764 GB, free: 219 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006768/2.219, allocations: 2.662 MB / 0.879 GB, free: 217.1 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.59e-06/2.219, allocations: 2.578 kB / 0.879 GB, free: 217.1 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02575/2.245, allocations: 7.41 MB / 0.8862 GB, free: 214.3 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003176/2.248, allocations: 0.8882 MB / 0.8871 GB, free: 213.8 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001132/2.249, allocations: 72.88 kB / 0.8872 GB, free: 213.7 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005148/2.254, allocations: 270.5 kB / 0.8874 GB, free: 213.7 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009679/2.255, allocations: 236.7 kB / 0.8877 GB, free: 213.6 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007387/2.256, allocations: 177.2 kB / 0.8878 GB, free: 213.6 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.003339/2.259, allocations: 1.467 MB / 0.8893 GB, free: 213.1 MB / 0.573 GB Notification: Performance of sort global known variables: time 6.81e-07/2.259, allocations: 0 / 0.8893 GB, free: 213.1 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.014/2.273, allocations: 3.746 MB / 0.8929 GB, free: 212.6 MB / 0.573 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (297): * Single equations (assignments): 285 * 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.03607/2.309, allocations: 11.41 MB / 0.9041 GB, free: 208.5 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.026/2.335, allocations: 8.332 MB / 0.9122 GB, free: 202 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.326e-05/2.336, allocations: 4.562 kB / 0.9122 GB, free: 202 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.00803/2.344, allocations: 2.403 MB / 0.9145 GB, free: 199.9 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01007/2.354, allocations: 1.211 MB / 0.9157 GB, free: 199 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04652/2.4, allocations: 40.25 MB / 0.955 GB, free: 158.3 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003272/2.404, allocations: 2.296 MB / 0.9573 GB, free: 155.9 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.01791/2.422, allocations: 2.284 MB / 0.9595 GB, free: 153.7 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005504/2.427, allocations: 1.421 MB / 0.9609 GB, free: 152.2 MB / 0.573 GB Notification: Performance of SimCode: time 1.523e-06/2.427, allocations: 4 kB / 0.9609 GB, free: 152.2 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2986/2.726, allocations: 142.1 MB / 1.1 GB, free: 10.04 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002622/2.726, allocations: 279.1 kB / 1.1 GB, free: 9.688 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.791/12.52, allocations: 0 / 1.1 GB, free: 9.688 MB / 0.573 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Fittings.TestMultiPortTraceSubstances_res.mat does not exist to compare? outputFormat=mat