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.Shapes.FixedShape.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.Shapes.FixedShape,tolerance=1e-05,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|signalSource.V_m|signalSource.Phi|cuboid.G_m|cuboid.A|hollowCylinderAxialFlux.G_m|hollowCylinderAxialFlux.A|hollowCylinderRadialFlux.G_m|hollowCylinderRadialFlux.A|genericFluxTube.G_m|genericFluxTube.A",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.FluxTubes.Shapes.FixedShape") Notification: Performance of loadModel(ModelicaTest): time 2.413/2.413, allocations: 234.9 MB / 250.5 MB, free: 9.539 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004341/0.0004343, allocations: 12 kB / 314.4 MB, free: 9.539 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2837/0.2841, allocations: 54.86 MB / 369.3 MB, free: 10.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1278/0.412, allocations: 83.32 MB / 452.6 MB, free: 7.273 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002383/0.4123, allocations: 79.91 kB / 452.7 MB, free: 7.195 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03097/0.4433, allocations: 6.551 MB / 459.2 MB, free: 0.6055 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.879e-06/0.4433, allocations: 0 / 459.2 MB, free: 0.6055 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.397e-05/0.4434, allocations: 8 kB / 459.2 MB, free: 0.5977 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: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.002138/0.4456, allocations: 0.5537 MB / 459.8 MB, free: 15.99 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.538e-05/0.4456, allocations: 8.031 kB / 459.8 MB, free: 15.98 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001904/0.4459, allocations: 35.58 kB / 459.8 MB, free: 15.95 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001042/0.4469, allocations: 275 kB / 460.1 MB, free: 15.64 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.417e-05/0.447, allocations: 16.56 kB / 460.1 MB, free: 15.63 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000118/0.4472, allocations: 28 kB / 460.1 MB, free: 15.6 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001404/0.4486, allocations: 248.8 kB / 460.4 MB, free: 15.35 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.398e-05/0.4486, allocations: 0 / 460.4 MB, free: 15.35 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.675e-05/0.4488, allocations: 12 kB / 460.4 MB, free: 15.34 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.048e-05/0.4488, allocations: 4 kB / 460.4 MB, free: 15.34 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001523/0.4503, allocations: 246.1 kB / 460.6 MB, free: 15.09 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004055/0.4544, allocations: 0.8831 MB / 461.5 MB, free: 14.15 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002332/0.4568, allocations: 354.8 kB / 461.9 MB, free: 13.79 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.183e-05/0.457, allocations: 4 kB / 461.9 MB, free: 13.79 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.581e-05/0.457, allocations: 30.56 kB / 461.9 MB, free: 13.75 MB / 394.7 MB Notification: Performance of pre-optimization done (n=31): time 6.913e-06/0.4571, allocations: 4 kB / 461.9 MB, free: 13.74 MB / 394.7 MB Notification: Performance of matching and sorting (n=31): time 0.01156/0.4687, allocations: 1.243 MB / 463.1 MB, free: 12.41 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.526e-05/0.4688, allocations: 55.41 kB / 463.2 MB, free: 12.34 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005856/0.4694, allocations: 192.2 kB / 463.4 MB, free: 12.14 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 7.942e-05/0.4695, allocations: 29.7 kB / 463.4 MB, free: 12.11 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002784/0.4698, allocations: 215.5 kB / 463.6 MB, free: 11.9 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002312/0.4701, allocations: 102.5 kB / 463.7 MB, free: 11.8 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.726e-05/0.4702, allocations: 12 kB / 463.7 MB, free: 11.79 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002734/0.4705, allocations: 318.8 kB / 464.1 MB, free: 11.46 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007142/0.4712, allocations: 99.95 kB / 464.1 MB, free: 11.37 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007512/0.472, allocations: 121.9 kB / 464.3 MB, free: 11.24 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007715/0.4728, allocations: 113.3 kB / 464.4 MB, free: 11.13 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.729e-06/0.4728, allocations: 4 kB / 464.4 MB, free: 11.12 MB / 394.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.00516/0.478, allocations: 0.5532 MB / 464.9 MB, free: 10.55 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.557e-05/0.4781, allocations: 8 kB / 464.9 MB, free: 10.55 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.472e-05/0.4782, allocations: 0 / 464.9 MB, free: 10.55 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004232/0.4824, allocations: 315.1 kB / 465.3 MB, free: 10.23 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004332/0.4829, allocations: 27.98 kB / 465.3 MB, free: 10.2 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0196/0.5025, allocations: 6.404 MB / 471.7 MB, free: 3.258 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000661/0.5033, allocations: 35.67 kB / 471.7 MB, free: 3.223 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.084e-05/0.5034, allocations: 8 kB / 471.7 MB, free: 3.215 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (15): * Single equations (assignments): 11 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 5,1 5,1 5,1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0004541/0.5038, allocations: 145.9 kB / 471.9 MB, free: 3.062 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001777/0.504, allocations: 27.72 kB / 471.9 MB, free: 3.035 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00487/0.5089, allocations: 0.5544 MB / 472.4 MB, free: 2.461 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.656e-05/0.509, allocations: 4 kB / 472.5 MB, free: 2.457 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.143e-06/0.509, allocations: 0 / 472.5 MB, free: 2.457 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.278e-05/0.5091, allocations: 7.938 kB / 472.5 MB, free: 2.449 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001309/0.5104, allocations: 365.2 kB / 472.8 MB, free: 2.043 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.342e-06/0.5104, allocations: 0 / 472.8 MB, free: 2.043 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003399/0.5108, allocations: 23.97 kB / 472.8 MB, free: 2.02 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003943/0.5148, allocations: 315.1 kB / 473.1 MB, free: 1.699 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.653e-05/0.5149, allocations: 8 kB / 473.2 MB, free: 1.691 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2797/0.7947, allocations: 6.342 MB / 479.5 MB, free: 93.44 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.302e-06/0.7947, allocations: 1.344 kB / 479.5 MB, free: 93.44 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002438/0.7971, allocations: 0.6243 MB / 480.1 MB, free: 93.27 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.347e-05/0.7973, allocations: 111.9 kB / 480.2 MB, free: 93.16 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.624e-05/0.7973, allocations: 5.078 kB / 480.2 MB, free: 93.16 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002414/0.7976, allocations: 13.22 kB / 480.3 MB, free: 93.16 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001495/0.7977, allocations: 40.77 kB / 480.3 MB, free: 93.16 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.799e-05/0.7978, allocations: 12.3 kB / 480.3 MB, free: 93.15 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001846/0.798, allocations: 156 kB / 480.5 MB, free: 93.07 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.01e-06/0.798, allocations: 0 / 480.5 MB, free: 93.07 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0006643/0.7987, allocations: 119.5 kB / 480.6 MB, free: 93.07 MB / 394.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 7 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 5,2 4,1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001572/0.7988, allocations: 118.4 kB / 480.7 MB, free: 92.98 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001216/0.8001, allocations: 0.7459 MB / 481.4 MB, free: 92.52 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.43e-06/0.8001, allocations: 0 / 481.4 MB, free: 92.52 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001159/0.8013, allocations: 0.6766 MB / 482.1 MB, free: 92.07 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002951/0.8016, allocations: 18.72 kB / 482.1 MB, free: 92.07 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001158/0.8028, allocations: 0.6597 MB / 482.8 MB, free: 91.7 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000283/0.8031, allocations: 0.7849 MB / 483.6 MB, free: 91.01 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.904e-05/0.8031, allocations: 12.94 kB / 483.6 MB, free: 91 MB / 394.7 MB Notification: Performance of SimCode: time 1.77e-06/0.8031, allocations: 1.375 kB / 483.6 MB, free: 91 MB / 394.7 MB Notification: Performance of Templates: time 0.01105/0.8142, allocations: 7.634 MB / 491.2 MB, free: 89.48 MB / 394.7 MB