Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Utilities.TestInternal.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: translateModel(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Utilities.TestInternal") Notification: Performance of loadModel(ModelicaTest): time 2.422/2.422, allocations: 234.9 MB / 251.1 MB, free: 9.48 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004417/0.000442, allocations: 16 kB / 314.9 MB, free: 9.535 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.363/0.3634, allocations: 54.86 MB / 369.8 MB, free: 10.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1454/0.5089, allocations: 79.78 MB / 449.6 MB, free: 10.83 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002516/0.5092, allocations: 67.95 kB / 449.6 MB, free: 10.76 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008242/0.5174, allocations: 1.666 MB / 451.3 MB, free: 9.094 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.875e-06/0.5175, allocations: 4 kB / 451.3 MB, free: 9.09 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.919e-06/0.5175, allocations: 0 / 451.3 MB, free: 9.09 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0004406/0.518, allocations: 356 kB / 451.7 MB, free: 8.691 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.132e-05/0.5181, allocations: 11.97 kB / 451.7 MB, free: 8.68 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.607e-05/0.5181, allocations: 7.953 kB / 451.7 MB, free: 8.672 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001797/0.5183, allocations: 163.1 kB / 451.8 MB, free: 8.473 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.14e-05/0.5184, allocations: 0 / 451.8 MB, free: 8.473 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.805e-05/0.5184, allocations: 0 / 451.8 MB, free: 8.473 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001294/0.5186, allocations: 33.69 kB / 451.9 MB, free: 8.434 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.198e-05/0.5186, allocations: 4 kB / 451.9 MB, free: 8.43 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.455e-05/0.5186, allocations: 0 / 451.9 MB, free: 8.43 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.313e-06/0.5186, allocations: 0 / 451.9 MB, free: 8.43 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.246e-05/0.5187, allocations: 7.891 kB / 451.9 MB, free: 8.422 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000219/0.5189, allocations: 145.7 kB / 452 MB, free: 8.23 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.071e-05/0.519, allocations: 14.58 kB / 452 MB, free: 8.207 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.258e-05/0.519, allocations: 3.984 kB / 452 MB, free: 8.203 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.607e-05/0.5191, allocations: 64.27 kB / 452.1 MB, free: 8.125 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 1.823e-06/0.5191, allocations: 4.094 kB / 452.1 MB, free: 8.121 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002041/0.5193, allocations: 59.34 kB / 452.2 MB, free: 8.051 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.737e-05/0.5194, allocations: 81.11 kB / 452.2 MB, free: 7.953 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.926e-05/0.5195, allocations: 93.77 kB / 452.3 MB, free: 7.852 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.788e-05/0.5195, allocations: 29.69 kB / 452.4 MB, free: 7.816 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.577e-05/0.5196, allocations: 150.6 kB / 452.5 MB, free: 7.668 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.947e-05/0.5196, allocations: 7.984 kB / 452.5 MB, free: 7.66 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.098e-06/0.5196, allocations: 128 / 452.5 MB, free: 7.66 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000169/0.5198, allocations: 318.8 kB / 452.8 MB, free: 7.34 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.274e-05/0.5198, allocations: 4 kB / 452.8 MB, free: 7.336 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.191e-05/0.5199, allocations: 3.938 kB / 452.8 MB, free: 7.332 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.953e-05/0.5199, allocations: 25.7 kB / 452.9 MB, free: 7.301 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.5199, allocations: 0 / 452.9 MB, free: 7.301 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001494/0.5201, allocations: 63.34 kB / 452.9 MB, free: 7.227 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.219e-05/0.5202, allocations: 33.69 kB / 453 MB, free: 7.188 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.011e-05/0.5202, allocations: 4 kB / 453 MB, free: 7.184 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.091e-05/0.5202, allocations: 4.094 kB / 453 MB, free: 7.18 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.325e-06/0.5202, allocations: 0 / 453 MB, free: 7.18 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.045e-06/0.5203, allocations: 0 / 453 MB, free: 7.18 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.087e-05/0.5203, allocations: 0 / 453 MB, free: 7.18 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.077e-05/0.5203, allocations: 0 / 453 MB, free: 7.18 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001553/0.5205, allocations: 143.5 kB / 453.1 MB, free: 7.023 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.399e-05/0.5205, allocations: 0 / 453.1 MB, free: 7.023 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.703e-05/0.5206, allocations: 3.125 kB / 453.1 MB, free: 7.02 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.374e-06/0.5206, allocations: 3.984 kB / 453.1 MB, free: 7.016 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.132e-06/0.5206, allocations: 4 kB / 453.1 MB, free: 7.012 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.649e-06/0.5206, allocations: 0 / 453.1 MB, free: 7.012 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001683/0.5208, allocations: 149.6 kB / 453.3 MB, free: 6.816 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.275e-06/0.5208, allocations: 3.938 kB / 453.3 MB, free: 6.812 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.573e-06/0.5208, allocations: 0 / 453.3 MB, free: 6.812 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.6e-06/0.5209, allocations: 4 kB / 453.3 MB, free: 6.809 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.092e-05/0.5209, allocations: 0 / 453.3 MB, free: 6.809 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.805e-06/0.5209, allocations: 0 / 453.3 MB, free: 6.809 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.96e-06/0.5209, allocations: 7.984 kB / 453.3 MB, free: 6.801 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001901/0.5211, allocations: 94.73 kB / 453.4 MB, free: 6.684 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.911e-05/0.5212, allocations: 81.09 kB / 453.5 MB, free: 6.586 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.684e-05/0.5212, allocations: 7.984 kB / 453.5 MB, free: 6.578 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.161e-05/0.5213, allocations: 0 / 453.5 MB, free: 6.578 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.185e-05/0.5213, allocations: 0 / 453.5 MB, free: 6.578 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.843e-06/0.5213, allocations: 0 / 453.5 MB, free: 6.578 MB / 378.7 MB Notification: Performance of sorting global known variables: time 4.016e-05/0.5214, allocations: 75.28 kB / 453.5 MB, free: 6.504 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.61e-07/0.5214, allocations: 0 / 453.5 MB, free: 6.504 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000492/0.5219, allocations: 32 kB / 453.6 MB, free: 6.473 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001114/0.523, allocations: 273.1 kB / 453.8 MB, free: 6.254 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001707/0.5232, allocations: 67.39 kB / 453.9 MB, free: 6.176 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.083e-06/0.5233, allocations: 4.062 kB / 453.9 MB, free: 6.172 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 6.451e-05/0.5233, allocations: 55.34 kB / 454 MB, free: 6.105 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001629/0.5235, allocations: 7.953 kB / 454 MB, free: 6.098 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002818/0.5238, allocations: 96.47 kB / 454.1 MB, free: 5.969 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003922/0.5242, allocations: 0.677 MB / 454.7 MB, free: 5.266 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.875e-05/0.5243, allocations: 7.438 kB / 454.7 MB, free: 5.258 MB / 378.7 MB Notification: Performance of SimCode: time 1.203e-06/0.5243, allocations: 3.938 kB / 454.7 MB, free: 5.254 MB / 378.7 MB Notification: Performance of Templates: time 0.004521/0.5288, allocations: 0.9771 MB / 455.7 MB, free: 4.277 MB / 378.7 MB