Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.725/2.725, allocations: 234.9 MB / 251.1 MB, free: 9.555 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004753/0.0004755, allocations: 12 kB / 314.9 MB, free: 9.617 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3834/0.3839, allocations: 54.86 MB / 369.8 MB, free: 10.74 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5603/0.9443, allocations: 117.5 MB / 487.3 MB, free: 45.39 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003357/0.9447, allocations: 85.17 kB / 487.4 MB, free: 45.39 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2534/1.198, allocations: 61.73 MB / 0.5363 GB, free: 24.45 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.817e-06/1.198, allocations: 4 kB / 0.5363 GB, free: 24.45 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0004189/1.199, allocations: 83.86 kB / 0.5364 GB, free: 24.37 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.01415/1.213, allocations: 3.26 MB / 0.5395 GB, free: 21.27 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.213e-05/1.213, allocations: 8.031 kB / 0.5395 GB, free: 21.26 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002865/1.216, allocations: 403.9 kB / 0.5399 GB, free: 20.86 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008949/1.225, allocations: 2.162 MB / 0.542 GB, free: 19.19 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003231/1.225, allocations: 215 kB / 0.5422 GB, free: 19.06 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00148/1.227, allocations: 284.6 kB / 0.5425 GB, free: 18.88 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01329/1.24, allocations: 3.698 MB / 0.5461 GB, free: 16.29 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001586/1.24, allocations: 3.906 kB / 0.5461 GB, free: 16.29 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006931/1.241, allocations: 118 kB / 0.5462 GB, free: 16.19 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001845/1.241, allocations: 141.5 kB / 0.5464 GB, free: 16.05 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01114/1.252, allocations: 2.992 MB / 0.5493 GB, free: 13.05 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03393/1.286, allocations: 11.59 MB / 0.5606 GB, free: 1.148 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006966/1.293, allocations: 2.231 MB / 0.5628 GB, free: 14.8 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006777/1.294, allocations: 219.5 kB / 0.563 GB, free: 14.55 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.664e-05/1.294, allocations: 55.88 kB / 0.5631 GB, free: 14.49 MB / 410.7 MB Notification: Performance of pre-optimization done (n=141): time 4.538e-06/1.294, allocations: 3.938 kB / 0.5631 GB, free: 14.48 MB / 410.7 MB Notification: Performance of matching and sorting (n=155): time 0.03693/1.331, allocations: 8.336 MB / 0.5712 GB, free: 6.059 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.386e-05/1.331, allocations: 68.72 kB / 0.5713 GB, free: 5.98 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005076/1.336, allocations: 1.913 MB / 0.5731 GB, free: 4.023 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005446/1.337, allocations: 53.7 kB / 0.5732 GB, free: 3.965 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00132/1.338, allocations: 1.272 MB / 0.5744 GB, free: 2.68 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009164/1.339, allocations: 0.5276 MB / 0.575 GB, free: 2.145 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001888/1.339, allocations: 36 kB / 0.575 GB, free: 2.109 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002307/1.34, allocations: 374.8 kB / 0.5753 GB, free: 1.734 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002696/1.342, allocations: 0.894 MB / 0.5762 GB, free: 0.8398 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003149/1.345, allocations: 1.337 MB / 0.5775 GB, free: 15.32 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003437/1.349, allocations: 1.118 MB / 0.5786 GB, free: 14.21 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.49e-05/1.349, allocations: 4 kB / 0.5786 GB, free: 14.21 MB / 426.7 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.008854/1.358, allocations: 2.803 MB / 0.5814 GB, free: 11.39 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.568e-05/1.358, allocations: 8 kB / 0.5814 GB, free: 11.38 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.224e-05/1.358, allocations: 16 kB / 0.5814 GB, free: 11.36 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001983/1.36, allocations: 450.5 kB / 0.5818 GB, free: 10.91 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003785/1.364, allocations: 455.2 kB / 0.5822 GB, free: 10.47 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01324/1.377, allocations: 7.188 MB / 0.5893 GB, free: 2.867 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003259/1.38, allocations: 131.7 kB / 0.5894 GB, free: 2.738 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003564/1.381, allocations: 75.98 kB / 0.5895 GB, free: 2.664 MB / 426.7 MB Warning: Assuming fixed start value for the following 1 variables: smpm.idq_sr[2]:VARIABLE(unit = "A" fixed = true 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: 59 * 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 (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.003186/1.384, allocations: 0.9078 MB / 0.5903 GB, free: 1.75 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008548/1.385, allocations: 210.1 kB / 0.5905 GB, free: 1.543 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01009/1.395, allocations: 3.003 MB / 0.5935 GB, free: 14.51 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.574e-05/1.395, allocations: 16 kB / 0.5935 GB, free: 14.5 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.968e-05/1.395, allocations: 11.94 kB / 0.5935 GB, free: 14.48 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.892e-05/1.395, allocations: 7.969 kB / 0.5935 GB, free: 14.48 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02025/1.415, allocations: 6.129 MB / 0.5995 GB, free: 8.242 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.494e-05/1.415, allocations: 4.031 kB / 0.5995 GB, free: 8.238 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002333/1.418, allocations: 235.6 kB / 0.5997 GB, free: 8.008 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004459/1.422, allocations: 0.8293 MB / 0.6005 GB, free: 7.168 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004811/1.423, allocations: 43.97 kB / 0.6006 GB, free: 7.125 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02325/1.446, allocations: 10.55 MB / 0.6109 GB, free: 12.17 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.378e-06/1.446, allocations: 0 / 0.6109 GB, free: 12.17 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01356/1.46, allocations: 4.226 MB / 0.615 GB, free: 7.879 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002173/1.462, allocations: 498.3 kB / 0.6155 GB, free: 7.371 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009141/1.463, allocations: 43.98 kB / 0.6155 GB, free: 7.328 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002849/1.466, allocations: 99.88 kB / 0.6156 GB, free: 7.23 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006441/1.466, allocations: 117 kB / 0.6157 GB, free: 7.117 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002047/1.467, allocations: 47.98 kB / 0.6158 GB, free: 7.07 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.004109/1.471, allocations: 1.313 MB / 0.6171 GB, free: 5.734 MB / 458.7 MB Notification: Performance of sort global known variables: time 6.71e-07/1.471, allocations: 0 / 0.6171 GB, free: 5.734 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.004229/1.475, allocations: 0.625 MB / 0.6177 GB, free: 5.109 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (111): * Single equations (assignments): 108 * 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.001292/1.476, allocations: 425.6 kB / 0.6181 GB, free: 4.691 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.008181/1.485, allocations: 2.65 MB / 0.6207 GB, free: 2 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.023e-05/1.485, allocations: 0.8125 kB / 0.6207 GB, free: 2 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005161/1.49, allocations: 1.681 MB / 0.6223 GB, free: 288 kB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004827/1.495, allocations: 483.9 kB / 0.6228 GB, free: 15.8 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0197/1.515, allocations: 6.928 MB / 0.6295 GB, free: 8.812 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004288/1.519, allocations: 2.244 MB / 0.6317 GB, free: 6.535 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001334/1.52, allocations: 163.4 kB / 0.6319 GB, free: 6.375 MB / 474.7 MB Notification: Performance of SimCode: time 1.743e-06/1.52, allocations: 0 / 0.6319 GB, free: 6.375 MB / 474.7 MB Notification: Performance of Templates: time 0.5163/2.037, allocations: 74.72 MB / 0.7049 GB, free: 122.2 MB / 490.7 MB