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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.074/2.074, allocations: 235.1 MB / 243 MB, free: 9.5 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.965e-05/1.969e-05, allocations: 4 kB / 303.2 MB, free: 13.2 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2683/0.2684, allocations: 54.85 MB / 358 MB, free: 14.96 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4165/0.6849, allocations: 116.8 MB / 474.8 MB, free: 47.41 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002324/0.6851, allocations: 76.52 kB / 474.9 MB, free: 47.41 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2255/0.9106, allocations: 60.99 MB / 0.5233 GB, free: 33.03 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.149e-06/0.9107, allocations: 0 / 0.5233 GB, free: 33.03 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002541/0.911, allocations: 79.44 kB / 0.5234 GB, free: 33.02 MB / 394.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.007309/0.9183, allocations: 2.894 MB / 0.5262 GB, free: 31.31 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.908e-05/0.9183, allocations: 15.55 kB / 0.5262 GB, free: 31.31 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001844/0.9202, allocations: 401.9 kB / 0.5266 GB, free: 31.11 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005973/0.9262, allocations: 2.15 MB / 0.5287 GB, free: 30.2 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001346/0.9264, allocations: 88.72 kB / 0.5288 GB, free: 30.2 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006137/0.927, allocations: 169.8 kB / 0.529 GB, free: 30.11 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00626/0.9333, allocations: 2.734 MB / 0.5316 GB, free: 27.47 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007269/0.9406, allocations: 3.211 MB / 0.5348 GB, free: 24.12 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.839e-05/0.9407, allocations: 4 kB / 0.5348 GB, free: 24.12 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003355/0.9411, allocations: 4 kB / 0.5348 GB, free: 24.11 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000134/0.9412, allocations: 141.4 kB / 0.5349 GB, free: 23.97 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02257/0.9638, allocations: 11.04 MB / 0.5457 GB, free: 12.64 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004277/0.9681, allocations: 2.184 MB / 0.5478 GB, free: 10.35 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001892/0.97, allocations: 1.028 MB / 0.5488 GB, free: 9.316 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000382/0.9705, allocations: 231.4 kB / 0.5491 GB, free: 9.051 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.74e-05/0.9705, allocations: 51.88 kB / 0.5491 GB, free: 8.992 MB / 394.7 MB Notification: Performance of pre-optimization done (n=147): time 5.06e-06/0.9705, allocations: 0 / 0.5491 GB, free: 8.992 MB / 394.7 MB Notification: Performance of matching and sorting (n=161): time 0.01294/0.9835, allocations: 5.571 MB / 0.5546 GB, free: 3.367 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.826e-05/0.9836, allocations: 76.67 kB / 0.5546 GB, free: 3.281 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002675/0.9862, allocations: 1.431 MB / 0.556 GB, free: 1.852 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002779/0.9865, allocations: 25.7 kB / 0.5561 GB, free: 1.82 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007144/0.9873, allocations: 1.283 MB / 0.5573 GB, free: 0.5234 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005009/0.9878, allocations: 0.5274 MB / 0.5578 GB, free: 15.98 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001332/0.9879, allocations: 3.938 kB / 0.5578 GB, free: 15.98 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002558/0.9882, allocations: 378.8 kB / 0.5582 GB, free: 15.6 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001866/0.9901, allocations: 0.8474 MB / 0.559 GB, free: 14.75 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002399/0.9925, allocations: 1.281 MB / 0.5603 GB, free: 13.29 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002533/0.9951, allocations: 1.081 MB / 0.5613 GB, free: 12.21 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.886e-05/0.9951, allocations: 4 kB / 0.5613 GB, free: 12.21 MB / 410.7 MB Notification: Performance of matching and sorting (n=231) (initialization): time 0.006613/1.002, allocations: 2.623 MB / 0.5639 GB, free: 9.574 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.455e-05/1.002, allocations: 12 kB / 0.5639 GB, free: 9.562 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.535e-05/1.002, allocations: 12 kB / 0.5639 GB, free: 9.551 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001508/1.003, allocations: 446.4 kB / 0.5643 GB, free: 9.105 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002393/1.006, allocations: 459.3 kB / 0.5648 GB, free: 8.656 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009843/1.016, allocations: 6.744 MB / 0.5714 GB, free: 1.562 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002176/1.018, allocations: 83.86 kB / 0.5714 GB, free: 1.48 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002735/1.018, allocations: 76.09 kB / 0.5715 GB, free: 1.406 MB / 410.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 (209): * 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): 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.000481/1.019, allocations: 155.1 kB / 0.5717 GB, free: 1.25 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000489/1.019, allocations: 193.6 kB / 0.5718 GB, free: 1.059 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00712/1.026, allocations: 2.839 MB / 0.5746 GB, free: 14.2 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.629e-05/1.026, allocations: 16 kB / 0.5746 GB, free: 14.18 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.765e-05/1.026, allocations: 8 kB / 0.5746 GB, free: 14.17 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.215e-05/1.026, allocations: 7.969 kB / 0.5746 GB, free: 14.16 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01528/1.042, allocations: 5.701 MB / 0.5802 GB, free: 8.363 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.744e-05/1.042, allocations: 4 kB / 0.5802 GB, free: 8.359 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001587/1.043, allocations: 248 kB / 0.5805 GB, free: 8.117 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003295/1.047, allocations: 0.8301 MB / 0.5813 GB, free: 7.277 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002496/1.047, allocations: 23.97 kB / 0.5813 GB, free: 7.254 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01699/1.064, allocations: 10.01 MB / 0.5911 GB, free: 12.89 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.389e-06/1.064, allocations: 4 kB / 0.5911 GB, free: 12.89 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009738/1.074, allocations: 4.333 MB / 0.5953 GB, free: 8.434 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00149/1.075, allocations: 490.4 kB / 0.5958 GB, free: 7.934 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003771/1.076, allocations: 8.281 kB / 0.5958 GB, free: 7.926 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001449/1.077, allocations: 79.86 kB / 0.5958 GB, free: 7.848 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000377/1.078, allocations: 125 kB / 0.596 GB, free: 7.723 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001742/1.078, allocations: 51.92 kB / 0.596 GB, free: 7.672 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002321/1.08, allocations: 1.078 MB / 0.5971 GB, free: 6.602 MB / 442.7 MB Notification: Performance of sort global known variables: time 9.61e-07/1.08, allocations: 0 / 0.5971 GB, free: 6.602 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002923/1.083, allocations: 0.5391 MB / 0.5976 GB, free: 6.062 MB / 442.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 (115): * Single equations (assignments): 112 * 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.0008324/1.084, allocations: 384.5 kB / 0.598 GB, free: 5.68 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005364/1.089, allocations: 2.523 MB / 0.6004 GB, free: 3.121 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.061e-06/1.089, allocations: 0 / 0.6004 GB, free: 3.121 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003359/1.093, allocations: 1.604 MB / 0.602 GB, free: 1.492 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002704/1.095, allocations: 417 kB / 0.6024 GB, free: 1.086 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01144/1.107, allocations: 4.688 MB / 0.607 GB, free: 12.32 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003175/1.11, allocations: 2.24 MB / 0.6092 GB, free: 10.05 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009624/1.111, allocations: 155.4 kB / 0.6093 GB, free: 9.898 MB / 458.7 MB Notification: Performance of SimCode: time 1.859e-06/1.111, allocations: 0 / 0.6093 GB, free: 9.898 MB / 458.7 MB Notification: Performance of Templates: time 0.368/1.479, allocations: 73.32 MB / 0.6809 GB, free: 111.6 MB / 474.7 MB