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.SaturatedInductor.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.SaturatedInductor,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|coil.Phi",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor") Notification: Performance of loadModel(Modelica): time 1.92/1.92, allocations: 194.8 MB / 211.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003607/0.0003609, allocations: 12 kB / 263.8 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08404/0.08442, allocations: 44.5 MB / 308.3 MB, free: 1.039 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SaturatedInductor): time 0.003368/0.08783, allocations: 2.165 MB / 310.5 MB, free: 14.86 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001674/0.08955, allocations: 0.8038 MB / 311.3 MB, free: 14.05 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001911/0.08977, allocations: 4 kB / 311.3 MB, free: 14.04 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001787/0.08997, allocations: 51.62 kB / 311.4 MB, free: 13.99 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003581/0.09034, allocations: 107.6 kB / 311.5 MB, free: 13.89 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000288/0.09065, allocations: 67.86 kB / 311.5 MB, free: 13.82 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003812/0.09104, allocations: 235.4 kB / 311.8 MB, free: 13.59 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001973/0.09125, allocations: 77.69 kB / 311.8 MB, free: 13.52 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002366/0.0915, allocations: 111.6 kB / 312 MB, free: 13.41 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002202/0.09174, allocations: 135.4 kB / 312.1 MB, free: 13.27 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.334e-05/0.0918, allocations: 16 kB / 312.1 MB, free: 13.26 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.673e-05/0.09187, allocations: 16 kB / 312.1 MB, free: 13.24 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.528e-05/0.09195, allocations: 47.83 kB / 312.2 MB, free: 13.2 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 8.628e-05/0.09205, allocations: 81.52 kB / 312.2 MB, free: 13.11 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003585/0.09242, allocations: 259.5 kB / 312.5 MB, free: 12.86 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.269e-06/0.09244, allocations: 4 kB / 312.5 MB, free: 12.85 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.565e-06/0.09245, allocations: 0 / 312.5 MB, free: 12.85 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.441e-06/0.09247, allocations: 0 / 312.5 MB, free: 12.85 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.00109/0.09357, allocations: 0.5573 MB / 313.1 MB, free: 12.25 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.762e-05/0.09362, allocations: 8.031 kB / 313.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.724e-05/0.09372, allocations: 39.62 kB / 313.1 MB, free: 12.2 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003854/0.09412, allocations: 254.4 kB / 313.4 MB, free: 11.91 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.271e-05/0.09417, allocations: 24.5 kB / 313.4 MB, free: 11.89 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.471e-05/0.09424, allocations: 28 kB / 313.4 MB, free: 11.86 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006525/0.09491, allocations: 248.9 kB / 313.7 MB, free: 11.61 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.376e-05/0.09494, allocations: 0 / 313.7 MB, free: 11.61 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.072e-05/0.09499, allocations: 15.98 kB / 313.7 MB, free: 11.59 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.525e-06/0.09501, allocations: 4 kB / 313.7 MB, free: 11.59 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006579/0.09568, allocations: 218.1 kB / 313.9 MB, free: 11.38 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002205/0.0979, allocations: 1.017 MB / 314.9 MB, free: 10.27 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006089/0.09855, allocations: 202.5 kB / 315.1 MB, free: 10.07 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.695e-05/0.09861, allocations: 4.062 kB / 315.1 MB, free: 10.06 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.306e-05/0.09866, allocations: 46.59 kB / 315.1 MB, free: 10.01 MB / 266.7 MB Notification: Performance of pre-optimization done (n=23): time 3.606e-06/0.09868, allocations: 0 / 315.1 MB, free: 10.01 MB / 266.7 MB Notification: Performance of matching and sorting (n=34): time 0.006345/0.105, allocations: 1.497 MB / 316.6 MB, free: 8.438 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.72e-05/0.1051, allocations: 55.41 kB / 316.7 MB, free: 8.371 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003315/0.1055, allocations: 228.9 kB / 316.9 MB, free: 8.137 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.305e-05/0.1055, allocations: 29.7 kB / 317 MB, free: 8.102 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001831/0.1057, allocations: 246.5 kB / 317.2 MB, free: 7.859 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001244/0.1059, allocations: 110.4 kB / 317.3 MB, free: 7.75 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.051e-05/0.1059, allocations: 8 kB / 317.3 MB, free: 7.742 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001813/0.1061, allocations: 330.8 kB / 317.6 MB, free: 7.41 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003608/0.1065, allocations: 107.9 kB / 317.7 MB, free: 7.305 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004005/0.1069, allocations: 156.5 kB / 317.9 MB, free: 7.133 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004021/0.1073, allocations: 129.6 kB / 318 MB, free: 7.008 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.018e-06/0.1073, allocations: 0 / 318 MB, free: 7.008 MB / 266.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.002154/0.1095, allocations: 0.5318 MB / 318.5 MB, free: 6.465 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.598e-05/0.1096, allocations: 8 kB / 318.6 MB, free: 6.457 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.866e-06/0.1096, allocations: 4 kB / 318.6 MB, free: 6.453 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001761/0.1113, allocations: 245.5 kB / 318.8 MB, free: 6.207 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003971/0.1118, allocations: 63.91 kB / 318.9 MB, free: 6.145 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006818/0.1186, allocations: 3.799 MB / 322.7 MB, free: 2.07 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003141/0.119, allocations: 16.02 kB / 322.7 MB, free: 2.055 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.773e-05/0.119, allocations: 16 kB / 322.7 MB, free: 2.039 MB / 266.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 (28): * Single equations (assignments): 26 * 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%) 9} * Non-linear torn systems: 1 {1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0002379/0.1193, allocations: 141.8 kB / 322.8 MB, free: 1.891 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.798e-05/0.1194, allocations: 27.62 kB / 322.9 MB, free: 1.863 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001078/0.1195, allocations: 50.91 kB / 322.9 MB, free: 1.812 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.168e-06/0.1195, allocations: 8.062 kB / 322.9 MB, free: 1.805 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.033e-05/0.1195, allocations: 0 / 322.9 MB, free: 1.805 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.726e-06/0.1195, allocations: 3.938 kB / 322.9 MB, free: 1.801 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006233/0.1202, allocations: 377.4 kB / 323.3 MB, free: 1.383 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/0.1202, allocations: 0 / 323.3 MB, free: 1.383 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003148/0.1205, allocations: 35.98 kB / 323.3 MB, free: 1.348 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001713/0.1223, allocations: 253.9 kB / 323.6 MB, free: 1.094 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.56e-05/0.1223, allocations: 15.89 kB / 323.6 MB, free: 1.078 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00625/0.1286, allocations: 3.68 MB / 327.3 MB, free: 13.14 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.1286, allocations: 0 / 327.3 MB, free: 13.14 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002465/0.1311, allocations: 0.7153 MB / 328 MB, free: 12.4 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000117/0.1313, allocations: 104.8 kB / 328.1 MB, free: 12.28 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.557e-05/0.1313, allocations: 11.95 kB / 328.1 MB, free: 12.27 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002864/0.1316, allocations: 15.98 kB / 328.1 MB, free: 12.25 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001196/0.1318, allocations: 31.95 kB / 328.1 MB, free: 12.22 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.814e-05/0.1318, allocations: 4 kB / 328.1 MB, free: 12.21 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002251/0.1321, allocations: 168.5 kB / 328.3 MB, free: 12.05 MB / 282.7 MB Notification: Performance of sort global known variables: time 8.31e-07/0.1321, allocations: 0 / 328.3 MB, free: 12.05 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0007645/0.1328, allocations: 100 kB / 328.4 MB, free: 11.95 MB / 282.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 (18): * Single equations (assignments): 16 * 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%) 9} * Non-linear torn systems: 1 {1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.000164/0.133, allocations: 107.2 kB / 328.5 MB, free: 11.84 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001384/0.1344, allocations: 0.5673 MB / 329.1 MB, free: 11.24 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.841e-06/0.1344, allocations: 0 / 329.1 MB, free: 11.24 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008149/0.1353, allocations: 421.9 kB / 329.5 MB, free: 10.8 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003254/0.1356, allocations: 28.38 kB / 329.5 MB, free: 10.78 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001737/0.1374, allocations: 0.8414 MB / 330.4 MB, free: 9.902 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005208/0.1379, allocations: 0.784 MB / 331.1 MB, free: 9.094 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.658e-05/0.138, allocations: 23.44 kB / 331.2 MB, free: 9.07 MB / 282.7 MB Notification: Performance of SimCode: time 1.641e-06/0.138, allocations: 0 / 331.2 MB, free: 9.07 MB / 282.7 MB Notification: Performance of Templates: time 0.01042/0.1485, allocations: 5.681 MB / 336.8 MB, free: 3.375 MB / 282.7 MB