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.SinglePhaseTransformerWithHysteresis2.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.SinglePhaseTransformerWithHysteresis2,tolerance=0.0001,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|tr.Core.B|tr.Core.Hstat|tr.Core.MagRel|tr.Wp.i|tr.Ws.i",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2") Notification: Performance of loadModel(Modelica): time 1.764/1.764, allocations: 194.9 MB / 211.7 MB, free: 2.98 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003588/0.0003589, allocations: 11.98 kB / 263.9 MB, free: 13.56 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07953/0.07991, allocations: 44.5 MB / 308.5 MB, free: 0.9922 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3392/0.4192, allocations: 85.3 MB / 393.7 MB, free: 18.86 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002172/0.4195, allocations: 86.31 kB / 393.8 MB, free: 18.86 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05927/0.4787, allocations: 15.53 MB / 409.4 MB, free: 15.68 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.712e-06/0.4788, allocations: 0 / 409.4 MB, free: 15.68 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.581e-05/0.4789, allocations: 19.56 kB / 409.4 MB, free: 15.67 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.002327/0.4812, allocations: 0.9694 MB / 410.4 MB, free: 14.98 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.127e-05/0.4813, allocations: 7.844 kB / 410.4 MB, free: 14.98 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002977/0.4816, allocations: 88.58 kB / 410.4 MB, free: 14.94 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009772/0.4826, allocations: 499.4 kB / 410.9 MB, free: 14.62 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.965e-05/0.4827, allocations: 67.11 kB / 411 MB, free: 14.59 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002311/0.4829, allocations: 65.2 kB / 411.1 MB, free: 14.59 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001456/0.4844, allocations: 0.6056 MB / 411.7 MB, free: 14.39 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.679e-05/0.4844, allocations: 3.984 kB / 411.7 MB, free: 14.39 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.931e-05/0.4845, allocations: 26 kB / 411.7 MB, free: 14.39 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.309e-05/0.4846, allocations: 11.59 kB / 411.7 MB, free: 14.39 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001429/0.486, allocations: 0.5321 MB / 412.2 MB, free: 14.3 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004509/0.4905, allocations: 2.315 MB / 414.6 MB, free: 13.02 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001251/0.4918, allocations: 499.5 kB / 415 MB, free: 12.9 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.643e-05/0.4919, allocations: 3.875 kB / 415.1 MB, free: 12.9 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.652e-05/0.4919, allocations: 41.95 kB / 415.1 MB, free: 12.86 MB / 314.7 MB Notification: Performance of pre-optimization done (n=45): time 5.27e-06/0.4919, allocations: 3.984 kB / 415.1 MB, free: 12.86 MB / 314.7 MB Notification: Performance of matching and sorting (n=61): time 0.01615/0.5081, allocations: 3.694 MB / 418.8 MB, free: 11.54 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.811e-05/0.5082, allocations: 89.23 kB / 418.9 MB, free: 11.44 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000921/0.5091, allocations: 484 kB / 419.3 MB, free: 11.28 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001478/0.5093, allocations: 44.39 kB / 419.4 MB, free: 11.24 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001641/0.5095, allocations: 342.7 kB / 419.7 MB, free: 11 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001757/0.5097, allocations: 206.9 kB / 419.9 MB, free: 10.85 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.203e-05/0.5097, allocations: 14.56 kB / 419.9 MB, free: 10.85 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.846e-05/0.5098, allocations: 329.8 kB / 420.3 MB, free: 10.53 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008042/0.5106, allocations: 261.2 kB / 420.5 MB, free: 10.49 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008331/0.5115, allocations: 350.3 kB / 420.9 MB, free: 10.36 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008581/0.5124, allocations: 287.8 kB / 421.1 MB, free: 10.34 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.361e-06/0.5124, allocations: 0 / 421.1 MB, free: 10.34 MB / 314.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.002088/0.5145, allocations: 0.7309 MB / 421.9 MB, free: 10.17 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.225e-05/0.5145, allocations: 11.78 kB / 421.9 MB, free: 10.17 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.003e-05/0.5146, allocations: 0 / 421.9 MB, free: 10.17 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002091/0.5148, allocations: 31.62 kB / 421.9 MB, free: 10.16 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009906/0.5158, allocations: 175.5 kB / 422.1 MB, free: 10.11 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001053/0.5169, allocations: 1.326 MB / 423.4 MB, free: 8.824 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008781/0.5178, allocations: 45.53 kB / 423.5 MB, free: 8.816 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.17e-05/0.5179, allocations: 23.11 kB / 423.5 MB, free: 8.812 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 1 (transformer.core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (75): * Single equations (assignments): 74 * 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: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004651/0.5184, allocations: 209 kB / 423.7 MB, free: 8.684 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002222/0.5186, allocations: 65.83 kB / 423.7 MB, free: 8.648 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002498/0.5211, allocations: 0.8714 MB / 424.6 MB, free: 8.441 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.074e-05/0.5211, allocations: 7.812 kB / 424.6 MB, free: 8.441 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.751e-06/0.5212, allocations: 0 / 424.6 MB, free: 8.441 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.211e-05/0.5212, allocations: 3.984 kB / 424.6 MB, free: 8.438 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005152/0.5263, allocations: 1.882 MB / 426.5 MB, free: 7.754 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.439e-06/0.5264, allocations: 0 / 426.5 MB, free: 7.754 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008065/0.5272, allocations: 111.4 kB / 426.6 MB, free: 7.73 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00341/0.5307, allocations: 0.4991 MB / 427.1 MB, free: 7.566 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001414/0.5308, allocations: 22.59 kB / 427.1 MB, free: 7.559 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00617/0.537, allocations: 3.014 MB / 430.2 MB, free: 5.91 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.898e-06/0.5371, allocations: 0 / 430.2 MB, free: 5.91 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003699/0.5408, allocations: 1.431 MB / 431.6 MB, free: 5.465 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004673/0.5413, allocations: 206.2 kB / 431.8 MB, free: 5.316 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001496/0.5415, allocations: 15.45 kB / 431.8 MB, free: 5.312 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008488/0.5423, allocations: 54.16 kB / 431.9 MB, free: 5.301 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001722/0.5425, allocations: 47.48 kB / 431.9 MB, free: 5.277 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.916e-05/0.5426, allocations: 23.06 kB / 431.9 MB, free: 5.277 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0006036/0.5432, allocations: 379.8 kB / 432.3 MB, free: 5.148 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.08e-07/0.5432, allocations: 0 / 432.3 MB, free: 5.148 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001117/0.5443, allocations: 197.7 kB / 432.5 MB, free: 5.141 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (transformer.winding1.i,transformer.winding2.i,transformer.core.B,transformer.core.MagRel) * Number of discrete variables: 1 (transformer.core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 51 * 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 {2 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003274/0.5447, allocations: 161.1 kB / 432.6 MB, free: 5.027 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001804/0.5465, allocations: 0.7545 MB / 433.4 MB, free: 4.809 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.401e-06/0.5466, allocations: 0 / 433.4 MB, free: 4.809 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001105/0.5477, allocations: 0.5368 MB / 433.9 MB, free: 4.617 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000796/0.5485, allocations: 74.75 kB / 434 MB, free: 4.605 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003287/0.5518, allocations: 1.853 MB / 435.9 MB, free: 3.438 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004014/0.5522, allocations: 0.9191 MB / 436.8 MB, free: 2.633 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003283/0.5526, allocations: 57.81 kB / 436.8 MB, free: 2.621 MB / 314.7 MB Notification: Performance of SimCode: time 1.64e-06/0.5526, allocations: 0 / 436.8 MB, free: 2.621 MB / 314.7 MB Notification: Performance of Templates: time 0.02045/0.573, allocations: 11.36 MB / 448.2 MB, free: 8.102 MB / 330.7 MB