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.InductorWithHysteresis.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.InductorWithHysteresis,tolerance=0.0001,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|Core.B|Core.Hstat|Core.MagRel|Winding.i",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis") Notification: Performance of loadModel(Modelica): time 1.962/1.962, allocations: 194.8 MB / 211.6 MB, free: 3 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003596/0.0003598, allocations: 8 kB / 263.9 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08083/0.08122, allocations: 44.52 MB / 308.4 MB, free: 1.02 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis): time 0.003481/0.08474, allocations: 2.259 MB / 310.6 MB, free: 14.75 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002545/0.08733, allocations: 1.174 MB / 311.8 MB, free: 13.56 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002493/0.08762, allocations: 4 kB / 311.8 MB, free: 13.56 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002172/0.08786, allocations: 59.59 kB / 311.9 MB, free: 13.5 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007128/0.08859, allocations: 211.3 kB / 312.1 MB, free: 13.29 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003478/0.08895, allocations: 91.75 kB / 312.2 MB, free: 13.2 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004958/0.08947, allocations: 276 kB / 312.4 MB, free: 12.93 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001894/0.08967, allocations: 69.33 kB / 312.5 MB, free: 12.87 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003016/0.08999, allocations: 163.4 kB / 312.7 MB, free: 12.71 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000336/0.09034, allocations: 191.3 kB / 312.8 MB, free: 12.52 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.33e-05/0.09042, allocations: 24 kB / 312.9 MB, free: 12.5 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004052/0.09084, allocations: 143.8 kB / 313 MB, free: 12.36 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 9.536e-05/0.09095, allocations: 71.77 kB / 313.1 MB, free: 12.29 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001011/0.09107, allocations: 85.52 kB / 313.2 MB, free: 12.2 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005513/0.09163, allocations: 359.2 kB / 313.5 MB, free: 11.84 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.301e-06/0.09165, allocations: 0 / 313.5 MB, free: 11.84 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.493e-06/0.09167, allocations: 0 / 313.5 MB, free: 11.84 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.618e-06/0.09168, allocations: 0 / 313.5 MB, free: 11.84 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: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.001764/0.09346, allocations: 0.6587 MB / 314.2 MB, free: 11.14 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.673e-05/0.09352, allocations: 8.031 kB / 314.2 MB, free: 11.13 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001187/0.09365, allocations: 39.58 kB / 314.2 MB, free: 11.09 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005679/0.09423, allocations: 319.9 kB / 314.5 MB, free: 10.73 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.766e-05/0.09434, allocations: 50.27 kB / 314.6 MB, free: 10.68 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000196/0.09455, allocations: 35.98 kB / 314.6 MB, free: 10.64 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008226/0.09539, allocations: 328.5 kB / 314.9 MB, free: 10.3 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.752e-05/0.09542, allocations: 0 / 314.9 MB, free: 10.3 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.449e-05/0.09548, allocations: 12 kB / 314.9 MB, free: 10.29 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.444e-05/0.09551, allocations: 8 kB / 315 MB, free: 10.29 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009682/0.09649, allocations: 321.9 kB / 315.3 MB, free: 9.973 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002544/0.09905, allocations: 1.171 MB / 316.4 MB, free: 8.723 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008562/0.09995, allocations: 297 kB / 316.7 MB, free: 8.414 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.521e-05/0.1, allocations: 7.984 kB / 316.7 MB, free: 8.406 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.374e-05/0.1001, allocations: 42.56 kB / 316.8 MB, free: 8.355 MB / 266.7 MB Notification: Performance of pre-optimization done (n=31): time 3.678e-06/0.1001, allocations: 3.938 kB / 316.8 MB, free: 8.352 MB / 266.7 MB Notification: Performance of matching and sorting (n=42): time 0.01174/0.1118, allocations: 2.515 MB / 319.3 MB, free: 5.762 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.582e-05/0.1119, allocations: 85.06 kB / 319.4 MB, free: 5.66 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004943/0.1125, allocations: 292.8 kB / 319.7 MB, free: 5.363 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.748e-05/0.1125, allocations: 37.7 kB / 319.7 MB, free: 5.32 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001635/0.1127, allocations: 218.9 kB / 319.9 MB, free: 5.105 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001753/0.1129, allocations: 145.8 kB / 320.1 MB, free: 4.961 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.977e-05/0.113, allocations: 12 kB / 320.1 MB, free: 4.949 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001923/0.1132, allocations: 326.8 kB / 320.4 MB, free: 4.621 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005722/0.1137, allocations: 172.8 kB / 320.6 MB, free: 4.453 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006197/0.1144, allocations: 238.7 kB / 320.8 MB, free: 4.195 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006105/0.115, allocations: 189.8 kB / 321 MB, free: 4.012 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.217e-06/0.115, allocations: 0 / 321 MB, free: 4.012 MB / 266.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001452/0.1165, allocations: 492.9 kB / 321.5 MB, free: 3.523 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.678e-05/0.1165, allocations: 8 kB / 321.5 MB, free: 3.516 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.564e-06/0.1166, allocations: 0 / 321.5 MB, free: 3.516 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.5e-05/0.1166, allocations: 7.984 kB / 321.5 MB, free: 3.508 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007908/0.1174, allocations: 127.9 kB / 321.6 MB, free: 3.383 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.804e-05/0.1174, allocations: 11.94 kB / 321.6 MB, free: 3.371 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004973/0.1179, allocations: 31.98 kB / 321.6 MB, free: 3.34 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.62e-05/0.118, allocations: 23.98 kB / 321.7 MB, free: 3.316 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (52): * Single equations (assignments): 52 * 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.0002593/0.1183, allocations: 149.8 kB / 321.8 MB, free: 3.16 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001344/0.1184, allocations: 27.62 kB / 321.8 MB, free: 3.133 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002441/0.1209, allocations: 0.6876 MB / 322.5 MB, free: 2.438 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.167e-05/0.1209, allocations: 4 kB / 322.5 MB, free: 2.434 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.998e-06/0.1209, allocations: 0 / 322.5 MB, free: 2.434 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.382e-05/0.121, allocations: 11.98 kB / 322.5 MB, free: 2.422 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00421/0.1252, allocations: 1.314 MB / 323.9 MB, free: 1.047 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.145e-06/0.1252, allocations: 3.938 kB / 323.9 MB, free: 1.043 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005995/0.1258, allocations: 91.89 kB / 323.9 MB, free: 0.9531 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002047/0.1279, allocations: 280.5 kB / 324.2 MB, free: 0.6758 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.086e-05/0.128, allocations: 19.98 kB / 324.2 MB, free: 0.6562 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005656/0.1337, allocations: 2.326 MB / 326.6 MB, free: 14.19 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.112e-06/0.1337, allocations: 0 / 326.6 MB, free: 14.19 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00315/0.1369, allocations: 1.042 MB / 327.6 MB, free: 13.13 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003157/0.1372, allocations: 148.7 kB / 327.8 MB, free: 12.97 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.116e-05/0.1373, allocations: 12 kB / 327.8 MB, free: 12.96 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005595/0.1379, allocations: 35.97 kB / 327.8 MB, free: 12.92 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001528/0.1381, allocations: 40.38 kB / 327.8 MB, free: 12.88 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.582e-05/0.1381, allocations: 12 kB / 327.9 MB, free: 12.87 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000329/0.1385, allocations: 208.5 kB / 328.1 MB, free: 12.67 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.101e-06/0.1385, allocations: 0 / 328.1 MB, free: 12.67 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0007549/0.1393, allocations: 120 kB / 328.2 MB, free: 12.55 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (winding.i,core.Hstat,core.B,core.MagRel) * 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 (40): * Single equations (assignments): 39 * 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 8} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003306/0.1396, allocations: 143.4 kB / 328.3 MB, free: 12.4 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001405/0.141, allocations: 449.9 kB / 328.8 MB, free: 11.96 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 8.403e-06/0.1411, allocations: 4.375 kB / 328.8 MB, free: 11.95 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001027/0.1421, allocations: 389 kB / 329.1 MB, free: 11.56 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004914/0.1426, allocations: 32.48 kB / 329.2 MB, free: 11.53 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00252/0.1452, allocations: 1.232 MB / 330.4 MB, free: 10.27 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005456/0.1457, allocations: 0.7933 MB / 331.2 MB, free: 9.445 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002579/0.146, allocations: 43.59 kB / 331.2 MB, free: 9.402 MB / 282.7 MB Notification: Performance of SimCode: time 1.421e-06/0.146, allocations: 0 / 331.2 MB, free: 9.402 MB / 282.7 MB Notification: Performance of Templates: time 0.01179/0.1578, allocations: 5.549 MB / 336.8 MB, free: 3.848 MB / 282.7 MB