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.215/2.215, allocations: 234.9 MB / 250.5 MB, free: 9.547 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007617/0.0007617, allocations: 12 kB / 314.3 MB, free: 9.59 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.323/0.3238, allocations: 54.86 MB / 369.2 MB, free: 10.73 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.FluxTubes.Shapes.FixedShape): time 0.002922/0.3268, allocations: 1.918 MB / 371.1 MB, free: 8.789 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001452/0.3282, allocations: 0.7495 MB / 371.9 MB, free: 8.031 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001319/0.3284, allocations: 4 kB / 371.9 MB, free: 8.027 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001733/0.3286, allocations: 47.62 kB / 371.9 MB, free: 7.98 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002744/0.3289, allocations: 87.75 kB / 372 MB, free: 7.895 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002956/0.3292, allocations: 79.83 kB / 372.1 MB, free: 7.816 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003441/0.3295, allocations: 215.5 kB / 372.3 MB, free: 7.605 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001963/0.3298, allocations: 77.12 kB / 372.4 MB, free: 7.531 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002325/0.33, allocations: 111.6 kB / 372.5 MB, free: 7.422 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002146/0.3302, allocations: 131.4 kB / 372.6 MB, free: 7.293 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.949e-05/0.3303, allocations: 19.98 kB / 372.6 MB, free: 7.273 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.504e-05/0.3304, allocations: 16 kB / 372.6 MB, free: 7.258 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.593e-05/0.3304, allocations: 47.81 kB / 372.7 MB, free: 7.211 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.239e-05/0.3305, allocations: 81.52 kB / 372.8 MB, free: 7.125 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000345/0.3309, allocations: 263.9 kB / 373 MB, free: 6.867 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.765e-06/0.3309, allocations: 0 / 373 MB, free: 6.867 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.089e-06/0.3309, allocations: 0 / 373 MB, free: 6.867 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.718e-06/0.3309, allocations: 0 / 373 MB, free: 6.867 MB / 298.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.001139/0.3321, allocations: 0.569 MB / 373.6 MB, free: 6.25 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.039e-05/0.3321, allocations: 8.031 kB / 373.6 MB, free: 6.242 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.774e-05/0.3322, allocations: 35.53 kB / 373.6 MB, free: 6.207 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003613/0.3326, allocations: 242.6 kB / 373.9 MB, free: 5.93 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.95e-05/0.3327, allocations: 24.56 kB / 373.9 MB, free: 5.906 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.4e-05/0.3327, allocations: 24 kB / 373.9 MB, free: 5.883 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006663/0.3334, allocations: 244.9 kB / 374.1 MB, free: 5.637 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.284e-05/0.3334, allocations: 0 / 374.1 MB, free: 5.637 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.865e-05/0.3335, allocations: 11.98 kB / 374.2 MB, free: 5.625 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.664e-05/0.3335, allocations: 11.95 kB / 374.2 MB, free: 5.613 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007113/0.3342, allocations: 238.1 kB / 374.4 MB, free: 5.379 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001935/0.3362, allocations: 0.8869 MB / 375.3 MB, free: 4.43 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007851/0.337, allocations: 313.3 kB / 375.6 MB, free: 4.117 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.325e-05/0.3371, allocations: 7.984 kB / 375.6 MB, free: 4.109 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.307e-05/0.3371, allocations: 30.56 kB / 375.6 MB, free: 4.07 MB / 298.7 MB Notification: Performance of pre-optimization done (n=31): time 3.241e-06/0.3371, allocations: 4 kB / 375.6 MB, free: 4.066 MB / 298.7 MB Notification: Performance of matching and sorting (n=31): time 0.005512/0.3426, allocations: 1.259 MB / 376.9 MB, free: 2.715 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.184e-05/0.3427, allocations: 59.41 kB / 377 MB, free: 2.645 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003008/0.343, allocations: 217.1 kB / 377.2 MB, free: 2.426 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.403e-05/0.3431, allocations: 29.7 kB / 377.2 MB, free: 2.391 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001613/0.3433, allocations: 215 kB / 377.4 MB, free: 2.18 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001125/0.3434, allocations: 106.5 kB / 377.5 MB, free: 2.074 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.223e-05/0.3434, allocations: 4 kB / 377.5 MB, free: 2.07 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001705/0.3436, allocations: 326.8 kB / 377.8 MB, free: 1.742 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003226/0.3439, allocations: 99.95 kB / 377.9 MB, free: 1.645 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003371/0.3443, allocations: 125.9 kB / 378.1 MB, free: 1.516 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003463/0.3447, allocations: 117.3 kB / 378.2 MB, free: 1.402 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.267e-06/0.3447, allocations: 0 / 378.2 MB, free: 1.402 MB / 298.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.002388/0.3471, allocations: 0.5524 MB / 378.7 MB, free: 0.832 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.959e-05/0.3471, allocations: 4 kB / 378.7 MB, free: 0.8281 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.385e-06/0.3471, allocations: 4 kB / 378.7 MB, free: 0.8242 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002022/0.3492, allocations: 311.2 kB / 379 MB, free: 0.5078 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002341/0.3494, allocations: 27.97 kB / 379.1 MB, free: 492 kB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009871/0.3593, allocations: 6.399 MB / 385.5 MB, free: 9.535 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002803/0.3596, allocations: 35.67 kB / 385.5 MB, free: 9.5 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.182e-05/0.3597, allocations: 8 kB / 385.5 MB, free: 9.492 MB / 314.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.0002199/0.3599, allocations: 141.9 kB / 385.6 MB, free: 9.344 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.401e-05/0.36, allocations: 23.72 kB / 385.7 MB, free: 9.32 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002267/0.3623, allocations: 0.5544 MB / 386.2 MB, free: 8.746 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.962e-06/0.3623, allocations: 7.891 kB / 386.2 MB, free: 8.738 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.838e-06/0.3623, allocations: 4 kB / 386.2 MB, free: 8.734 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.964e-06/0.3623, allocations: 0 / 386.2 MB, free: 8.734 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005986/0.363, allocations: 365.5 kB / 386.6 MB, free: 8.328 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.154e-06/0.363, allocations: 0 / 386.6 MB, free: 8.328 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001575/0.3631, allocations: 27.98 kB / 386.6 MB, free: 8.301 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001909/0.3651, allocations: 315.1 kB / 386.9 MB, free: 7.98 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.135e-05/0.3651, allocations: 7.984 kB / 386.9 MB, free: 7.973 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01001/0.3751, allocations: 6.456 MB / 393.4 MB, free: 0.9844 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.76e-06/0.3752, allocations: 3.938 kB / 393.4 MB, free: 0.9805 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002294/0.3775, allocations: 0.6154 MB / 394 MB, free: 344 kB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001053/0.3776, allocations: 104.7 kB / 394.1 MB, free: 220 kB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.415e-05/0.3777, allocations: 8 kB / 394.1 MB, free: 212 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002451/0.3779, allocations: 19.98 kB / 394.1 MB, free: 192 kB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001398/0.3781, allocations: 31.89 kB / 394.2 MB, free: 160 kB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.691e-05/0.3781, allocations: 8 kB / 394.2 MB, free: 152 kB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002078/0.3783, allocations: 156.5 kB / 394.3 MB, free: 0 / 314.7 MB Notification: Performance of sort global known variables: time 8.78e-07/0.3784, allocations: 4.047 kB / 394.3 MB, free: 15.99 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006507/0.379, allocations: 119.8 kB / 394.4 MB, free: 15.88 MB / 330.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 {2 4,2 4,2 4,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001477/0.3792, allocations: 103.2 kB / 394.5 MB, free: 15.76 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001439/0.3807, allocations: 0.7522 MB / 395.3 MB, free: 14.96 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.17e-06/0.3807, allocations: 0 / 395.3 MB, free: 14.96 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001612/0.3823, allocations: 0.7253 MB / 396 MB, free: 14.18 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003177/0.3827, allocations: 28.41 kB / 396 MB, free: 14.15 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00131/0.384, allocations: 0.6502 MB / 396.7 MB, free: 13.47 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005155/0.3845, allocations: 0.7834 MB / 397.5 MB, free: 12.66 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.287e-05/0.3846, allocations: 11.44 kB / 397.5 MB, free: 12.65 MB / 330.7 MB Notification: Performance of SimCode: time 1.587e-06/0.3846, allocations: 0 / 397.5 MB, free: 12.65 MB / 330.7 MB Notification: Performance of Templates: time 0.01271/0.3973, allocations: 7.515 MB / 405 MB, free: 5.133 MB / 330.7 MB