Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.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) Running command: translateModel(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|Core.B|Core.Hstat|Core.MagRel|WindingPrim.i|WindingSec.i",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1") Notification: Performance of loadModel(Modelica): time 1.935/1.935, allocations: 194.8 MB / 211.6 MB, free: 3.004 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003534/0.0003536, allocations: 8 kB / 263.9 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08042/0.0808, allocations: 44.52 MB / 308.4 MB, free: 1.016 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1): time 0.004619/0.08547, allocations: 2.726 MB / 311.1 MB, free: 14.27 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003105/0.08862, allocations: 1.334 MB / 312.4 MB, free: 12.93 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003049/0.08897, allocations: 7.938 kB / 312.4 MB, free: 12.92 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003645/0.09264, allocations: 2.105 MB / 314.5 MB, free: 10.81 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007256/0.0934, allocations: 167.4 kB / 314.7 MB, free: 10.65 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006026/0.09403, allocations: 139.7 kB / 314.8 MB, free: 10.51 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002441/0.09648, allocations: 1.467 MB / 316.3 MB, free: 9.039 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003043/0.09683, allocations: 102.7 kB / 316.4 MB, free: 8.934 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000559/0.09741, allocations: 287.1 kB / 316.7 MB, free: 8.652 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004867/0.09791, allocations: 303 kB / 317 MB, free: 8.355 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001062/0.09803, allocations: 24 kB / 317 MB, free: 8.332 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002412/0.09829, allocations: 55.91 kB / 317.1 MB, free: 8.277 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008855/0.09919, allocations: 0.8259 MB / 317.9 MB, free: 7.449 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004712/0.09968, allocations: 384.2 kB / 318.3 MB, free: 7.066 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002794/0.1025, allocations: 2.074 MB / 320.3 MB, free: 4.988 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.084e-06/0.1025, allocations: 0 / 320.3 MB, free: 4.988 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.678e-06/0.1025, allocations: 0 / 320.3 MB, free: 4.988 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.162e-05/0.1026, allocations: 0 / 320.3 MB, free: 4.988 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.004873/0.1075, allocations: 2.473 MB / 322.8 MB, free: 2.441 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.553e-05/0.1075, allocations: 8.031 kB / 322.8 MB, free: 2.434 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005755/0.1081, allocations: 280.4 kB / 323.1 MB, free: 2.156 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003658/0.1118, allocations: 1.673 MB / 324.8 MB, free: 436 kB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001095/0.112, allocations: 58.69 kB / 324.8 MB, free: 372 kB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002218/0.1122, allocations: 59.81 kB / 324.9 MB, free: 312 kB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009871/0.1132, allocations: 387.1 kB / 325.3 MB, free: 15.91 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.937e-05/0.1132, allocations: 4 kB / 325.3 MB, free: 15.91 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.291e-05/0.1133, allocations: 16 kB / 325.3 MB, free: 15.89 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.359e-05/0.1133, allocations: 8 kB / 325.3 MB, free: 15.88 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001018/0.1144, allocations: 339.7 kB / 325.6 MB, free: 15.55 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006072/0.1204, allocations: 2.899 MB / 328.5 MB, free: 12.55 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009113/0.1214, allocations: 325 kB / 328.8 MB, free: 12.22 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.789e-05/0.1215, allocations: 11.94 kB / 328.8 MB, free: 12.21 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.299e-05/0.1215, allocations: 38.56 kB / 328.9 MB, free: 12.16 MB / 282.7 MB Notification: Performance of pre-optimization done (n=37): time 3.511e-06/0.1215, allocations: 0 / 328.9 MB, free: 12.16 MB / 282.7 MB Notification: Performance of matching and sorting (n=48): time 0.006778/0.1283, allocations: 2.387 MB / 331.3 MB, free: 9.703 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.849e-05/0.1284, allocations: 81.55 kB / 331.3 MB, free: 9.605 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0109/0.1394, allocations: 5.43 MB / 336.8 MB, free: 4.172 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 9.693e-05/0.1395, allocations: 37.7 kB / 336.8 MB, free: 4.129 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001329/0.1408, allocations: 0.8855 MB / 337.7 MB, free: 3.242 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002138/0.1411, allocations: 169.5 kB / 337.9 MB, free: 3.074 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.634e-05/0.1411, allocations: 12 kB / 337.9 MB, free: 3.062 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001815/0.1413, allocations: 330.8 kB / 338.2 MB, free: 2.73 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005131/0.1418, allocations: 145.1 kB / 338.3 MB, free: 2.59 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005534/0.1424, allocations: 233.8 kB / 338.6 MB, free: 2.332 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000585/0.143, allocations: 225.6 kB / 338.8 MB, free: 2.102 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.803e-06/0.143, allocations: 4 kB / 338.8 MB, free: 2.098 MB / 282.7 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001453/0.1445, allocations: 0.5099 MB / 339.3 MB, free: 1.57 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.626e-05/0.1446, allocations: 63.39 kB / 339.4 MB, free: 1.496 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.449e-06/0.1446, allocations: 3.938 kB / 339.4 MB, free: 1.492 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.386e-05/0.1447, allocations: 8 kB / 339.4 MB, free: 1.484 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006624/0.1454, allocations: 123.8 kB / 339.5 MB, free: 1.363 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.604e-05/0.1454, allocations: 7.953 kB / 339.5 MB, free: 1.355 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007287/0.1461, allocations: 24.14 kB / 339.5 MB, free: 1.332 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.044e-05/0.1462, allocations: 20 kB / 339.5 MB, free: 1.312 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 1 (core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (64): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 2 * 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.001779/0.148, allocations: 0.9153 MB / 340.5 MB, free: 396 kB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000624/0.1486, allocations: 264.5 kB / 340.7 MB, free: 128 kB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002237/0.1509, allocations: 0.7938 MB / 341.5 MB, free: 15.32 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.091e-05/0.1509, allocations: 4 kB / 341.5 MB, free: 15.31 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.224e-05/0.151, allocations: 3.984 kB / 341.5 MB, free: 15.31 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.315e-06/0.151, allocations: 0 / 341.5 MB, free: 15.31 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003027/0.154, allocations: 1.469 MB / 343 MB, free: 13.79 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-05/0.1541, allocations: 0 / 343 MB, free: 13.79 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006815/0.1548, allocations: 99.88 kB / 343.1 MB, free: 13.69 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004624/0.1552, allocations: 84.8 kB / 343.2 MB, free: 13.61 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.011e-05/0.1553, allocations: 8 kB / 343.2 MB, free: 13.6 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008254/0.1562, allocations: 0.6383 MB / 343.8 MB, free: 12.93 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.531e-06/0.1562, allocations: 0 / 343.8 MB, free: 12.93 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002563/0.1588, allocations: 1.077 MB / 344.9 MB, free: 11.84 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001229/0.16, allocations: 493.6 kB / 345.4 MB, free: 11.33 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002728/0.1603, allocations: 15.95 kB / 345.4 MB, free: 11.32 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006606/0.161, allocations: 23.92 kB / 345.4 MB, free: 11.29 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.252e-05/0.1611, allocations: 24.41 kB / 345.4 MB, free: 11.27 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.825e-05/0.1612, allocations: 19.98 kB / 345.5 MB, free: 11.25 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.00777/0.1689, allocations: 3.965 MB / 349.4 MB, free: 7.289 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.301e-06/0.169, allocations: 0 / 349.4 MB, free: 7.289 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001281/0.1703, allocations: 212 kB / 349.6 MB, free: 7.082 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 5 (core.MagRel,winding1.i,winding2.i,core.Hstat,core.B) * Number of discrete variables: 1 (core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 40 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.001408/0.1717, allocations: 405.4 kB / 350 MB, free: 6.746 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.00132/0.1731, allocations: 0.4887 MB / 350.5 MB, free: 6.23 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.631e-06/0.1731, allocations: 0.5 kB / 350.5 MB, free: 6.23 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006676/0.1738, allocations: 222.3 kB / 350.7 MB, free: 6.016 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001268/0.1751, allocations: 170.9 kB / 350.9 MB, free: 5.844 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01186/0.1869, allocations: 6.1 MB / 357 MB, free: 15.7 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003102/0.1901, allocations: 1.857 MB / 358.9 MB, free: 13.81 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005482/0.1907, allocations: 95.42 kB / 359 MB, free: 13.72 MB / 314.7 MB Notification: Performance of SimCode: time 1.722e-06/0.1907, allocations: 0 / 359 MB, free: 13.72 MB / 314.7 MB Notification: Performance of Templates: time 0.2807/0.4714, allocations: 34.58 MB / 393.5 MB, free: 50.5 MB / 314.7 MB