Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|coil.Phi",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor") Notification: Performance of loadModel(Modelica): time 1.643/1.643, allocations: 171.1 MB / 186.7 MB, free: 1.043 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003597/0.00036, allocations: 8 kB / 233.1 MB, free: 3.059 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07121/0.07159, allocations: 38.77 MB / 271.9 MB, free: 12.2 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor): time 0.003688/0.07531, allocations: 2.146 MB / 274.1 MB, free: 10.03 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.00194/0.07729, allocations: 0.8422 MB / 274.9 MB, free: 9.184 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002062/0.07755, allocations: 8 kB / 274.9 MB, free: 9.176 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001743/0.07773, allocations: 43.62 kB / 275 MB, free: 9.133 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003674/0.07812, allocations: 107.7 kB / 275.1 MB, free: 9.027 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003363/0.07847, allocations: 83.72 kB / 275.1 MB, free: 8.945 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003576/0.07885, allocations: 219.6 kB / 275.4 MB, free: 8.73 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002007/0.07906, allocations: 89.66 kB / 275.4 MB, free: 8.641 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002279/0.0793, allocations: 111.6 kB / 275.6 MB, free: 8.531 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002057/0.07953, allocations: 123.5 kB / 275.7 MB, free: 8.41 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 5.14e-05/0.07959, allocations: 16 kB / 275.7 MB, free: 8.395 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001037/0.07971, allocations: 39.86 kB / 275.7 MB, free: 8.355 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 6.368e-05/0.07979, allocations: 51.81 kB / 275.8 MB, free: 8.305 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 8.512e-05/0.07988, allocations: 73.58 kB / 275.9 MB, free: 8.227 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003788/0.08027, allocations: 263.5 kB / 276.1 MB, free: 7.969 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.73e-06/0.08029, allocations: 3.938 kB / 276.1 MB, free: 7.965 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.364e-06/0.0803, allocations: 0 / 276.1 MB, free: 7.965 MB / 234.7 MB Notification: Performance of Transformations before backend: time 7.58e-06/0.08032, allocations: 0 / 276.1 MB, free: 7.965 MB / 234.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 65 * Number of variables: 65 Notification: Performance of Generate backend data structure: time 0.001015/0.08134, allocations: 0.5533 MB / 276.7 MB, free: 7.363 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.036e-05/0.0814, allocations: 12.03 kB / 276.7 MB, free: 7.352 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.488e-05/0.08149, allocations: 31.62 kB / 276.7 MB, free: 7.32 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003775/0.08188, allocations: 250.3 kB / 277 MB, free: 7.035 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.901e-05/0.08195, allocations: 24.52 kB / 277 MB, free: 7.008 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.017e-05/0.08202, allocations: 28 kB / 277 MB, free: 6.98 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006187/0.08265, allocations: 248.8 kB / 277.3 MB, free: 6.73 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.307e-05/0.08268, allocations: 0 / 277.3 MB, free: 6.73 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.7e-05/0.08273, allocations: 8 kB / 277.3 MB, free: 6.723 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.78e-05/0.08276, allocations: 8 kB / 277.3 MB, free: 6.715 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006404/0.08341, allocations: 214.1 kB / 277.5 MB, free: 6.508 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00209/0.08552, allocations: 0.9939 MB / 278.5 MB, free: 5.426 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005451/0.08609, allocations: 195 kB / 278.7 MB, free: 5.227 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001212/0.08623, allocations: 81.3 kB / 278.7 MB, free: 5.129 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.248e-05/0.08629, allocations: 34.75 kB / 278.8 MB, free: 5.086 MB / 234.7 MB Notification: Performance of pre-optimization done (n=21): time 3.175e-06/0.0863, allocations: 0 / 278.8 MB, free: 5.086 MB / 234.7 MB Notification: Performance of matching and sorting (n=31): time 0.006988/0.0933, allocations: 1.48 MB / 280.3 MB, free: 3.531 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.098e-05/0.09338, allocations: 55.39 kB / 280.3 MB, free: 3.465 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003247/0.09372, allocations: 225 kB / 280.5 MB, free: 3.238 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 4.436e-05/0.09378, allocations: 37.7 kB / 280.6 MB, free: 3.195 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000188/0.09398, allocations: 246.5 kB / 280.8 MB, free: 2.953 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001163/0.09411, allocations: 102.5 kB / 280.9 MB, free: 2.852 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.467e-05/0.09415, allocations: 4 kB / 280.9 MB, free: 2.848 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.000172/0.09433, allocations: 326.8 kB / 281.2 MB, free: 2.52 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003421/0.09468, allocations: 99.95 kB / 281.3 MB, free: 2.422 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003905/0.09509, allocations: 171.7 kB / 281.5 MB, free: 2.238 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006051/0.09571, allocations: 119.7 kB / 281.6 MB, free: 2.121 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.004e-06/0.09575, allocations: 0 / 281.6 MB, free: 2.121 MB / 234.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.004273/0.1, allocations: 0.514 MB / 282.1 MB, free: 1.594 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.135e-05/0.1001, allocations: 4 kB / 282.1 MB, free: 1.59 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.623e-05/0.1001, allocations: 4 kB / 282.1 MB, free: 1.586 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004608/0.1048, allocations: 301.3 kB / 282.4 MB, free: 1.285 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005749/0.1054, allocations: 51.91 kB / 282.5 MB, free: 1.234 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007983/0.1134, allocations: 2.676 MB / 285.2 MB, free: 14.4 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005446/0.114, allocations: 16.02 kB / 285.2 MB, free: 14.38 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.901e-05/0.1141, allocations: 12 kB / 285.2 MB, free: 14.37 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (27): * Single equations (assignments): 25 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 8} * Non-linear torn systems: 1 {1 6} Notification: Performance of prepare postOptimizeDAE: time 0.000372/0.1145, allocations: 149.8 kB / 285.3 MB, free: 14.21 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001395/0.1147, allocations: 23.72 kB / 285.3 MB, free: 14.19 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004014/0.1187, allocations: 485.8 kB / 285.8 MB, free: 13.7 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.088e-05/0.1188, allocations: 0 / 285.8 MB, free: 13.7 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.531e-05/0.1188, allocations: 4 kB / 285.8 MB, free: 13.7 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.414e-05/0.1188, allocations: 3.984 kB / 285.8 MB, free: 13.7 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001102/0.1199, allocations: 373.4 kB / 286.2 MB, free: 13.28 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.391e-06/0.12, allocations: 0 / 286.2 MB, free: 13.28 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005337/0.1205, allocations: 39.97 kB / 286.2 MB, free: 13.24 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005224/0.1258, allocations: 297.3 kB / 286.5 MB, free: 12.95 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.671e-05/0.1259, allocations: 15.94 kB / 286.5 MB, free: 12.93 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007928/0.1339, allocations: 2.673 MB / 289.2 MB, free: 10.1 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.997e-06/0.1339, allocations: 64 / 289.2 MB, free: 10.1 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004727/0.1387, allocations: 0.6918 MB / 289.9 MB, free: 9.387 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003231/0.139, allocations: 120.8 kB / 290 MB, free: 9.25 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.32e-05/0.1392, allocations: 8 kB / 290 MB, free: 9.242 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005538/0.1397, allocations: 15.98 kB / 290 MB, free: 9.227 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001395/0.1399, allocations: 24.03 kB / 290.1 MB, free: 9.203 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.758e-05/0.14, allocations: 15.98 kB / 290.1 MB, free: 9.188 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0003828/0.1404, allocations: 168.5 kB / 290.3 MB, free: 9.02 MB / 250.7 MB Notification: Performance of sort global known variables: time 1.298e-06/0.1404, allocations: 0 / 290.3 MB, free: 9.02 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.001252/0.1417, allocations: 95.89 kB / 290.3 MB, free: 8.926 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (coil.i) * 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 (17): * Single equations (assignments): 15 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 8} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003204/0.142, allocations: 103.2 kB / 290.4 MB, free: 8.812 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.002086/0.1442, allocations: 442.3 kB / 290.9 MB, free: 8.367 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 6.662e-06/0.1442, allocations: 0 / 290.9 MB, free: 8.367 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001198/0.1454, allocations: 306.9 kB / 291.2 MB, free: 8.055 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000576/0.146, allocations: 18.16 kB / 291.2 MB, free: 8.039 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002721/0.1488, allocations: 0.8249 MB / 292 MB, free: 7.184 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005056/0.1493, allocations: 0.7833 MB / 292.8 MB, free: 6.375 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.105e-05/0.1494, allocations: 23.42 kB / 292.8 MB, free: 6.352 MB / 250.7 MB Notification: Performance of SimCode: time 2.11e-06/0.1494, allocations: 0 / 292.8 MB, free: 6.352 MB / 250.7 MB Notification: Performance of Templates: time 0.01028/0.1597, allocations: 5.556 MB / 298.4 MB, free: 0.7852 MB / 250.7 MB