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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.097/2.097, allocations: 235.1 MB / 243 MB, free: 9.582 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.575e-05/1.586e-05, allocations: 4 kB / 303.2 MB, free: 13.29 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.316/0.3161, allocations: 54.86 MB / 358 MB, free: 14.94 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1448/0.4609, allocations: 82.18 MB / 440.2 MB, free: 12.64 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002282/0.4612, allocations: 59.97 kB / 440.3 MB, free: 12.58 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02746/0.4887, allocations: 6.821 MB / 447.1 MB, free: 5.73 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.083e-06/0.4887, allocations: 0 / 447.1 MB, free: 5.73 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.908e-05/0.4888, allocations: 8 kB / 447.1 MB, free: 5.723 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.001201/0.49, allocations: 0.5841 MB / 447.7 MB, free: 5.094 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.275e-05/0.49, allocations: 8.031 kB / 447.7 MB, free: 5.086 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001056/0.4901, allocations: 47.48 kB / 447.7 MB, free: 5.039 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000463/0.4906, allocations: 268.3 kB / 448 MB, free: 4.734 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.642e-05/0.4907, allocations: 12 kB / 448 MB, free: 4.723 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.367e-05/0.4907, allocations: 23.98 kB / 448 MB, free: 4.699 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000548/0.4913, allocations: 193.5 kB / 448.2 MB, free: 4.508 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006227/0.4919, allocations: 266.4 kB / 448.5 MB, free: 4.227 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.775e-05/0.492, allocations: 3.953 kB / 448.5 MB, free: 4.223 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.215e-05/0.492, allocations: 4 kB / 448.5 MB, free: 4.219 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.66e-05/0.492, allocations: 8 kB / 448.5 MB, free: 4.211 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002463/0.4945, allocations: 1.216 MB / 449.7 MB, free: 2.918 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004181/0.495, allocations: 158.7 kB / 449.9 MB, free: 2.727 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001158/0.4951, allocations: 51.55 kB / 449.9 MB, free: 2.664 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.552e-05/0.4951, allocations: 15.94 kB / 449.9 MB, free: 2.648 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.317e-05/0.4952, allocations: 46.53 kB / 450 MB, free: 2.594 MB / 378.7 MB Notification: Performance of pre-optimization done (n=15): time 3.133e-06/0.4952, allocations: 0 / 450 MB, free: 2.594 MB / 378.7 MB Notification: Performance of matching and sorting (n=15): time 0.000449/0.4957, allocations: 121.2 kB / 450.1 MB, free: 2.469 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.099e-05/0.4958, allocations: 136.5 kB / 450.2 MB, free: 2.305 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003323/0.4961, allocations: 238.3 kB / 450.5 MB, free: 2.066 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.93e-05/0.4962, allocations: 25.7 kB / 450.5 MB, free: 2.035 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002292/0.4964, allocations: 302 kB / 450.8 MB, free: 1.738 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.638e-05/0.4965, allocations: 43.36 kB / 450.8 MB, free: 1.695 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.439e-05/0.4965, allocations: 0 / 450.8 MB, free: 1.695 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001674/0.4967, allocations: 326.8 kB / 451.2 MB, free: 1.367 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001421/0.4968, allocations: 44.56 kB / 451.2 MB, free: 1.32 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002179/0.4971, allocations: 132.7 kB / 451.3 MB, free: 1.152 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001863/0.4973, allocations: 71.91 kB / 451.4 MB, free: 1.082 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.843e-06/0.4973, allocations: 3.938 kB / 451.4 MB, free: 1.078 MB / 378.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.000514/0.4978, allocations: 201.3 kB / 451.6 MB, free: 0.875 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.832e-05/0.4978, allocations: 4 kB / 451.6 MB, free: 0.8711 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.399e-05/0.4979, allocations: 8.203 kB / 451.6 MB, free: 0.8633 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.978e-05/0.4979, allocations: 8 kB / 451.6 MB, free: 0.8555 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004419/0.4983, allocations: 79.89 kB / 451.7 MB, free: 0.7773 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.471e-05/0.4984, allocations: 7.938 kB / 451.7 MB, free: 0.7695 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003324/0.4987, allocations: 43.66 kB / 451.7 MB, free: 0.7266 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.658e-05/0.4988, allocations: 16.19 kB / 451.8 MB, free: 0.7109 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.0001143/0.4989, allocations: 115.1 kB / 451.9 MB, free: 0.5938 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001414/0.499, allocations: 23.72 kB / 451.9 MB, free: 0.5703 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.132e-05/0.4991, allocations: 33.64 kB / 451.9 MB, free: 0.5352 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.154e-06/0.4992, allocations: 7.953 kB / 451.9 MB, free: 0.5273 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.483e-06/0.4992, allocations: 0 / 451.9 MB, free: 0.5273 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.036e-06/0.4992, allocations: 0 / 451.9 MB, free: 0.5273 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00102/0.5002, allocations: 0.5298 MB / 452.5 MB, free: 15.93 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.145e-05/0.5002, allocations: 7.953 kB / 452.5 MB, free: 15.93 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002624/0.5005, allocations: 40.11 kB / 452.5 MB, free: 15.89 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.181e-05/0.5006, allocations: 4 kB / 452.5 MB, free: 15.88 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.762e-05/0.5006, allocations: 3.984 kB / 452.5 MB, free: 15.88 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.822e-06/0.5006, allocations: 8.156 kB / 452.5 MB, free: 15.87 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.258e-06/0.5006, allocations: 7.938 kB / 452.5 MB, free: 15.86 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004715/0.5011, allocations: 408.8 kB / 452.9 MB, free: 15.4 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.985e-05/0.5012, allocations: 104.7 kB / 453 MB, free: 15.28 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.313e-05/0.5013, allocations: 4 kB / 453 MB, free: 15.27 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003186/0.5016, allocations: 23.97 kB / 453.1 MB, free: 15.25 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.312e-05/0.5017, allocations: 19.92 kB / 453.1 MB, free: 15.23 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.594e-05/0.5017, allocations: 4 kB / 453.1 MB, free: 15.23 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0002342/0.502, allocations: 174 kB / 453.3 MB, free: 15.06 MB / 394.7 MB Notification: Performance of sort global known variables: time 7.89e-07/0.502, allocations: 0 / 453.3 MB, free: 15.06 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0005484/0.5025, allocations: 71.69 kB / 453.3 MB, free: 14.99 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.000162/0.5027, allocations: 111.2 kB / 453.4 MB, free: 14.87 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0003768/0.5031, allocations: 127.8 kB / 453.6 MB, free: 14.75 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.213e-06/0.5031, allocations: 0 / 453.6 MB, free: 14.75 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001512/0.5033, allocations: 55.92 kB / 453.6 MB, free: 14.69 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003318/0.5036, allocations: 13.66 kB / 453.6 MB, free: 14.68 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009376/0.5046, allocations: 376.7 kB / 454 MB, free: 14.26 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005078/0.5051, allocations: 0.7791 MB / 454.8 MB, free: 13.46 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.723e-05/0.5052, allocations: 27.38 kB / 454.8 MB, free: 13.43 MB / 394.7 MB Notification: Performance of SimCode: time 1.67e-06/0.5052, allocations: 4 kB / 454.8 MB, free: 13.43 MB / 394.7 MB Notification: Performance of Templates: time 0.006382/0.5116, allocations: 2.917 MB / 457.7 MB, free: 10.52 MB / 394.7 MB