Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource") Notification: Performance of loadModel(Modelica): time 2.129/2.129, allocations: 194.8 MB / 212.3 MB, free: 3.016 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003468/0.0003469, allocations: 8 kB / 264.5 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09852/0.09889, allocations: 44.5 MB / 309 MB, free: 1.051 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4679/0.5668, allocations: 105.1 MB / 414.1 MB, free: 11.41 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003169/0.5672, allocations: 94.7 kB / 414.2 MB, free: 11.39 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2189/0.7862, allocations: 52.79 MB / 467 MB, free: 5.781 MB / 346.7 MB Notification: Performance of FrontEnd: time 4.138e-06/0.7862, allocations: 0 / 467 MB, free: 5.781 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0003539/0.7866, allocations: 67.94 kB / 467 MB, free: 5.715 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 657 * Number of variables: 657 Notification: Performance of Generate backend data structure: time 0.01225/0.7989, allocations: 2.884 MB / 469.9 MB, free: 2.77 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.293e-05/0.7989, allocations: 8.031 kB / 469.9 MB, free: 2.762 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002182/0.8011, allocations: 348.1 kB / 470.3 MB, free: 2.418 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007832/0.809, allocations: 1.912 MB / 472.2 MB, free: 460 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002937/0.8093, allocations: 197 kB / 472.4 MB, free: 260 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001179/0.8105, allocations: 255.9 kB / 472.6 MB, free: 4 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0117/0.8223, allocations: 3.24 MB / 475.8 MB, free: 12.61 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001493/0.8225, allocations: 11.94 kB / 475.9 MB, free: 12.6 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005313/0.823, allocations: 108 kB / 476 MB, free: 12.5 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002334/0.8233, allocations: 120.8 kB / 476.1 MB, free: 12.38 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009986/0.8333, allocations: 2.565 MB / 478.6 MB, free: 9.797 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03298/0.8663, allocations: 10.44 MB / 489.1 MB, free: 15 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003753/0.8701, allocations: 1.429 MB / 490.5 MB, free: 13.51 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005892/0.8708, allocations: 215.2 kB / 490.7 MB, free: 13.27 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.728e-05/0.8708, allocations: 43.56 kB / 490.8 MB, free: 13.21 MB / 378.7 MB Notification: Performance of pre-optimization done (n=102): time 3.827e-06/0.8708, allocations: 0 / 490.8 MB, free: 13.21 MB / 378.7 MB Notification: Performance of matching and sorting (n=130): time 0.02991/0.9008, allocations: 7.303 MB / 498.1 MB, free: 5.789 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.995e-05/0.9009, allocations: 64.72 kB / 498.1 MB, free: 5.715 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004302/0.9052, allocations: 1.734 MB / 499.9 MB, free: 3.98 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005445/0.9058, allocations: 53.64 kB / 499.9 MB, free: 3.922 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001738/0.9076, allocations: 1.209 MB / 0.4894 GB, free: 2.699 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008365/0.9084, allocations: 453.5 kB / 0.4898 GB, free: 2.25 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001742/0.9086, allocations: 32 kB / 0.4899 GB, free: 2.219 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002289/0.9089, allocations: 374.8 kB / 0.4902 GB, free: 1.844 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002235/0.9111, allocations: 0.8003 MB / 0.491 GB, free: 1.043 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002681/0.9138, allocations: 1.311 MB / 0.4923 GB, free: 15.5 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003002/0.9168, allocations: 1.017 MB / 0.4933 GB, free: 14.48 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.376e-05/0.9169, allocations: 4 kB / 0.4933 GB, free: 14.48 MB / 394.7 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.007085/0.924, allocations: 2.417 MB / 0.4956 GB, free: 12.04 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.115e-05/0.9241, allocations: 12 kB / 0.4956 GB, free: 12.03 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.126e-05/0.9242, allocations: 16.56 kB / 0.4957 GB, free: 12.02 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001076/0.9252, allocations: 247.2 kB / 0.4959 GB, free: 11.76 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003298/0.9286, allocations: 435.3 kB / 0.4963 GB, free: 11.34 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003964/0.9326, allocations: 3.033 MB / 0.4993 GB, free: 8.035 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003031/0.9356, allocations: 131.7 kB / 0.4994 GB, free: 7.906 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000432/0.9361, allocations: 80.05 kB / 0.4995 GB, free: 7.828 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 74 * 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 (205): * Single equations (assignments): 201 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00291/0.9391, allocations: 0.8134 MB / 0.5003 GB, free: 7.004 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008096/0.9399, allocations: 189.6 kB / 0.5004 GB, free: 6.816 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006488/0.9464, allocations: 2.125 MB / 0.5025 GB, free: 4.664 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.477e-05/0.9464, allocations: 12 kB / 0.5025 GB, free: 4.652 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.125e-06/0.9465, allocations: 0 / 0.5025 GB, free: 4.652 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.543e-05/0.9465, allocations: 7.969 kB / 0.5025 GB, free: 4.645 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01485/0.9614, allocations: 4.852 MB / 0.5073 GB, free: 15.69 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.432e-05/0.9614, allocations: 3.984 kB / 0.5073 GB, free: 15.69 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002432/0.9639, allocations: 279.6 kB / 0.5076 GB, free: 15.41 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009835/0.9649, allocations: 211.5 kB / 0.5078 GB, free: 15.2 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002024/0.9651, allocations: 31.98 kB / 0.5078 GB, free: 15.16 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003953/0.9691, allocations: 3.006 MB / 0.5107 GB, free: 11.89 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.422e-06/0.9691, allocations: 4 kB / 0.5107 GB, free: 11.89 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008789/0.9779, allocations: 3.264 MB / 0.5139 GB, free: 8.566 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001707/0.9797, allocations: 442.6 kB / 0.5143 GB, free: 8.113 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005805/0.9803, allocations: 24 kB / 0.5144 GB, free: 8.09 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002014/0.9823, allocations: 99.94 kB / 0.5144 GB, free: 7.992 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003275/0.9827, allocations: 80.88 kB / 0.5145 GB, free: 7.914 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001484/0.9828, allocations: 36 kB / 0.5146 GB, free: 7.879 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003213/0.9861, allocations: 1.192 MB / 0.5157 GB, free: 6.695 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.32e-07/0.9861, allocations: 3.938 kB / 0.5157 GB, free: 6.691 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003153/0.9893, allocations: 0.5273 MB / 0.5162 GB, free: 6.164 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi) * 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 (128): * Single equations (assignments): 124 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001101/0.9904, allocations: 410.6 kB / 0.5166 GB, free: 5.758 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.006617/0.9971, allocations: 2.403 MB / 0.519 GB, free: 3.285 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.746e-06/0.9971, allocations: 7.938 kB / 0.519 GB, free: 3.277 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003429/1.001, allocations: 1.374 MB / 0.5203 GB, free: 1.832 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003936/1.005, allocations: 450.3 kB / 0.5208 GB, free: 1.391 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2859/1.29, allocations: 5.911 MB / 0.5265 GB, free: 103.8 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003486/1.294, allocations: 2.031 MB / 0.5285 GB, free: 103 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001247/1.295, allocations: 151.1 kB / 0.5287 GB, free: 103 MB / 410.7 MB Notification: Performance of SimCode: time 1.453e-06/1.295, allocations: 0 / 0.5287 GB, free: 103 MB / 410.7 MB Notification: Performance of Templates: time 0.1419/1.437, allocations: 79.31 MB / 0.6061 GB, free: 65.18 MB / 410.7 MB