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.134/2.134, allocations: 234.9 MB / 250.5 MB, free: 9.648 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004357/0.0004358, allocations: 19.92 kB / 314.4 MB, free: 9.668 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2928/0.2933, allocations: 54.85 MB / 369.3 MB, free: 12.75 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2209/0.5142, allocations: 117.6 MB / 486.8 MB, free: 7.016 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002665/0.5145, allocations: 75.97 kB / 486.9 MB, free: 6.941 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5105/1.025, allocations: 61.72 MB / 0.5357 GB, free: 98.97 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.733e-06/1.025, allocations: 0 / 0.5357 GB, free: 98.97 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002926/1.025, allocations: 87.88 kB / 0.5358 GB, free: 98.88 MB / 426.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.009805/1.035, allocations: 3.262 MB / 0.539 GB, free: 95.56 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.017e-05/1.035, allocations: 8.031 kB / 0.539 GB, free: 95.55 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001919/1.037, allocations: 403.9 kB / 0.5394 GB, free: 95.15 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006424/1.044, allocations: 2.163 MB / 0.5415 GB, free: 92.97 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000232/1.044, allocations: 213.7 kB / 0.5417 GB, free: 92.76 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000924/1.045, allocations: 287.3 kB / 0.542 GB, free: 92.48 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009032/1.054, allocations: 3.67 MB / 0.5456 GB, free: 88.67 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001285/1.054, allocations: 4 kB / 0.5456 GB, free: 88.66 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005979/1.055, allocations: 119.8 kB / 0.5457 GB, free: 88.55 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001462/1.055, allocations: 145.4 kB / 0.5458 GB, free: 88.41 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007226/1.062, allocations: 2.989 MB / 0.5488 GB, free: 85.41 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02458/1.087, allocations: 11.6 MB / 0.5601 GB, free: 73.6 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00451/1.091, allocations: 2.224 MB / 0.5623 GB, free: 71.27 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003883/1.092, allocations: 224.1 kB / 0.5625 GB, free: 71.02 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.409e-05/1.092, allocations: 55.81 kB / 0.5625 GB, free: 70.96 MB / 426.7 MB Notification: Performance of pre-optimization done (n=141): time 4.687e-06/1.092, allocations: 0 / 0.5625 GB, free: 70.96 MB / 426.7 MB Notification: Performance of matching and sorting (n=155): time 0.03912/1.131, allocations: 8.337 MB / 0.5707 GB, free: 62.54 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.53e-05/1.131, allocations: 68.72 kB / 0.5707 GB, free: 62.46 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006397/1.137, allocations: 1.7 MB / 0.5724 GB, free: 60.72 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004616/1.138, allocations: 53.7 kB / 0.5724 GB, free: 60.66 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001447/1.139, allocations: 1.272 MB / 0.5737 GB, free: 59.38 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008838/1.14, allocations: 0.5234 MB / 0.5742 GB, free: 58.86 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002738/1.141, allocations: 36 kB / 0.5742 GB, free: 58.82 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002172/1.141, allocations: 382.8 kB / 0.5746 GB, free: 58.44 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003627/1.144, allocations: 0.894 MB / 0.5755 GB, free: 57.55 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004004/1.149, allocations: 1.33 MB / 0.5768 GB, free: 56.04 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00438/1.153, allocations: 1.115 MB / 0.5779 GB, free: 54.92 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.149e-05/1.153, allocations: 4 kB / 0.5779 GB, free: 54.92 MB / 426.7 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.006431/1.159, allocations: 2.807 MB / 0.5806 GB, free: 52.09 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.322e-05/1.16, allocations: 12 kB / 0.5806 GB, free: 52.08 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.621e-05/1.16, allocations: 15.94 kB / 0.5806 GB, free: 52.07 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00143/1.161, allocations: 442.6 kB / 0.581 GB, free: 51.62 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002473/1.164, allocations: 451.3 kB / 0.5815 GB, free: 51.18 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008282/1.172, allocations: 7.202 MB / 0.5885 GB, free: 43.58 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002224/1.174, allocations: 127.8 kB / 0.5886 GB, free: 43.46 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002107/1.174, allocations: 75.98 kB / 0.5887 GB, free: 43.38 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.002051/1.176, allocations: 0.9108 MB / 0.5896 GB, free: 42.46 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005334/1.177, allocations: 201.5 kB / 0.5898 GB, free: 42.27 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006397/1.183, allocations: 2.999 MB / 0.5927 GB, free: 39.24 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.769e-05/1.183, allocations: 16 kB / 0.5927 GB, free: 39.23 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.343e-05/1.183, allocations: 8 kB / 0.5927 GB, free: 39.22 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.329e-05/1.183, allocations: 11.97 kB / 0.5928 GB, free: 39.21 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01385/1.197, allocations: 6.138 MB / 0.5987 GB, free: 32.99 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-05/1.197, allocations: 4 kB / 0.5987 GB, free: 32.99 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001437/1.199, allocations: 231.6 kB / 0.599 GB, free: 32.76 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002926/1.202, allocations: 0.8334 MB / 0.5998 GB, free: 31.92 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002699/1.202, allocations: 35.98 kB / 0.5998 GB, free: 31.88 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01485/1.217, allocations: 10.55 MB / 0.6101 GB, free: 20.94 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.239e-06/1.217, allocations: 7.938 kB / 0.6101 GB, free: 20.93 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008688/1.226, allocations: 4.375 MB / 0.6144 GB, free: 16.42 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001458/1.227, allocations: 0.4906 MB / 0.6149 GB, free: 15.91 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006236/1.228, allocations: 36.94 kB / 0.6149 GB, free: 15.87 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001922/1.23, allocations: 99.81 kB / 0.615 GB, free: 15.77 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003891/1.23, allocations: 121 kB / 0.6151 GB, free: 15.66 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001586/1.23, allocations: 43.98 kB / 0.6152 GB, free: 15.61 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002684/1.233, allocations: 1.317 MB / 0.6164 GB, free: 14.27 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.086e-06/1.233, allocations: 0 / 0.6164 GB, free: 14.27 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003057/1.236, allocations: 0.6327 MB / 0.6171 GB, free: 13.64 MB / 426.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.0007725/1.237, allocations: 411.5 kB / 0.6175 GB, free: 13.27 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.005174/1.242, allocations: 2.647 MB / 0.62 GB, free: 10.59 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.073e-06/1.242, allocations: 0 / 0.62 GB, free: 10.59 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003822/1.246, allocations: 1.699 MB / 0.6217 GB, free: 8.852 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003498/1.25, allocations: 498.9 kB / 0.6222 GB, free: 8.363 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01265/1.262, allocations: 6.91 MB / 0.6289 GB, free: 1.387 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002895/1.265, allocations: 2.24 MB / 0.6311 GB, free: 15.12 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009799/1.266, allocations: 163.4 kB / 0.6313 GB, free: 14.96 MB / 442.7 MB Notification: Performance of SimCode: time 1.71e-06/1.266, allocations: 0 / 0.6313 GB, free: 14.96 MB / 442.7 MB Notification: Performance of Templates: time 0.4294/1.696, allocations: 74.73 MB / 0.7042 GB, free: 132.7 MB / 474.7 MB