Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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.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.408/2.408, allocations: 234.9 MB / 251.1 MB, free: 9.555 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004264/0.0004267, allocations: 8 kB / 314.9 MB, free: 9.617 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3457/0.3462, allocations: 54.87 MB / 369.8 MB, free: 10.74 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1444/0.4906, allocations: 82.92 MB / 452.7 MB, free: 7.707 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002598/0.4909, allocations: 75.91 kB / 452.8 MB, free: 7.633 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03187/0.5228, allocations: 6.888 MB / 459.7 MB, free: 0.7148 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.265e-06/0.5229, allocations: 0 / 459.7 MB, free: 0.7148 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.471e-05/0.5229, allocations: 4 kB / 459.7 MB, free: 0.7109 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.001811/0.5247, allocations: 0.6121 MB / 460.3 MB, free: 48 kB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.835e-05/0.5248, allocations: 8.031 kB / 460.3 MB, free: 40 kB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002039/0.525, allocations: 51.38 kB / 460.4 MB, free: 15.99 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005827/0.5256, allocations: 276.5 kB / 460.6 MB, free: 15.68 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.955e-05/0.5257, allocations: 25 kB / 460.6 MB, free: 15.65 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.099e-05/0.5257, allocations: 32 kB / 460.7 MB, free: 15.62 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001194/0.527, allocations: 374.6 kB / 461 MB, free: 15.23 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.087e-05/0.527, allocations: 0 / 461 MB, free: 15.23 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.925e-05/0.5271, allocations: 15.95 kB / 461.1 MB, free: 15.21 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.604e-05/0.5271, allocations: 8 kB / 461.1 MB, free: 15.21 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001247/0.5284, allocations: 288.9 kB / 461.3 MB, free: 14.93 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003238/0.5316, allocations: 1.29 MB / 462.6 MB, free: 13.55 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000853/0.5326, allocations: 203.2 kB / 462.8 MB, free: 13.32 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.099e-05/0.5326, allocations: 4.062 kB / 462.8 MB, free: 13.31 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.399e-05/0.5327, allocations: 46.62 kB / 462.9 MB, free: 13.26 MB / 394.7 MB Notification: Performance of pre-optimization done (n=15): time 2.875e-06/0.5327, allocations: 0 / 462.9 MB, free: 13.26 MB / 394.7 MB Notification: Performance of matching and sorting (n=15): time 0.001376/0.5341, allocations: 277.5 kB / 463.2 MB, free: 12.98 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.485e-05/0.5342, allocations: 132.5 kB / 463.3 MB, free: 12.82 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006299/0.5348, allocations: 332.5 kB / 463.6 MB, free: 12.48 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.008e-05/0.5349, allocations: 29.7 kB / 463.6 MB, free: 12.45 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002104/0.5351, allocations: 278.1 kB / 463.9 MB, free: 12.18 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.237e-05/0.5352, allocations: 59.14 kB / 464 MB, free: 12.12 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.301e-05/0.5352, allocations: 8 kB / 464 MB, free: 12.11 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001318/0.5354, allocations: 322.8 kB / 464.3 MB, free: 11.79 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004763/0.5359, allocations: 92.5 kB / 464.4 MB, free: 11.69 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005144/0.5364, allocations: 180.1 kB / 464.6 MB, free: 11.48 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004993/0.5369, allocations: 116.1 kB / 464.7 MB, free: 11.36 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.428e-06/0.537, allocations: 4 kB / 464.7 MB, free: 11.36 MB / 394.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.001194/0.5382, allocations: 309.3 kB / 465 MB, free: 11.05 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.74e-05/0.5382, allocations: 4 kB / 465 MB, free: 11.05 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.096e-05/0.5383, allocations: 4 kB / 465 MB, free: 11.04 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.892e-05/0.5383, allocations: 8 kB / 465 MB, free: 11.04 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000657/0.539, allocations: 79.89 kB / 465.1 MB, free: 10.96 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.754e-05/0.539, allocations: 4 kB / 465.1 MB, free: 10.95 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005445/0.5396, allocations: 55.58 kB / 465.1 MB, free: 10.9 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.208e-05/0.5396, allocations: 15.98 kB / 465.1 MB, free: 10.88 MB / 394.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 () * Number of clocked 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.0002815/0.5399, allocations: 145.7 kB / 465.3 MB, free: 10.73 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001508/0.5401, allocations: 31.62 kB / 465.3 MB, free: 10.7 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001091/0.5402, allocations: 34.41 kB / 465.4 MB, free: 10.66 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.855e-06/0.5402, allocations: 4 kB / 465.4 MB, free: 10.66 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.385e-06/0.5402, allocations: 0 / 465.4 MB, free: 10.66 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.54e-06/0.5403, allocations: 288 / 465.4 MB, free: 10.66 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001232/0.5415, allocations: 0.5915 MB / 465.9 MB, free: 9.992 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.959e-06/0.5415, allocations: 0 / 465.9 MB, free: 9.992 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003898/0.5419, allocations: 52.06 kB / 466 MB, free: 9.941 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.346e-05/0.542, allocations: 7.984 kB / 466 MB, free: 9.934 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.317e-05/0.542, allocations: 7.984 kB / 466 MB, free: 9.926 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.424e-06/0.542, allocations: 3.953 kB / 466 MB, free: 9.922 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.781e-06/0.542, allocations: 4 kB / 466 MB, free: 9.918 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009924/0.543, allocations: 412.4 kB / 466.4 MB, free: 9.484 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001715/0.5432, allocations: 112.7 kB / 466.5 MB, free: 9.355 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.734e-05/0.5433, allocations: 4 kB / 466.5 MB, free: 9.352 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004068/0.5437, allocations: 19.98 kB / 466.6 MB, free: 9.332 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.087e-05/0.5438, allocations: 31.86 kB / 466.6 MB, free: 9.301 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.54e-05/0.5439, allocations: 4 kB / 466.6 MB, free: 9.297 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0003855/0.5443, allocations: 231 kB / 466.8 MB, free: 9.074 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.5443, allocations: 0 / 466.8 MB, free: 9.074 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0005826/0.5449, allocations: 67.84 kB / 466.9 MB, free: 9.008 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 () * Number of clocked 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.0001763/0.5451, allocations: 107.2 kB / 467 MB, free: 8.895 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0009948/0.5461, allocations: 220.1 kB / 467.2 MB, free: 8.68 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.5461, allocations: 0 / 467.2 MB, free: 8.68 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004304/0.5466, allocations: 96.39 kB / 467.3 MB, free: 8.586 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004464/0.547, allocations: 23.41 kB / 467.3 MB, free: 8.566 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001573/0.5486, allocations: 0.6839 MB / 468 MB, free: 7.828 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004904/0.5492, allocations: 0.78 MB / 468.8 MB, free: 7.023 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001559/0.5493, allocations: 23.42 kB / 468.8 MB, free: 7 MB / 394.7 MB Notification: Performance of SimCode: time 9.82e-07/0.5493, allocations: 4 kB / 468.8 MB, free: 6.996 MB / 394.7 MB Notification: Performance of Templates: time 0.008547/0.5579, allocations: 3.088 MB / 471.9 MB, free: 3.914 MB / 394.7 MB