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_VoltageSource.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_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.idq_sr.1.|smpm.idq_sr.2.|voltageController.PI_d.x|voltageController.PI_q.x",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource") Notification: Performance of loadModel(Modelica): time 1.535/1.535, allocations: 171.3 MB / 179.2 MB, free: 7.586 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 1.986e-05/2.004e-05, allocations: 4 kB / 222.5 MB, free: 8.688 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06886/0.0689, allocations: 38.76 MB / 261.3 MB, free: 1.848 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3264/0.3954, allocations: 102.3 MB / 363.6 MB, free: 2.43 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002631/0.3957, allocations: 83.69 kB / 363.7 MB, free: 2.391 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.409/0.8047, allocations: 55.6 MB / 419.3 MB, free: 79.44 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.964e-06/0.8047, allocations: 0 / 419.3 MB, free: 79.44 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002937/0.8051, allocations: 85.33 kB / 419.4 MB, free: 79.43 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: 744 * Number of variables: 744 Notification: Performance of Generate backend data structure: time 0.008454/0.8135, allocations: 2.848 MB / 422.2 MB, free: 78.4 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.416e-05/0.8136, allocations: 10.61 kB / 422.2 MB, free: 78.4 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002033/0.8156, allocations: 399.1 kB / 422.6 MB, free: 78.22 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005508/0.8212, allocations: 1.903 MB / 424.5 MB, free: 77.75 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002048/0.8214, allocations: 91.77 kB / 424.6 MB, free: 77.75 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009445/0.8224, allocations: 175.3 kB / 424.8 MB, free: 77.75 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007722/0.8301, allocations: 2.679 MB / 427.5 MB, free: 77.73 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009729/0.8399, allocations: 3.185 MB / 430.7 MB, free: 77.32 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001265/0.8401, allocations: 14.55 kB / 430.7 MB, free: 77.32 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003825/0.8405, allocations: 3.5 kB / 430.7 MB, free: 77.32 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001729/0.8406, allocations: 134.2 kB / 430.8 MB, free: 77.31 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0235/0.8642, allocations: 10.98 MB / 441.8 MB, free: 74.55 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002941/0.8672, allocations: 1.913 MB / 443.7 MB, free: 73.96 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001709/0.8689, allocations: 0.8972 MB / 444.6 MB, free: 73.94 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00032/0.8693, allocations: 143.3 kB / 444.7 MB, free: 73.84 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.12e-05/0.8693, allocations: 44.78 kB / 444.8 MB, free: 73.8 MB / 346.7 MB Notification: Performance of pre-optimization done (n=132): time 5.266e-06/0.8693, allocations: 0 / 444.8 MB, free: 73.8 MB / 346.7 MB Notification: Performance of matching and sorting (n=153): time 0.01711/0.8864, allocations: 5.557 MB / 450.3 MB, free: 72.36 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.579e-05/0.8865, allocations: 71.66 kB / 450.4 MB, free: 72.3 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003998/0.8906, allocations: 1.294 MB / 451.7 MB, free: 71.77 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003363/0.8909, allocations: 29.58 kB / 451.7 MB, free: 71.74 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001215/0.8922, allocations: 1.321 MB / 453.1 MB, free: 70.66 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008399/0.8931, allocations: 0.5008 MB / 453.6 MB, free: 70.27 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002217/0.8933, allocations: 0 / 453.6 MB, free: 70.27 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002157/0.8935, allocations: 384.4 kB / 453.9 MB, free: 69.93 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002743/0.8963, allocations: 0.8318 MB / 454.8 MB, free: 69.61 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003137/0.8995, allocations: 1.357 MB / 456.1 MB, free: 68.62 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003557/0.9031, allocations: 1.077 MB / 457.2 MB, free: 68.21 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.163e-05/0.9031, allocations: 3.062 kB / 457.2 MB, free: 68.21 MB / 346.7 MB Notification: Performance of matching and sorting (n=239) (initialization): time 0.01047/0.9136, allocations: 2.693 MB / 459.9 MB, free: 67.33 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.467e-05/0.9137, allocations: 10.91 kB / 459.9 MB, free: 67.33 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.896e-05/0.9138, allocations: 20.91 kB / 459.9 MB, free: 67.33 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001752/0.9156, allocations: 0.5315 MB / 460.5 MB, free: 67.18 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002102/0.9177, allocations: 448.2 kB / 460.9 MB, free: 67.17 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008868/0.9266, allocations: 6.007 MB / 466.9 MB, free: 63.27 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003515/0.9302, allocations: 103.6 kB / 467 MB, free: 63.25 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007365/0.931, allocations: 85.06 kB / 467.1 MB, free: 63.24 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 77 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (213): * Single equations (assignments): 210 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(5,76.0%) 20,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000762/0.9318, allocations: 147.6 kB / 467.2 MB, free: 63.12 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009151/0.9327, allocations: 190.4 kB / 467.4 MB, free: 63.02 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01062/0.9434, allocations: 2.503 MB / 469.9 MB, free: 62.09 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.436e-05/0.9435, allocations: 15.03 kB / 469.9 MB, free: 62.09 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.347e-05/0.9435, allocations: 14.98 kB / 469.9 MB, free: 62.09 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.074e-05/0.9436, allocations: 6.984 kB / 470 MB, free: 62.09 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01218/0.9558, allocations: 5.191 MB / 475.1 MB, free: 60 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.391e-05/0.9558, allocations: 3.812 kB / 475.1 MB, free: 60 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0016/0.9575, allocations: 272.8 kB / 475.4 MB, free: 59.98 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002142/0.9596, allocations: 0.5693 MB / 476 MB, free: 59.83 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002432/0.9599, allocations: 21.58 kB / 476 MB, free: 59.82 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01016/0.9701, allocations: 7.675 MB / 483.7 MB, free: 54.48 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.662e-06/0.9701, allocations: 7.5 kB / 483.7 MB, free: 54.48 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007393/0.9775, allocations: 3.941 MB / 487.6 MB, free: 52.38 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001353/0.9789, allocations: 456.2 kB / 488.1 MB, free: 51.96 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005688/0.9796, allocations: 7.562 kB / 488.1 MB, free: 51.95 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001428/0.981, allocations: 82.27 kB / 488.2 MB, free: 51.91 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002986/0.9813, allocations: 107.9 kB / 488.3 MB, free: 51.84 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000201/0.9815, allocations: 43.94 kB / 488.3 MB, free: 51.8 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001726/0.9833, allocations: 0.9732 MB / 489.3 MB, free: 50.93 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.022e-06/0.9833, allocations: 3 kB / 489.3 MB, free: 50.93 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002759/0.9861, allocations: 0.5155 MB / 489.8 MB, free: 50.42 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 6 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,voltageController.PI_d.x,voltageController.PI_q.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (125): * Single equations (assignments): 122 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(5,76.0%) 20,(1,100.0%) 1,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000687/0.9868, allocations: 378.3 kB / 490.2 MB, free: 50.11 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.004439/0.9912, allocations: 2.489 MB / 492.7 MB, free: 47.8 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.447e-06/0.9913, allocations: 0 / 492.7 MB, free: 47.8 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002795/0.9941, allocations: 1.534 MB / 494.2 MB, free: 46.39 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00256/0.9967, allocations: 395 kB / 494.6 MB, free: 46.09 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009813/1.007, allocations: 4.455 MB / 499 MB, free: 42.08 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002253/1.009, allocations: 2.219 MB / 0.4895 GB, free: 40.32 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007645/1.01, allocations: 142.6 kB / 0.4896 GB, free: 40.19 MB / 346.7 MB Notification: Performance of SimCode: time 1.978e-06/1.01, allocations: 0 / 0.4896 GB, free: 40.19 MB / 346.7 MB Notification: Performance of Templates: time 0.3473/1.357, allocations: 71.61 MB / 0.5596 GB, free: 70.44 MB / 346.7 MB