Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.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) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses") Notification: Performance of loadModel(ModelicaTest): time 2.305/2.305, allocations: 235 MB / 248.1 MB, free: 14.38 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 5.444e-05/5.455e-05, allocations: 4 kB / 309.7 MB, free: 1.332 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3435/0.3436, allocations: 54.85 MB / 364.5 MB, free: 5.535 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1761/0.5197, allocations: 117.5 MB / 482 MB, free: 10.97 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002294/0.52, allocations: 75.97 kB / 482.1 MB, free: 10.89 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5188/1.039, allocations: 61.83 MB / 0.5311 GB, free: 109.4 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.306e-06/1.039, allocations: 0 / 0.5311 GB, free: 109.4 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003268/1.039, allocations: 82.41 kB / 0.5312 GB, free: 109.3 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 742 * Number of variables: 742 Notification: Performance of Generate backend data structure: time 0.009257/1.048, allocations: 2.898 MB / 0.5341 GB, free: 108.3 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.415e-05/1.049, allocations: 8.25 kB / 0.5341 GB, free: 108.3 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002214/1.051, allocations: 405.8 kB / 0.5344 GB, free: 108.2 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006825/1.058, allocations: 2.145 MB / 0.5365 GB, free: 107.7 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002825/1.058, allocations: 210.8 kB / 0.5367 GB, free: 107.7 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001029/1.059, allocations: 280.1 kB / 0.537 GB, free: 107.7 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01067/1.07, allocations: 3.61 MB / 0.5405 GB, free: 107.3 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001363/1.07, allocations: 14.2 kB / 0.5406 GB, free: 107.2 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005402/1.07, allocations: 125.2 kB / 0.5407 GB, free: 107.2 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001869/1.071, allocations: 137.3 kB / 0.5408 GB, free: 107.2 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008108/1.079, allocations: 2.909 MB / 0.5436 GB, free: 107.2 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02631/1.105, allocations: 11.6 MB / 0.555 GB, free: 104.1 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004518/1.11, allocations: 2.184 MB / 0.5571 GB, free: 102.8 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002102/1.112, allocations: 1.062 MB / 0.5581 GB, free: 102.4 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003999/1.112, allocations: 228.2 kB / 0.5584 GB, free: 102.2 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.955e-05/1.112, allocations: 42.97 kB / 0.5584 GB, free: 102.2 MB / 458.7 MB Notification: Performance of pre-optimization done (n=141): time 5.15e-06/1.112, allocations: 0 / 0.5584 GB, free: 102.2 MB / 458.7 MB Notification: Performance of matching and sorting (n=155): time 0.01552/1.128, allocations: 6.045 MB / 0.5643 GB, free: 99.72 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.73e-05/1.128, allocations: 67.59 kB / 0.5644 GB, free: 99.66 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003827/1.132, allocations: 1.68 MB / 0.566 GB, free: 98.97 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003155/1.132, allocations: 53.48 kB / 0.5661 GB, free: 98.92 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007502/1.133, allocations: 1.277 MB / 0.5673 GB, free: 97.88 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005938/1.134, allocations: 0.5274 MB / 0.5678 GB, free: 97.46 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001629/1.134, allocations: 35.72 kB / 0.5679 GB, free: 97.44 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001333/1.134, allocations: 382.7 kB / 0.5682 GB, free: 97.09 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001717/1.136, allocations: 0.862 MB / 0.5691 GB, free: 96.77 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002161/1.138, allocations: 1.314 MB / 0.5703 GB, free: 95.9 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002703/1.14, allocations: 1.086 MB / 0.5714 GB, free: 95.5 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.472e-05/1.141, allocations: 3.25 kB / 0.5714 GB, free: 95.5 MB / 458.7 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.006031/1.147, allocations: 2.737 MB / 0.5741 GB, free: 94.55 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.215e-05/1.147, allocations: 9.438 kB / 0.5741 GB, free: 94.55 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.727e-05/1.147, allocations: 18.22 kB / 0.5741 GB, free: 94.55 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001393/1.148, allocations: 447.2 kB / 0.5745 GB, free: 94.42 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002464/1.151, allocations: 456.6 kB / 0.575 GB, free: 94.41 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008441/1.159, allocations: 7.043 MB / 0.5818 GB, free: 89.2 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002246/1.161, allocations: 124.3 kB / 0.582 GB, free: 89.17 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003001/1.162, allocations: 79.34 kB / 0.582 GB, free: 89.16 MB / 458.7 MB Warning: Assuming fixed start value for the following 1 variables: smpm.idq_sr[2]:VARIABLE(unit = "A" stateSelect=StateSelect.prefer ) "Stator space phasor current / rotor fixed frame" type: Real [2] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 60 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (203): * Single equations (assignments): 200 * 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 {(2,100.0%) 9,(1,100.0%) 2,(2,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004499/1.162, allocations: 212.5 kB / 0.5822 GB, free: 88.99 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004942/1.163, allocations: 206.9 kB / 0.5824 GB, free: 88.88 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007508/1.17, allocations: 2.951 MB / 0.5853 GB, free: 87.76 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.161e-05/1.17, allocations: 13.78 kB / 0.5853 GB, free: 87.76 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.865e-05/1.17, allocations: 7.469 kB / 0.5853 GB, free: 87.76 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.211e-05/1.17, allocations: 15.5 kB / 0.5854 GB, free: 87.75 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02409/1.195, allocations: 6.1 MB / 0.5913 GB, free: 85.31 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.484e-05/1.195, allocations: 3.719 kB / 0.5913 GB, free: 85.31 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002468/1.197, allocations: 232.5 kB / 0.5915 GB, free: 85.29 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003202/1.2, allocations: 0.8375 MB / 0.5924 GB, free: 85.06 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002897/1.201, allocations: 37.69 kB / 0.5924 GB, free: 85.04 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01495/1.216, allocations: 10.18 MB / 0.6023 GB, free: 78.48 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.19e-06/1.216, allocations: 6.25 kB / 0.6023 GB, free: 78.47 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008809/1.224, allocations: 4.379 MB / 0.6066 GB, free: 74.93 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001661/1.226, allocations: 492.5 kB / 0.6071 GB, free: 74.48 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007222/1.227, allocations: 43.14 kB / 0.6071 GB, free: 74.45 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00195/1.229, allocations: 94.8 kB / 0.6072 GB, free: 74.38 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003968/1.229, allocations: 126.2 kB / 0.6073 GB, free: 74.3 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001765/1.23, allocations: 43.75 kB / 0.6074 GB, free: 74.27 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002998/1.233, allocations: 1.293 MB / 0.6086 GB, free: 73.06 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.24e-06/1.233, allocations: 0 / 0.6086 GB, free: 73.06 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003401/1.236, allocations: 0.6287 MB / 0.6093 GB, free: 72.44 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 7 (smpm.inertiaRotor.w,smpm.i_0_s,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 (112): * Single equations (assignments): 109 * 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 {(2,100.0%) 9,(1,100.0%) 2,(3,88.9%) 34} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008691/1.237, allocations: 399.5 kB / 0.6096 GB, free: 72.11 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005178/1.242, allocations: 2.597 MB / 0.6122 GB, free: 69.7 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.209e-06/1.242, allocations: 0 / 0.6122 GB, free: 69.7 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003121/1.245, allocations: 1.645 MB / 0.6138 GB, free: 68.16 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003184/1.249, allocations: 488.7 kB / 0.6142 GB, free: 67.78 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01105/1.26, allocations: 4.755 MB / 0.6189 GB, free: 63.48 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002702/1.262, allocations: 2.242 MB / 0.6211 GB, free: 61.71 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009252/1.263, allocations: 155.2 kB / 0.6212 GB, free: 61.57 MB / 458.7 MB Notification: Performance of SimCode: time 1.808e-06/1.263, allocations: 0 / 0.6212 GB, free: 61.57 MB / 458.7 MB Notification: Performance of Templates: time 0.09834/1.362, allocations: 74.65 MB / 0.6941 GB, free: 8.039 MB / 474.7 MB