Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 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 Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestComponents_Fittings_TestSuddenExpansion",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.135/2.135, allocations: 234.9 MB / 250.5 MB, free: 9.551 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004585/0.0004586, allocations: 12 kB / 314.4 MB, free: 9.508 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.37/0.3705, allocations: 54.87 MB / 369.3 MB, free: 10.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion): time 0.0825/0.4531, allocations: 52.76 MB / 422 MB, free: 5.812 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.03704/0.4902, allocations: 19.24 MB / 441.3 MB, free: 2.531 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001545/0.4918, allocations: 39.69 kB / 441.3 MB, free: 2.492 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002586/0.4944, allocations: 0.5753 MB / 441.9 MB, free: 1.914 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01951/0.5139, allocations: 4.874 MB / 446.8 MB, free: 13.02 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0111/0.5251, allocations: 2.731 MB / 449.5 MB, free: 10.29 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.03248/0.5576, allocations: 12.74 MB / 462.3 MB, free: 13.54 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001404/0.559, allocations: 0.5693 MB / 462.8 MB, free: 12.95 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00251/0.5616, allocations: 0.8914 MB / 463.7 MB, free: 12.05 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001099/0.5627, allocations: 0.6107 MB / 464.3 MB, free: 11.44 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001759/0.5629, allocations: 44 kB / 464.4 MB, free: 11.4 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02114/0.584, allocations: 7.425 MB / 471.8 MB, free: 3.965 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004797/0.5846, allocations: 219 kB / 472 MB, free: 3.75 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005568/0.5851, allocations: 289.1 kB / 472.3 MB, free: 3.461 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.3275/0.9126, allocations: 3.841 MB / 476.1 MB, free: 25.07 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.9127, allocations: 0.7812 kB / 476.1 MB, free: 25.07 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.677e-06/0.9127, allocations: 0 / 476.1 MB, free: 25.07 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.732e-05/0.9128, allocations: 0 / 476.1 MB, free: 25.07 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 248 * Number of variables: 248 Notification: Performance of Generate backend data structure: time 0.008534/0.9213, allocations: 2.176 MB / 478.3 MB, free: 24.05 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.796e-05/0.9214, allocations: 8.969 kB / 478.3 MB, free: 24.05 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003581/0.9218, allocations: 152.8 kB / 478.5 MB, free: 24.02 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005018/0.9268, allocations: 0.555 MB / 479 MB, free: 23.95 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002434/0.9292, allocations: 0.9491 MB / 480 MB, free: 23.65 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.268e-05/0.9293, allocations: 73.81 kB / 480 MB, free: 23.65 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001895/0.9295, allocations: 91.47 kB / 480.1 MB, free: 23.65 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004654/0.9342, allocations: 1.604 MB / 481.7 MB, free: 23.31 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.219e-05/0.9343, allocations: 9.203 kB / 481.7 MB, free: 23.31 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000159/0.9345, allocations: 44.75 kB / 481.8 MB, free: 23.31 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.278e-05/0.9345, allocations: 29.03 kB / 481.8 MB, free: 23.31 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004382/0.9389, allocations: 1.361 MB / 483.2 MB, free: 23.31 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009975/0.9489, allocations: 7.964 MB / 491.1 MB, free: 17.73 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003843/0.9528, allocations: 1.641 MB / 492.8 MB, free: 16.93 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3319/1.285, allocations: 81.43 MB / 0.5607 GB, free: 10.48 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.783e-05/1.285, allocations: 49.05 kB / 0.5608 GB, free: 10.44 MB / 458.7 MB Notification: Performance of pre-optimization done (n=69): time 3.306e-06/1.285, allocations: 0 / 0.5608 GB, free: 10.44 MB / 458.7 MB Notification: Performance of matching and sorting (n=69): time 0.007949/1.293, allocations: 1.823 MB / 0.5626 GB, free: 8.965 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001156/1.293, allocations: 184.4 kB / 0.5628 GB, free: 8.742 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001526/1.295, allocations: 0.8266 MB / 0.5636 GB, free: 8.094 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001087/1.295, allocations: 39.95 kB / 0.5636 GB, free: 8.055 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005202/1.295, allocations: 0.6165 MB / 0.5642 GB, free: 7.598 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003043/1.295, allocations: 253.5 kB / 0.5644 GB, free: 7.387 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.142e-05/1.296, allocations: 22.25 kB / 0.5645 GB, free: 7.383 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001774/1.296, allocations: 359.2 kB / 0.5648 GB, free: 7.043 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007426/1.297, allocations: 256.3 kB / 0.565 GB, free: 6.879 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001196/1.298, allocations: 0.7802 MB / 0.5658 GB, free: 5.98 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009718/1.299, allocations: 399.9 kB / 0.5662 GB, free: 5.746 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.646e-05/1.299, allocations: 8 kB / 0.5662 GB, free: 5.738 MB / 458.7 MB Notification: Performance of matching and sorting (n=145) (initialization): time 0.003061/1.302, allocations: 1.145 MB / 0.5673 GB, free: 4.98 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.324e-05/1.302, allocations: 12 kB / 0.5673 GB, free: 4.969 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.942e-05/1.302, allocations: 16 kB / 0.5673 GB, free: 4.953 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006029/1.308, allocations: 0.536 MB / 0.5679 GB, free: 4.457 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002048/1.31, allocations: 292.8 kB / 0.5681 GB, free: 4.207 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001611/1.312, allocations: 1.368 MB / 0.5695 GB, free: 2.895 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001486/1.313, allocations: 161.7 kB / 0.5696 GB, free: 2.762 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001472/1.313, allocations: 66.25 kB / 0.5697 GB, free: 2.707 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 78 * Number of states: 0 () * Number of discrete variables: 20 (rightAdapter.state_b.phase,rightAdapter.state_a.phase,rightAdapter.state_a_nondes.phase,rightAdapter.state_b_des.phase,leftAdapter.state_b.phase,leftAdapter.state_a.phase,leftAdapter.state_a_nondes.phase,leftAdapter.state_b_des.phase,suddenExpansion2.state_b.phase,suddenExpansion2.state_a.phase,suddenExpansion2.state_a_nondes.phase,suddenExpansion2.state_b_des.phase,rightBoundary2.medium.phase,leftBoundary2.medium.phase,suddenExpansion1.state_b.phase,suddenExpansion1.state_a.phase,suddenExpansion1.state_a_nondes.phase,suddenExpansion1.state_b_des.phase,rightBoundary1.medium.phase,leftBoundary1.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (129): * Single equations (assignments): 127 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 14} Notification: Performance of prepare postOptimizeDAE: time 0.0006781/1.314, allocations: 300.8 kB / 0.57 GB, free: 2.504 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002714/1.314, allocations: 110.7 kB / 0.5701 GB, free: 2.395 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007539/1.322, allocations: 4.386 MB / 0.5744 GB, free: 15.64 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.508e-05/1.322, allocations: 44.92 kB / 0.5744 GB, free: 15.61 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.341e-05/1.322, allocations: 4 kB / 0.5744 GB, free: 15.6 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.799e-05/1.322, allocations: 3.984 kB / 0.5744 GB, free: 15.6 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007978/1.33, allocations: 4.725 MB / 0.579 GB, free: 12.28 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-05/1.33, allocations: 3.844 kB / 0.579 GB, free: 12.28 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001397/1.332, allocations: 156.9 kB / 0.5792 GB, free: 12.14 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007132/1.339, allocations: 1.604 MB / 0.5808 GB, free: 10.64 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001385/1.339, allocations: 19.06 kB / 0.5808 GB, free: 10.63 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002051/1.341, allocations: 1.755 MB / 0.5825 GB, free: 9.094 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.089e-06/1.341, allocations: 3.953 kB / 0.5825 GB, free: 9.09 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003495/1.344, allocations: 1.897 MB / 0.5843 GB, free: 7.746 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006713/1.345, allocations: 330.5 kB / 0.5847 GB, free: 7.422 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002557/1.345, allocations: 14.62 kB / 0.5847 GB, free: 7.418 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008129/1.346, allocations: 60.02 kB / 0.5847 GB, free: 7.371 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000115/1.346, allocations: 51.73 kB / 0.5848 GB, free: 7.324 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.88e-05/1.347, allocations: 25.94 kB / 0.5848 GB, free: 7.305 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.00124/1.348, allocations: 0.6202 MB / 0.5854 GB, free: 6.828 MB / 474.7 MB Notification: Performance of sort global known variables: time 4.5e-07/1.348, allocations: 0 / 0.5854 GB, free: 6.828 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.005039/1.353, allocations: 1.265 MB / 0.5866 GB, free: 5.629 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 24 ($cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (73): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 10} Notification: Performance of Backend phase and start with SimCode phase: time 0.0113/1.364, allocations: 3.613 MB / 0.5902 GB, free: 2.703 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.003814/1.368, allocations: 1.178 MB / 0.5913 GB, free: 1.906 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 4.609e-06/1.368, allocations: 0 / 0.5913 GB, free: 1.906 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002699/1.371, allocations: 0.8651 MB / 0.5922 GB, free: 1.402 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005279/1.376, allocations: 0.5472 MB / 0.5927 GB, free: 0.957 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01946/1.396, allocations: 8.232 MB / 0.6007 GB, free: 9.527 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001231/1.397, allocations: 1.343 MB / 0.6021 GB, free: 8.156 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00106/1.398, allocations: 0.6336 MB / 0.6027 GB, free: 8.008 MB / 490.7 MB Notification: Performance of SimCode: time 1.293e-06/1.398, allocations: 0 / 0.6027 GB, free: 8.008 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.858/5.256, allocations: 55.94 MB / 0.6573 GB, free: 0.6172 MB / 0.5261 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion_res.mat does not exist to compare? outputFormat=mat