Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource") Notification: Performance of loadModel(Modelica): time 1.571/1.571, allocations: 171.3 MB / 179.2 MB, free: 7.566 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.502e-05/2.499e-05, allocations: 0 / 222.5 MB, free: 8.699 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07206/0.07212, allocations: 38.77 MB / 261.3 MB, free: 1.844 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3165/0.3887, allocations: 99 MB / 360.3 MB, free: 5.676 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002678/0.389, allocations: 79.83 kB / 360.4 MB, free: 5.637 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2003/0.5893, allocations: 50.55 MB / 410.9 MB, free: 5.867 MB / 346.7 MB Notification: Performance of FrontEnd: time 5.14e-06/0.5894, allocations: 0 / 410.9 MB, free: 5.867 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002592/0.5897, allocations: 71.88 kB / 411 MB, free: 5.797 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: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.007613/0.5973, allocations: 2.554 MB / 413.5 MB, free: 3.188 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.258e-05/0.5973, allocations: 12.03 kB / 413.6 MB, free: 3.176 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0018/0.5992, allocations: 344.1 kB / 413.9 MB, free: 2.836 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005413/0.6046, allocations: 1.728 MB / 415.6 MB, free: 1.051 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001648/0.6048, allocations: 80 kB / 415.7 MB, free: 0.9727 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007693/0.6056, allocations: 155.9 kB / 415.8 MB, free: 0.8203 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.1956/0.8012, allocations: 2.346 MB / 418.2 MB, free: 81.4 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007456/0.8087, allocations: 2.823 MB / 421 MB, free: 81.01 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.815e-05/0.8089, allocations: 7.609 kB / 421 MB, free: 81.01 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002933/0.8092, allocations: 4.328 kB / 421 MB, free: 81.01 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001593/0.8093, allocations: 118 kB / 421.1 MB, free: 81 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02095/0.8303, allocations: 9.861 MB / 431 MB, free: 78.46 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002348/0.8327, allocations: 1.377 MB / 432.4 MB, free: 78.14 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001385/0.8341, allocations: 0.7211 MB / 433.1 MB, free: 78.13 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000312/0.8345, allocations: 142.2 kB / 433.2 MB, free: 78.04 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.892e-05/0.8345, allocations: 51.58 kB / 433.3 MB, free: 78 MB / 346.7 MB Notification: Performance of pre-optimization done (n=105): time 5.4e-06/0.8345, allocations: 0 / 433.3 MB, free: 78 MB / 346.7 MB Notification: Performance of matching and sorting (n=135): time 0.01275/0.8473, allocations: 5.132 MB / 438.4 MB, free: 77.21 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.865e-05/0.8474, allocations: 67.06 kB / 438.5 MB, free: 77.14 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002066/0.8495, allocations: 1.174 MB / 439.7 MB, free: 76.98 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001681/0.8496, allocations: 25.7 kB / 439.7 MB, free: 76.95 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006571/0.8503, allocations: 1.211 MB / 440.9 MB, free: 76.37 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003912/0.8507, allocations: 446.1 kB / 441.3 MB, free: 76.08 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001156/0.8509, allocations: 0 / 441.3 MB, free: 76.08 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001322/0.851, allocations: 386 kB / 441.7 MB, free: 75.76 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001345/0.8524, allocations: 0.7529 MB / 442.5 MB, free: 75.76 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001515/0.8539, allocations: 1.258 MB / 443.7 MB, free: 75.07 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001736/0.8556, allocations: 0.9821 MB / 444.7 MB, free: 74.72 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.341e-05/0.8557, allocations: 6.125 kB / 444.7 MB, free: 74.72 MB / 346.7 MB Notification: Performance of matching and sorting (n=215) (initialization): time 0.004582/0.8603, allocations: 2.232 MB / 446.9 MB, free: 73.98 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.319e-05/0.8603, allocations: 11.5 kB / 447 MB, free: 73.98 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.604e-05/0.8604, allocations: 20.61 kB / 447 MB, free: 73.98 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007754/0.8612, allocations: 238.8 kB / 447.2 MB, free: 73.91 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002081/0.8633, allocations: 451.3 kB / 447.6 MB, free: 73.89 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002423/0.8657, allocations: 2.885 MB / 450.5 MB, free: 71.31 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001847/0.8676, allocations: 95.91 kB / 450.6 MB, free: 71.31 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001922/0.8678, allocations: 75.56 kB / 450.7 MB, free: 71.3 MB / 346.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (210): * Single equations (assignments): 206 * 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.000369/0.8682, allocations: 156.6 kB / 450.9 MB, free: 71.18 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003439/0.8685, allocations: 172.4 kB / 451 MB, free: 71.08 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004054/0.8726, allocations: 2.007 MB / 453 MB, free: 70.32 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.578e-05/0.8727, allocations: 13.56 kB / 453 MB, free: 70.32 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.759e-06/0.8727, allocations: 0 / 453 MB, free: 70.32 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.869e-05/0.8727, allocations: 3.891 kB / 453 MB, free: 70.32 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009599/0.8823, allocations: 4.419 MB / 457.5 MB, free: 68.54 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.067e-05/0.8824, allocations: 2.75 kB / 457.5 MB, free: 68.54 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001469/0.8839, allocations: 291.3 kB / 457.8 MB, free: 68.53 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000678/0.8846, allocations: 204.6 kB / 458 MB, free: 68.46 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001034/0.8847, allocations: 6.719 kB / 458 MB, free: 68.46 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002313/0.887, allocations: 2.868 MB / 460.8 MB, free: 65.87 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.112e-06/0.887, allocations: 2.75 kB / 460.8 MB, free: 65.87 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005573/0.8926, allocations: 3.304 MB / 464.1 MB, free: 64.3 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001072/0.8937, allocations: 416.8 kB / 464.5 MB, free: 64.04 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002797/0.894, allocations: 6.906 kB / 464.5 MB, free: 64.04 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00119/0.8952, allocations: 75.52 kB / 464.6 MB, free: 64.04 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002037/0.8955, allocations: 93.94 kB / 464.7 MB, free: 64.02 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000125/0.8956, allocations: 33.72 kB / 464.7 MB, free: 64.01 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001552/0.8972, allocations: 0.8726 MB / 465.6 MB, free: 63.64 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.77e-07/0.8972, allocations: 0 / 465.6 MB, free: 63.64 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002036/0.8992, allocations: 448.9 kB / 466.1 MB, free: 63.63 MB / 346.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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (131): * Single equations (assignments): 127 * 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.0006126/0.8999, allocations: 378.2 kB / 466.4 MB, free: 63.52 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.003806/0.9037, allocations: 2.299 MB / 468.7 MB, free: 62.48 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.799e-06/0.9037, allocations: 3.5 kB / 468.7 MB, free: 62.48 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002076/0.9058, allocations: 1.344 MB / 470.1 MB, free: 61.73 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002326/0.9081, allocations: 362.8 kB / 470.4 MB, free: 61.65 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007976/0.9161, allocations: 3.832 MB / 474.3 MB, free: 60.03 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002043/0.9182, allocations: 2.014 MB / 476.3 MB, free: 59.09 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007888/0.919, allocations: 138.8 kB / 476.4 MB, free: 59.07 MB / 346.7 MB Notification: Performance of SimCode: time 1.688e-06/0.9191, allocations: 0 / 476.4 MB, free: 59.07 MB / 346.7 MB Notification: Performance of Templates: time 0.2765/1.196, allocations: 76.55 MB / 0.54 GB, free: 77.97 MB / 346.7 MB