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.Sources.TestSources.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.Sources.TestSources,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestComponents_Sources_TestSources",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.449/2.449, allocations: 235 MB / 248.1 MB, free: 14.34 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.351e-05/3.364e-05, allocations: 4 kB / 309.8 MB, free: 1.23 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4389/0.439, allocations: 54.85 MB / 364.6 MB, free: 5.539 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 11.03/11.47, allocations: 3.668 GB / 4.024 GB, free: 63.82 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002774/11.47, allocations: 82.02 kB / 4.024 GB, free: 63.77 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.004/20.47, allocations: 1.437 GB / 5.461 GB, free: 10.23 MB / 0.5573 GB Notification: Performance of FrontEnd: time 3.516e-06/20.47, allocations: 0 / 5.461 GB, free: 10.23 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0002845/20.48, allocations: 58.39 kB / 5.461 GB, free: 10.17 MB / 0.5573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 480 * Number of variables: 480 Notification: Performance of Generate backend data structure: time 0.03385/20.51, allocations: 7.086 MB / 5.468 GB, free: 2.996 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 5.649e-05/20.51, allocations: 8.031 kB / 5.468 GB, free: 2.988 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001452/20.51, allocations: 274.1 kB / 5.468 GB, free: 2.711 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002626/20.51, allocations: 277.1 kB / 5.469 GB, free: 2.438 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006749/20.52, allocations: 1.521 MB / 5.47 GB, free: 0.8633 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003103/20.52, allocations: 143.5 kB / 5.47 GB, free: 0.7227 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001255/20.52, allocations: 176 kB / 5.47 GB, free: 0.5508 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01117/20.53, allocations: 2.887 MB / 5.473 GB, free: 13.58 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.801e-05/20.53, allocations: 4 kB / 5.473 GB, free: 13.58 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006779/20.53, allocations: 86.8 kB / 5.473 GB, free: 13.5 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000384/20.53, allocations: 163.6 kB / 5.474 GB, free: 13.34 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01127/20.55, allocations: 3.118 MB / 5.477 GB, free: 10.21 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5866/21.13, allocations: 11.25 MB / 5.488 GB, free: 35.84 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00703/21.14, allocations: 1.818 MB / 5.489 GB, free: 35.8 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002656/21.14, allocations: 0.7453 MB / 5.49 GB, free: 35.8 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004215/21.15, allocations: 3.49 MB / 5.493 GB, free: 32.23 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.355e-05/21.15, allocations: 56.19 kB / 5.494 GB, free: 32.19 MB / 0.573 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002132/21.15, allocations: 207.5 kB / 5.494 GB, free: 32.19 MB / 0.573 GB Notification: Performance of pre-optimization done (n=150): time 1.112e-05/21.15, allocations: 1.312 kB / 5.494 GB, free: 32.19 MB / 0.573 GB Notification: Performance of matching and sorting (n=150): time 0.006735/21.16, allocations: 1.779 MB / 5.495 GB, free: 32.05 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.417e-05/21.16, allocations: 202.5 kB / 5.496 GB, free: 31.84 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003561/21.16, allocations: 1.313 MB / 5.497 GB, free: 31.66 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0006985/21.16, allocations: 60.52 kB / 5.497 GB, free: 31.63 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.001158/21.16, allocations: 0.9503 MB / 5.498 GB, free: 31.2 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.001215/21.16, allocations: 0.521 MB / 5.498 GB, free: 30.94 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003631/21.16, allocations: 45.97 kB / 5.498 GB, free: 30.94 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0002761/21.16, allocations: 399 kB / 5.499 GB, free: 30.62 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003136/21.17, allocations: 0.7944 MB / 5.5 GB, free: 30.62 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003925/21.17, allocations: 1.482 MB / 5.501 GB, free: 29.8 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00394/21.17, allocations: 1.197 MB / 5.502 GB, free: 29.62 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.282e-05/21.17, allocations: 7.281 kB / 5.502 GB, free: 29.62 MB / 0.573 GB Notification: Performance of matching and sorting (n=275) (initialization): time 0.0108/21.18, allocations: 2.794 MB / 5.505 GB, free: 29.35 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.002141/21.19, allocations: 8.324 MB / 5.513 GB, free: 20.68 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001422/21.19, allocations: 20.88 kB / 5.513 GB, free: 20.68 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005508/21.19, allocations: 0.6132 MB / 5.514 GB, free: 20.66 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004147/21.2, allocations: 0.4971 MB / 5.514 GB, free: 20.66 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002264/21.2, allocations: 1.504 MB / 5.516 GB, free: 19.62 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004302/21.2, allocations: 171.6 kB / 5.516 GB, free: 19.61 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009006/21.2, allocations: 163.3 kB / 5.516 GB, free: 19.61 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.692e-05/21.2, allocations: 2.312 kB / 5.516 GB, free: 19.61 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008519/21.21, allocations: 2.595 MB / 5.519 GB, free: 19.39 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.722e-05/21.21, allocations: 25.28 kB / 5.519 GB, free: 19.39 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002156/21.22, allocations: 325.4 kB / 5.519 GB, free: 19.38 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004601/21.22, allocations: 0.5509 MB / 5.519 GB, free: 19.38 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001262/21.22, allocations: 1.26 MB / 5.521 GB, free: 18.34 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003251/21.22, allocations: 149.1 kB / 5.521 GB, free: 18.34 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008282/21.23, allocations: 163.8 kB / 5.521 GB, free: 18.34 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 94 * Number of states: 0 () * Number of discrete variables: 5 (traceSubstance.ind,traceSubstance2.ind,traceSubstance3.ind,traceSubstance4.ind,traceSubstance1.ind) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (262): * Single equations (assignments): 255 * Array equations: 0 * Algorithm blocks: 5 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 6,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.00113/21.23, allocations: 246.2 kB / 5.521 GB, free: 18.23 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007934/21.23, allocations: 186 kB / 5.521 GB, free: 18.13 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01058/21.24, allocations: 3.12 MB / 5.524 GB, free: 17.91 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.636e-05/21.24, allocations: 21.78 kB / 5.524 GB, free: 17.91 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.07e-05/21.24, allocations: 0 / 5.524 GB, free: 17.91 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.525e-05/21.24, allocations: 10.08 kB / 5.524 GB, free: 17.91 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0151/21.25, allocations: 4.561 MB / 5.529 GB, free: 17.32 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.718e-05/21.25, allocations: 2.938 kB / 5.529 GB, free: 17.32 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00265/21.26, allocations: 308.1 kB / 5.529 GB, free: 17.32 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004556/21.26, allocations: 0.5573 MB / 5.53 GB, free: 17.3 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000553/21.26, allocations: 61.36 kB / 5.53 GB, free: 17.3 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002056/21.26, allocations: 1.512 MB / 5.531 GB, free: 16.25 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.863e-05/21.26, allocations: 11.25 kB / 5.531 GB, free: 16.25 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007405/21.27, allocations: 2.499 MB / 5.534 GB, free: 15.39 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001226/21.27, allocations: 293.5 kB / 5.534 GB, free: 15.19 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009703/21.27, allocations: 36.88 kB / 5.534 GB, free: 15.19 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003009/21.28, allocations: 111.2 kB / 5.534 GB, free: 15.19 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006018/21.28, allocations: 132.3 kB / 5.534 GB, free: 15.18 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000401/21.28, allocations: 117.3 kB / 5.534 GB, free: 15.18 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.002597/21.28, allocations: 1.026 MB / 5.535 GB, free: 15.07 MB / 0.573 GB Notification: Performance of sort global known variables: time 2.344e-06/21.28, allocations: 0 / 5.535 GB, free: 15.07 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.0149/21.3, allocations: 3.085 MB / 5.538 GB, free: 15.02 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (159): * Single equations (assignments): 156 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 9,1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.02326/21.32, allocations: 8.354 MB / 5.547 GB, free: 12.06 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.0117/21.33, allocations: 3.828 MB / 5.55 GB, free: 27.39 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.699e-05/21.33, allocations: 448 / 5.55 GB, free: 27.39 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.003034/21.33, allocations: 0.9172 MB / 5.551 GB, free: 27.38 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008095/21.34, allocations: 0.856 MB / 5.552 GB, free: 27.35 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01945/21.36, allocations: 4.74 MB / 5.557 GB, free: 26.57 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00168/21.36, allocations: 1.644 MB / 5.558 GB, free: 25.84 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002937/21.37, allocations: 0.8998 MB / 5.559 GB, free: 25.83 MB / 0.5886 GB Notification: Performance of SimCode: time 1.804e-06/21.37, allocations: 0 / 5.559 GB, free: 25.83 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.728/26.09, allocations: 90.8 MB / 5.648 GB, free: 19.67 MB / 0.5886 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Sources.TestSources_res.mat does not exist to compare? outputFormat=mat