Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestComponents_Fittings_TestSuddenExpansion",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.088/2.088, allocations: 209.3 MB / 224.8 MB, free: 1.684 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006155/0.0006156, allocations: 12 kB / 282.6 MB, free: 9.734 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1244/0.1251, allocations: 48.71 MB / 331.3 MB, free: 8.934 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion): time 0.337/0.4622, allocations: 52.37 MB / 383.7 MB, free: 14.5 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.03805/0.5003, allocations: 19.04 MB / 402.7 MB, free: 13.51 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002121/0.5025, allocations: 35.69 kB / 402.7 MB, free: 13.47 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002887/0.5054, allocations: 0.5792 MB / 403.3 MB, free: 12.89 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02163/0.5271, allocations: 4.812 MB / 408.1 MB, free: 8.066 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01179/0.5389, allocations: 2.673 MB / 410.8 MB, free: 5.387 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.03455/0.5735, allocations: 12.58 MB / 423.4 MB, free: 8.797 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001504/0.5751, allocations: 0.5567 MB / 423.9 MB, free: 8.234 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002894/0.578, allocations: 0.8759 MB / 424.8 MB, free: 7.355 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001567/0.5796, allocations: 0.6068 MB / 425.4 MB, free: 6.746 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002777/0.5799, allocations: 44 kB / 425.5 MB, free: 6.703 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02316/0.6031, allocations: 7.297 MB / 432.7 MB, free: 15.4 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005362/0.6037, allocations: 219.1 kB / 433 MB, free: 15.18 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006741/0.6044, allocations: 289.1 kB / 433.2 MB, free: 14.89 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01123/0.6156, allocations: 3.808 MB / 437.1 MB, free: 11.08 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.632e-06/0.6157, allocations: 0 / 437.1 MB, free: 11.08 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.836e-06/0.6157, allocations: 3.938 kB / 437.1 MB, free: 11.07 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.973e-05/0.6157, allocations: 0 / 437.1 MB, free: 11.07 MB / 362.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.008278/0.624, allocations: 2.081 MB / 439.1 MB, free: 8.941 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.485e-05/0.6241, allocations: 12.03 kB / 439.1 MB, free: 8.93 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003925/0.6245, allocations: 156.1 kB / 439.3 MB, free: 8.77 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005109/0.6296, allocations: 0.5213 MB / 439.8 MB, free: 8.246 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002598/0.6323, allocations: 0.9532 MB / 440.8 MB, free: 7.25 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.282e-05/0.6324, allocations: 70 kB / 440.8 MB, free: 7.18 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002174/0.6326, allocations: 103.9 kB / 440.9 MB, free: 7.078 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005357/0.638, allocations: 1.6 MB / 442.5 MB, free: 5.355 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.199e-05/0.6381, allocations: 4 kB / 442.5 MB, free: 5.352 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001787/0.6383, allocations: 47.94 kB / 442.6 MB, free: 5.305 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.781e-05/0.6383, allocations: 24 kB / 442.6 MB, free: 5.281 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004937/0.6433, allocations: 1.357 MB / 444 MB, free: 3.922 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01273/0.6561, allocations: 7.965 MB / 451.9 MB, free: 11.35 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004606/0.6607, allocations: 1.635 MB / 453.6 MB, free: 9.551 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.5983/1.259, allocations: 81.37 MB / 0.5224 GB, free: 132.1 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.617e-05/1.259, allocations: 41.44 kB / 0.5225 GB, free: 132.1 MB / 426.7 MB Notification: Performance of pre-optimization done (n=69): time 4.148e-06/1.259, allocations: 0 / 0.5225 GB, free: 132.1 MB / 426.7 MB Notification: Performance of matching and sorting (n=69): time 0.007682/1.267, allocations: 1.818 MB / 0.5242 GB, free: 131.4 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.273e-05/1.267, allocations: 192.3 kB / 0.5244 GB, free: 131.2 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001361/1.268, allocations: 0.8246 MB / 0.5252 GB, free: 130.7 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001423/1.269, allocations: 37.67 kB / 0.5253 GB, free: 130.6 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004326/1.269, allocations: 0.6171 MB / 0.5259 GB, free: 130.1 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003258/1.269, allocations: 251.5 kB / 0.5261 GB, free: 129.9 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.88e-05/1.269, allocations: 21.53 kB / 0.5261 GB, free: 129.9 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001045/1.27, allocations: 357.8 kB / 0.5265 GB, free: 129.5 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007211/1.27, allocations: 257 kB / 0.5267 GB, free: 129.4 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009859/1.271, allocations: 0.783 MB / 0.5275 GB, free: 128.6 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001012/1.272, allocations: 398.7 kB / 0.5278 GB, free: 128.4 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.694e-05/1.272, allocations: 5.969 kB / 0.5279 GB, free: 128.4 MB / 426.7 MB Notification: Performance of matching and sorting (n=145) (initialization): time 0.00301/1.275, allocations: 1.152 MB / 0.529 GB, free: 127.8 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.265e-05/1.275, allocations: 11.88 kB / 0.529 GB, free: 127.8 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.416e-05/1.275, allocations: 20.53 kB / 0.529 GB, free: 127.8 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005781/1.281, allocations: 0.5329 MB / 0.5295 GB, free: 127.5 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001986/1.283, allocations: 282.3 kB / 0.5298 GB, free: 127.4 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001285/1.285, allocations: 1.373 MB / 0.5311 GB, free: 126.2 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001433/1.286, allocations: 159.2 kB / 0.5313 GB, free: 126.1 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001964/1.286, allocations: 67.31 kB / 0.5314 GB, free: 126.1 MB / 426.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.0006837/1.287, allocations: 301.3 kB / 0.5316 GB, free: 125.8 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003157/1.287, allocations: 109.7 kB / 0.5317 GB, free: 125.8 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008574/1.296, allocations: 4.395 MB / 0.536 GB, free: 122 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.471e-05/1.296, allocations: 47.92 kB / 0.5361 GB, free: 122 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.532e-05/1.296, allocations: 4 kB / 0.5361 GB, free: 122 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.661e-05/1.296, allocations: 7.938 kB / 0.5361 GB, free: 122 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009412/1.306, allocations: 4.725 MB / 0.5407 GB, free: 117.1 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.166e-05/1.306, allocations: 0 / 0.5407 GB, free: 117.1 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00171/1.307, allocations: 155.8 kB / 0.5409 GB, free: 116.9 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008982/1.316, allocations: 1.605 MB / 0.5424 GB, free: 115.3 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001728/1.317, allocations: 20 kB / 0.5424 GB, free: 115.3 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002243/1.319, allocations: 1.751 MB / 0.5442 GB, free: 113.5 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.341e-06/1.319, allocations: 0 / 0.5442 GB, free: 113.5 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003948/1.323, allocations: 1.905 MB / 0.546 GB, free: 111.5 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000794/1.324, allocations: 326 kB / 0.5463 GB, free: 111.2 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004497/1.324, allocations: 16 kB / 0.5463 GB, free: 111.2 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001243/1.326, allocations: 57.69 kB / 0.5464 GB, free: 111.1 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001369/1.326, allocations: 49.36 kB / 0.5464 GB, free: 111.1 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.255e-05/1.326, allocations: 24 kB / 0.5465 GB, free: 111.1 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001576/1.327, allocations: 0.6202 MB / 0.5471 GB, free: 110.4 MB / 426.7 MB Notification: Performance of sort global known variables: time 7.52e-07/1.328, allocations: 0 / 0.5471 GB, free: 110.4 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006446/1.334, allocations: 1.266 MB / 0.5483 GB, free: 109.2 MB / 426.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.01527/1.349, allocations: 3.61 MB / 0.5518 GB, free: 105.8 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.005027/1.354, allocations: 1.17 MB / 0.553 GB, free: 104.6 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.827e-06/1.354, allocations: 4 kB / 0.553 GB, free: 104.6 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003668/1.358, allocations: 0.8631 MB / 0.5538 GB, free: 103.8 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00674/1.365, allocations: 0.5439 MB / 0.5544 GB, free: 103.2 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02594/1.391, allocations: 8.232 MB / 0.5624 GB, free: 94.67 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001236/1.392, allocations: 1.347 MB / 0.5637 GB, free: 93.29 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001425/1.394, allocations: 0.6282 MB / 0.5643 GB, free: 92.66 MB / 426.7 MB Notification: Performance of SimCode: time 1.803e-06/1.394, allocations: 0 / 0.5643 GB, free: 92.66 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.032/5.425, allocations: 55.78 MB / 0.6188 GB, free: 36.86 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestSuddenExpansion_res.mat does not exist to compare? outputFormat=mat