Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.FluxTubes.Shapes.FixedShape,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_FluxTubes_Shapes_FixedShape",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.307/2.307, allocations: 235.1 MB / 243 MB, free: 9.578 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.674e-05/2.667e-05, allocations: 4 kB / 303.3 MB, free: 13.19 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4703/0.4703, allocations: 54.85 MB / 358.1 MB, free: 14.85 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1509/0.6214, allocations: 82.56 MB / 440.7 MB, free: 12.17 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002843/0.6217, allocations: 67.97 kB / 440.8 MB, free: 12.11 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0304/0.6521, allocations: 6.498 MB / 447.3 MB, free: 5.574 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.834e-06/0.6522, allocations: 0 / 447.3 MB, free: 5.574 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.387e-05/0.6522, allocations: 8 kB / 447.3 MB, free: 5.566 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.001294/0.6535, allocations: 0.5225 MB / 447.8 MB, free: 5 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.459e-05/0.6536, allocations: 16.02 kB / 447.8 MB, free: 4.984 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001043/0.6537, allocations: 39.52 kB / 447.8 MB, free: 4.945 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006597/0.6544, allocations: 279 kB / 448.1 MB, free: 4.633 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.206e-05/0.6544, allocations: 8 kB / 448.1 MB, free: 4.625 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.15e-05/0.6545, allocations: 12 kB / 448.1 MB, free: 4.613 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006283/0.6551, allocations: 189.1 kB / 448.3 MB, free: 4.43 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005388/0.6557, allocations: 191.7 kB / 448.5 MB, free: 4.238 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.489e-05/0.6557, allocations: 4 kB / 448.5 MB, free: 4.234 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.152e-05/0.6557, allocations: 0 / 448.5 MB, free: 4.234 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.73e-05/0.6558, allocations: 11.95 kB / 448.5 MB, free: 4.223 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002339/0.6581, allocations: 0.8202 MB / 449.3 MB, free: 3.348 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001111/0.6593, allocations: 310 kB / 449.6 MB, free: 3.035 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003151/0.6596, allocations: 128.8 kB / 449.8 MB, free: 2.906 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.006e-05/0.6597, allocations: 4 kB / 449.8 MB, free: 2.902 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.154e-05/0.6597, allocations: 34.56 kB / 449.8 MB, free: 2.859 MB / 378.7 MB Notification: Performance of pre-optimization done (n=31): time 3.466e-06/0.6597, allocations: 0 / 449.8 MB, free: 2.859 MB / 378.7 MB Notification: Performance of matching and sorting (n=31): time 0.002873/0.6626, allocations: 480.8 kB / 450.3 MB, free: 2.371 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.495e-05/0.6627, allocations: 51.41 kB / 450.3 MB, free: 2.309 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002867/0.663, allocations: 180.2 kB / 450.5 MB, free: 2.129 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.68e-05/0.6631, allocations: 25.7 kB / 450.5 MB, free: 2.098 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001579/0.6632, allocations: 218.7 kB / 450.7 MB, free: 1.879 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001124/0.6634, allocations: 98.47 kB / 450.8 MB, free: 1.781 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.159e-05/0.6634, allocations: 0 / 450.8 MB, free: 1.781 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001456/0.6636, allocations: 330.8 kB / 451.2 MB, free: 1.449 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002246/0.6638, allocations: 68 kB / 451.2 MB, free: 1.383 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002589/0.6641, allocations: 101.9 kB / 451.3 MB, free: 1.273 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002743/0.6643, allocations: 85.38 kB / 451.4 MB, free: 1.191 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.6644, allocations: 0 / 451.4 MB, free: 1.191 MB / 378.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.00277/0.6671, allocations: 486.5 kB / 451.9 MB, free: 0.6992 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.055e-05/0.6672, allocations: 8 kB / 451.9 MB, free: 0.6914 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.024e-05/0.6672, allocations: 0 / 451.9 MB, free: 0.6914 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002741/0.67, allocations: 311.2 kB / 452.2 MB, free: 384 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003015/0.6703, allocations: 27.92 kB / 452.2 MB, free: 356 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01054/0.6809, allocations: 6.114 MB / 458.3 MB, free: 9.766 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004114/0.6814, allocations: 20.62 kB / 458.4 MB, free: 9.746 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.307e-05/0.6814, allocations: 11.92 kB / 458.4 MB, free: 9.734 MB / 394.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: hollowCylinderRadialFlux.B:VARIABLE(unit = "T" ) "Magnetic flux density" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: hollowCylinderAxialFlux.B:VARIABLE(unit = "T" ) "Magnetic flux density" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: cuboid.B:VARIABLE(unit = "T" ) "Magnetic flux density" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: genericFluxTube.B:VARIABLE(unit = "T" ) "Magnetic flux density" type: Real 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 () * 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.0002465/0.6817, allocations: 113 kB / 458.5 MB, free: 9.617 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002762/0.6844, allocations: 476.5 kB / 458.9 MB, free: 9.133 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001341/0.6846, allocations: 27.62 kB / 459 MB, free: 9.105 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002809/0.6875, allocations: 0.4885 MB / 459.5 MB, free: 8.602 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.328e-05/0.6875, allocations: 11.88 kB / 459.5 MB, free: 8.59 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.6875, allocations: 0 / 459.5 MB, free: 8.59 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.837e-06/0.6876, allocations: 0 / 459.5 MB, free: 8.59 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006678/0.6882, allocations: 305.8 kB / 459.8 MB, free: 8.254 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.448e-06/0.6883, allocations: 0 / 459.8 MB, free: 8.254 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002467/0.6885, allocations: 23.97 kB / 459.8 MB, free: 8.23 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002606/0.6912, allocations: 311.2 kB / 460.1 MB, free: 7.914 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.196e-05/0.6913, allocations: 4 kB / 460.1 MB, free: 7.91 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01036/0.7016, allocations: 6.042 MB / 466.1 MB, free: 1.406 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.991e-06/0.7017, allocations: 0 / 466.1 MB, free: 1.406 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00283/0.7045, allocations: 0.5688 MB / 466.7 MB, free: 0.8086 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000154/0.7048, allocations: 116.7 kB / 466.8 MB, free: 0.6758 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.539e-05/0.7048, allocations: 0 / 466.8 MB, free: 0.6758 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003517/0.7052, allocations: 7.984 kB / 466.8 MB, free: 0.668 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002121/0.7054, allocations: 43.83 kB / 466.9 MB, free: 0.625 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.755e-05/0.7055, allocations: 4 kB / 466.9 MB, free: 0.6211 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0002118/0.7057, allocations: 144.5 kB / 467 MB, free: 496 kB / 394.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.7057, allocations: 0 / 467 MB, free: 496 kB / 394.7 MB Notification: Performance of remove unused functions: time 0.000775/0.7065, allocations: 103.8 kB / 467.1 MB, free: 392 kB / 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 () * 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.3199/1.026, allocations: 1.102 MB / 468.2 MB, free: 100.2 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001578/1.028, allocations: 0.6833 MB / 468.9 MB, free: 99.75 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.868e-06/1.028, allocations: 1.312 kB / 468.9 MB, free: 99.75 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001294/1.029, allocations: 0.6143 MB / 469.5 MB, free: 99.34 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003569/1.03, allocations: 17.14 kB / 469.5 MB, free: 99.34 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00122/1.031, allocations: 413 kB / 469.9 MB, free: 99.14 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003521/1.031, allocations: 0.7794 MB / 470.7 MB, free: 98.44 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001602/1.032, allocations: 77.55 kB / 470.8 MB, free: 98.43 MB / 394.7 MB Notification: Performance of SimCode: time 1.102e-06/1.032, allocations: 0.7812 kB / 470.8 MB, free: 98.43 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.209/4.241, allocations: 8.842 MB / 479.6 MB, free: 96.6 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.FluxTubes.Shapes.FixedShape_res.mat does not exist to compare? outputFormat=mat