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.192/2.192, allocations: 234.9 MB / 250.5 MB, free: 9.547 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004234/0.0004235, allocations: 8 kB / 314.4 MB, free: 9.555 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.27/0.2704, allocations: 54.86 MB / 369.3 MB, free: 10.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1231/0.3936, allocations: 82.94 MB / 452.2 MB, free: 7.676 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002128/0.3939, allocations: 67.91 kB / 452.3 MB, free: 7.609 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02736/0.4213, allocations: 6.888 MB / 459.2 MB, free: 0.6914 MB / 378.7 MB Notification: Performance of FrontEnd: time 5.204e-06/0.4213, allocations: 3.984 kB / 459.2 MB, free: 0.6875 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.593e-05/0.4213, allocations: 8 kB / 459.2 MB, free: 0.6797 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.001177/0.4225, allocations: 0.6082 MB / 459.8 MB, free: 20 kB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.935e-05/0.4226, allocations: 12.03 kB / 459.8 MB, free: 8 kB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001199/0.4227, allocations: 43.39 kB / 459.8 MB, free: 15.96 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004481/0.4232, allocations: 272.5 kB / 460.1 MB, free: 15.66 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.76e-05/0.4232, allocations: 32.98 kB / 460.1 MB, free: 15.62 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.457e-05/0.4233, allocations: 32 kB / 460.2 MB, free: 15.59 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008712/0.4242, allocations: 358.7 kB / 460.5 MB, free: 15.22 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.807e-05/0.4242, allocations: 3.938 kB / 460.5 MB, free: 15.21 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.59e-05/0.4243, allocations: 19.95 kB / 460.5 MB, free: 15.2 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.254e-05/0.4243, allocations: 12 kB / 460.6 MB, free: 15.18 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008573/0.4252, allocations: 287 kB / 460.8 MB, free: 14.91 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002577/0.4278, allocations: 1.286 MB / 462.1 MB, free: 13.54 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006183/0.4284, allocations: 203.2 kB / 462.3 MB, free: 13.3 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.251e-05/0.4285, allocations: 4.062 kB / 462.3 MB, free: 13.3 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.14e-05/0.4285, allocations: 46.66 kB / 462.4 MB, free: 13.24 MB / 394.7 MB Notification: Performance of pre-optimization done (n=15): time 4.832e-06/0.4286, allocations: 0 / 462.4 MB, free: 13.24 MB / 394.7 MB Notification: Performance of matching and sorting (n=15): time 0.00104/0.4296, allocations: 281.3 kB / 462.6 MB, free: 12.96 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.108e-05/0.4297, allocations: 132.5 kB / 462.8 MB, free: 12.8 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004426/0.4302, allocations: 295.6 kB / 463.1 MB, free: 12.5 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.792e-05/0.4302, allocations: 29.7 kB / 463.1 MB, free: 12.47 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002153/0.4304, allocations: 286.2 kB / 463.4 MB, free: 12.19 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.503e-05/0.4305, allocations: 63.12 kB / 463.4 MB, free: 12.12 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.71e-05/0.4305, allocations: 4 kB / 463.4 MB, free: 12.12 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001651/0.4307, allocations: 326.8 kB / 463.8 MB, free: 11.79 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000311/0.431, allocations: 80.5 kB / 463.8 MB, free: 11.71 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003744/0.4314, allocations: 184.2 kB / 464 MB, free: 11.49 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000364/0.4318, allocations: 107.9 kB / 464.1 MB, free: 11.39 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.483e-06/0.4318, allocations: 4 kB / 464.1 MB, free: 11.38 MB / 394.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0008847/0.4327, allocations: 301.2 kB / 464.4 MB, free: 11.08 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.332e-05/0.4328, allocations: 8 kB / 464.4 MB, free: 11.07 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.35e-06/0.4328, allocations: 256 / 464.4 MB, free: 11.07 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.573e-05/0.4328, allocations: 12 kB / 464.4 MB, free: 11.06 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004304/0.4333, allocations: 75.89 kB / 464.5 MB, free: 10.99 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.557e-05/0.4333, allocations: 7.938 kB / 464.5 MB, free: 10.98 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003658/0.4337, allocations: 55.5 kB / 464.6 MB, free: 10.93 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.329e-05/0.4337, allocations: 16 kB / 464.6 MB, free: 10.91 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.0002253/0.434, allocations: 153.7 kB / 464.7 MB, free: 10.75 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001498/0.4341, allocations: 31.62 kB / 464.8 MB, free: 10.72 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.749e-05/0.4342, allocations: 30.41 kB / 464.8 MB, free: 10.68 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.34e-05/0.4343, allocations: 4 kB / 464.8 MB, free: 10.68 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.099e-06/0.4343, allocations: 0 / 464.8 MB, free: 10.68 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.861e-06/0.4343, allocations: 0 / 464.8 MB, free: 10.68 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001109/0.4354, allocations: 0.5954 MB / 465.4 MB, free: 10.01 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.382e-06/0.4354, allocations: 0 / 465.4 MB, free: 10.01 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002748/0.4357, allocations: 47.89 kB / 465.4 MB, free: 9.961 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.949e-06/0.4357, allocations: 4 kB / 465.4 MB, free: 9.957 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.058e-05/0.4358, allocations: 8.562 kB / 465.5 MB, free: 9.949 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.439e-06/0.4358, allocations: 4.156 kB / 465.5 MB, free: 9.945 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.362e-06/0.4358, allocations: 7.953 kB / 465.5 MB, free: 9.938 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007965/0.4366, allocations: 484.9 kB / 465.9 MB, free: 9.395 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001292/0.4368, allocations: 112.7 kB / 466 MB, free: 9.266 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.692e-05/0.4368, allocations: 0 / 466 MB, free: 9.266 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000319/0.4371, allocations: 31.97 kB / 466.1 MB, free: 9.234 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.834e-05/0.4372, allocations: 11.94 kB / 466.1 MB, free: 9.223 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.204e-05/0.4373, allocations: 12 kB / 466.1 MB, free: 9.211 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.000333/0.4376, allocations: 227 kB / 466.3 MB, free: 8.992 MB / 394.7 MB Notification: Performance of sort global known variables: time 6.73e-07/0.4376, allocations: 0 / 466.3 MB, free: 8.992 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0005553/0.4382, allocations: 67.84 kB / 466.4 MB, free: 8.926 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.0001644/0.4384, allocations: 115.2 kB / 466.5 MB, free: 8.801 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0007039/0.4391, allocations: 211.8 kB / 466.7 MB, free: 8.594 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.44e-06/0.4391, allocations: 0 / 466.7 MB, free: 8.594 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000311/0.4394, allocations: 88.58 kB / 466.8 MB, free: 8.508 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003802/0.4398, allocations: 29.3 kB / 466.8 MB, free: 8.48 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001344/0.4412, allocations: 0.6839 MB / 467.5 MB, free: 7.75 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004887/0.4417, allocations: 0.78 MB / 468.3 MB, free: 6.945 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000102/0.4418, allocations: 19.44 kB / 468.3 MB, free: 6.926 MB / 394.7 MB Notification: Performance of SimCode: time 1.557e-06/0.4418, allocations: 0 / 468.3 MB, free: 6.926 MB / 394.7 MB Notification: Performance of Templates: time 0.006597/0.4484, allocations: 3.088 MB / 471.4 MB, free: 3.836 MB / 394.7 MB