Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.FluxTubes.Sources.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.FluxTubes.Sources,tolerance=1e-05,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|constantSource.V_m|constantSource.Phi|signalSource.V_m|signalSource.Phi|constantSource1.Phi|constantSource1.V_m|signalSource1.Phi|signalSource1.V_m",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.FluxTubes.Sources") Notification: Performance of loadModel(ModelicaTest): time 2.105/2.105, allocations: 235 MB / 248.1 MB, free: 14.56 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.748e-05/2.763e-05, allocations: 4 kB / 309.7 MB, free: 1.543 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3227/0.3227, allocations: 54.85 MB / 364.5 MB, free: 5.531 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1226/0.4454, allocations: 82.86 MB / 447.4 MB, free: 13.65 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001961/0.4456, allocations: 63.97 kB / 447.5 MB, free: 13.59 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02802/0.4736, allocations: 6.876 MB / 454.3 MB, free: 6.723 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.264e-06/0.4737, allocations: 0 / 454.3 MB, free: 6.723 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.857e-05/0.4737, allocations: 8 kB / 454.3 MB, free: 6.715 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: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.001153/0.4749, allocations: 0.5846 MB / 454.9 MB, free: 6.086 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.866e-05/0.4749, allocations: 8.031 kB / 454.9 MB, free: 6.078 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001038/0.4751, allocations: 55.42 kB / 455 MB, free: 6.023 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000451/0.4755, allocations: 268.3 kB / 455.2 MB, free: 5.719 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.674e-05/0.4756, allocations: 24.78 kB / 455.3 MB, free: 5.691 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.531e-05/0.4757, allocations: 32 kB / 455.3 MB, free: 5.66 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007064/0.4764, allocations: 323.8 kB / 455.6 MB, free: 5.32 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.484e-05/0.4764, allocations: 0 / 455.6 MB, free: 5.32 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.476e-05/0.4765, allocations: 19.95 kB / 455.6 MB, free: 5.301 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.308e-05/0.4765, allocations: 12 kB / 455.7 MB, free: 5.289 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005575/0.4771, allocations: 213 kB / 455.9 MB, free: 5.082 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002559/0.4796, allocations: 1.292 MB / 457.1 MB, free: 3.707 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004537/0.4801, allocations: 166.5 kB / 457.3 MB, free: 3.508 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001357/0.4803, allocations: 59.56 kB / 457.4 MB, free: 3.438 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.254e-05/0.4803, allocations: 8 kB / 457.4 MB, free: 3.43 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.105e-05/0.4804, allocations: 34.59 kB / 457.4 MB, free: 3.387 MB / 378.7 MB Notification: Performance of pre-optimization done (n=15): time 5.193e-06/0.4804, allocations: 3.984 kB / 457.4 MB, free: 3.383 MB / 378.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004795/0.4809, allocations: 145.2 kB / 457.6 MB, free: 3.234 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.487e-05/0.481, allocations: 136.5 kB / 457.7 MB, free: 3.07 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004338/0.4814, allocations: 282.8 kB / 458 MB, free: 2.785 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.669e-05/0.4815, allocations: 25.7 kB / 458 MB, free: 2.754 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002122/0.4817, allocations: 293.8 kB / 458.3 MB, free: 2.465 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.153e-05/0.4818, allocations: 54.45 kB / 458.3 MB, free: 2.414 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.755e-05/0.4818, allocations: 4 kB / 458.3 MB, free: 2.41 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001621/0.482, allocations: 326.8 kB / 458.7 MB, free: 2.082 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001629/0.4821, allocations: 52.56 kB / 458.7 MB, free: 2.027 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000236/0.4824, allocations: 148.2 kB / 458.9 MB, free: 1.844 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002102/0.4826, allocations: 71.97 kB / 458.9 MB, free: 1.773 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.034e-06/0.4826, allocations: 0 / 458.9 MB, free: 1.773 MB / 378.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.000585/0.4832, allocations: 241.4 kB / 459.2 MB, free: 1.531 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.071e-05/0.4833, allocations: 8 kB / 459.2 MB, free: 1.523 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.161e-05/0.4833, allocations: 7.938 kB / 459.2 MB, free: 1.516 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.028e-05/0.4833, allocations: 4 kB / 459.2 MB, free: 1.512 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004575/0.4838, allocations: 79.83 kB / 459.3 MB, free: 1.434 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.54e-05/0.4838, allocations: 7.984 kB / 459.3 MB, free: 1.426 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003561/0.4842, allocations: 59.58 kB / 459.3 MB, free: 1.367 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.931e-05/0.4842, allocations: 8 kB / 459.3 MB, free: 1.359 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * 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.0001231/0.4844, allocations: 128.8 kB / 459.5 MB, free: 1.227 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001494/0.4845, allocations: 27.91 kB / 459.5 MB, free: 1.199 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.823e-05/0.4846, allocations: 30.41 kB / 459.5 MB, free: 1.16 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.029e-05/0.4846, allocations: 7.984 kB / 459.5 MB, free: 1.152 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.731e-06/0.4847, allocations: 4 kB / 459.5 MB, free: 1.148 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.016e-06/0.4847, allocations: 0 / 459.5 MB, free: 1.148 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001133/0.4858, allocations: 0.5953 MB / 460.1 MB, free: 492 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.757e-06/0.4858, allocations: 0 / 460.1 MB, free: 492 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002723/0.4861, allocations: 47.91 kB / 460.2 MB, free: 444 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.45e-06/0.4861, allocations: 4.156 kB / 460.2 MB, free: 440 kB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.181e-05/0.4862, allocations: 8 kB / 460.2 MB, free: 432 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.603e-06/0.4862, allocations: 0 / 460.2 MB, free: 432 kB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.962e-06/0.4862, allocations: 7.953 kB / 460.2 MB, free: 424 kB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005169/0.4867, allocations: 413 kB / 460.6 MB, free: 15.94 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001138/0.4869, allocations: 104.7 kB / 460.7 MB, free: 15.82 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.187e-05/0.4869, allocations: 8 kB / 460.7 MB, free: 15.81 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003204/0.4873, allocations: 23.97 kB / 460.7 MB, free: 15.79 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.252e-05/0.4874, allocations: 23.88 kB / 460.7 MB, free: 15.77 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.709e-05/0.4874, allocations: 4 kB / 460.7 MB, free: 15.76 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0003208/0.4877, allocations: 222.2 kB / 461 MB, free: 15.55 MB / 394.7 MB Notification: Performance of sort global known variables: time 8.26e-07/0.4877, allocations: 0 / 461 MB, free: 15.55 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0005513/0.4883, allocations: 83.69 kB / 461 MB, free: 15.46 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * 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.0001533/0.4885, allocations: 103.2 kB / 461.1 MB, free: 15.36 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0003978/0.4889, allocations: 137.3 kB / 461.3 MB, free: 15.22 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.472e-06/0.4889, allocations: 0.5 kB / 461.3 MB, free: 15.22 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001654/0.4891, allocations: 63.88 kB / 461.3 MB, free: 15.16 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000347/0.4894, allocations: 25.2 kB / 461.4 MB, free: 15.14 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009386/0.4904, allocations: 379.8 kB / 461.7 MB, free: 14.73 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005033/0.4909, allocations: 0.7801 MB / 462.5 MB, free: 13.92 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001021/0.491, allocations: 27.42 kB / 462.5 MB, free: 13.89 MB / 394.7 MB Notification: Performance of SimCode: time 1.589e-06/0.491, allocations: 0 / 462.5 MB, free: 13.89 MB / 394.7 MB Notification: Performance of Templates: time 0.006421/0.4975, allocations: 3.091 MB / 465.6 MB, free: 10.8 MB / 394.7 MB