Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.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) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource") Notification: Performance of loadModel(Modelica): time 1.796/1.796, allocations: 194.9 MB / 211.7 MB, free: 2.984 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000355/0.000355, allocations: 8 kB / 264 MB, free: 13.56 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07933/0.07971, allocations: 44.51 MB / 308.5 MB, free: 0.9805 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3731/0.4529, allocations: 113.1 MB / 421.6 MB, free: 9.457 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002504/0.4531, allocations: 91.23 kB / 421.7 MB, free: 9.441 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2884/0.7416, allocations: 80.17 MB / 0.4901 GB, free: 3.887 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.735e-06/0.7416, allocations: 0 / 0.4901 GB, free: 3.887 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003296/0.742, allocations: 91.88 kB / 0.4902 GB, free: 3.797 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 908 * Number of variables: 908 Notification: Performance of Generate backend data structure: time 0.01319/0.7552, allocations: 3.827 MB / 0.4939 GB, free: 15.9 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.267e-05/0.7552, allocations: 8.031 kB / 0.4939 GB, free: 15.89 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004339/0.7596, allocations: 0.6435 MB / 0.4945 GB, free: 15.24 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01181/0.7714, allocations: 3.394 MB / 0.4979 GB, free: 11.79 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003472/0.7718, allocations: 258.9 kB / 0.4981 GB, free: 11.54 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001114/0.7729, allocations: 343.9 kB / 0.4984 GB, free: 11.2 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01199/0.785, allocations: 4.37 MB / 0.5027 GB, free: 6.691 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001091/0.7851, allocations: 7.938 kB / 0.5027 GB, free: 6.684 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005159/0.7856, allocations: 148 kB / 0.5029 GB, free: 6.539 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000227/0.7859, allocations: 166.7 kB / 0.503 GB, free: 6.375 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01006/0.796, allocations: 3.49 MB / 0.5064 GB, free: 2.879 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03366/0.8297, allocations: 14.55 MB / 0.5206 GB, free: 3.898 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2393/1.069, allocations: 5.366 MB / 0.5259 GB, free: 79.31 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007462/1.077, allocations: 3.276 MB / 0.5291 GB, free: 78.75 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.986e-05/1.077, allocations: 54.19 kB / 0.5291 GB, free: 78.71 MB / 410.7 MB Notification: Performance of pre-optimization done (n=137): time 5.031e-06/1.077, allocations: 0 / 0.5291 GB, free: 78.71 MB / 410.7 MB Notification: Performance of matching and sorting (n=164): time 0.01774/1.094, allocations: 7.072 MB / 0.536 GB, free: 77.57 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.498e-05/1.094, allocations: 69.56 kB / 0.5361 GB, free: 77.5 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004014/1.098, allocations: 1.834 MB / 0.5379 GB, free: 77.29 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002965/1.099, allocations: 51.73 kB / 0.5379 GB, free: 77.26 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001039/1.1, allocations: 1.545 MB / 0.5394 GB, free: 76.65 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005689/1.1, allocations: 0.5578 MB / 0.54 GB, free: 76.33 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001518/1.101, allocations: 40.97 kB / 0.54 GB, free: 76.33 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001624/1.101, allocations: 395.9 kB / 0.5404 GB, free: 76.01 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001836/1.103, allocations: 0.8497 MB / 0.5412 GB, free: 76 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002151/1.105, allocations: 1.458 MB / 0.5427 GB, free: 75.3 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002246/1.107, allocations: 1.115 MB / 0.5437 GB, free: 75.28 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.96e-05/1.107, allocations: 5.938 kB / 0.5438 GB, free: 75.28 MB / 410.7 MB Notification: Performance of matching and sorting (n=259) (initialization): time 0.006157/1.113, allocations: 2.825 MB / 0.5465 GB, free: 75.12 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.332e-05/1.113, allocations: 12.91 kB / 0.5465 GB, free: 75.12 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.002e-05/1.113, allocations: 18.5 kB / 0.5465 GB, free: 75.12 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001395/1.115, allocations: 433.4 kB / 0.547 GB, free: 75.09 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002477/1.117, allocations: 472.5 kB / 0.5474 GB, free: 75.09 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008278/1.126, allocations: 5.703 MB / 0.553 GB, free: 72.45 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002419/1.128, allocations: 120.9 kB / 0.5531 GB, free: 72.45 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003399/1.128, allocations: 90.41 kB / 0.5532 GB, free: 72.45 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 85 * 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 (228): * Single equations (assignments): 225 * 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,72.0%) 25,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002644/1.131, allocations: 1.069 MB / 0.5542 GB, free: 72.32 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005978/1.132, allocations: 227.6 kB / 0.5544 GB, free: 72.2 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005868/1.138, allocations: 2.606 MB / 0.557 GB, free: 72.04 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.607e-05/1.138, allocations: 19.56 kB / 0.557 GB, free: 72.04 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.26e-05/1.138, allocations: 7.781 kB / 0.557 GB, free: 72.04 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.256e-05/1.138, allocations: 9.703 kB / 0.557 GB, free: 72.04 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01265/1.15, allocations: 6.095 MB / 0.563 GB, free: 71.53 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.275e-05/1.15, allocations: 8.469 kB / 0.563 GB, free: 71.53 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001571/1.152, allocations: 248.4 kB / 0.5632 GB, free: 71.53 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001798/1.154, allocations: 0.5491 MB / 0.5638 GB, free: 71.4 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002213/1.154, allocations: 36.36 kB / 0.5638 GB, free: 71.38 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01149/1.166, allocations: 8.482 MB / 0.5721 GB, free: 65.07 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.121e-06/1.166, allocations: 3.688 kB / 0.5721 GB, free: 65.07 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007527/1.173, allocations: 3.992 MB / 0.576 GB, free: 63.09 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001536/1.175, allocations: 0.5061 MB / 0.5765 GB, free: 62.74 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005189/1.175, allocations: 33.69 kB / 0.5765 GB, free: 62.72 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001632/1.177, allocations: 84.41 kB / 0.5766 GB, free: 62.7 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003027/1.177, allocations: 123.9 kB / 0.5767 GB, free: 62.68 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001433/1.177, allocations: 40.84 kB / 0.5767 GB, free: 62.67 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003085/1.181, allocations: 1.407 MB / 0.5781 GB, free: 62.11 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.015e-06/1.181, allocations: 0 / 0.5781 GB, free: 62.11 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003712/1.184, allocations: 0.6808 MB / 0.5788 GB, free: 62.03 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 6 (smpm.inertiaRotor.w,smpm.stator.core.Phi.im,smpm.stator.zeroInductor.i0,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 (121): * Single equations (assignments): 118 * 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 {(6,63.9%) 23,(1,100.0%) 1,(3,88.9%) 15} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008625/1.185, allocations: 462.3 kB / 0.5792 GB, free: 61.89 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005421/1.191, allocations: 2.694 MB / 0.5818 GB, free: 60.71 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.79e-06/1.191, allocations: 0 / 0.5818 GB, free: 60.71 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003509/1.194, allocations: 1.71 MB / 0.5835 GB, free: 59.83 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003288/1.198, allocations: 0.5073 MB / 0.584 GB, free: 59.69 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01526/1.213, allocations: 7.73 MB / 0.5916 GB, free: 55.4 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003703/1.217, allocations: 2.471 MB / 0.594 GB, free: 54.34 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009639/1.218, allocations: 172.1 kB / 0.5941 GB, free: 54.32 MB / 410.7 MB Notification: Performance of SimCode: time 1.582e-06/1.218, allocations: 0 / 0.5941 GB, free: 54.32 MB / 410.7 MB Notification: Performance of Templates: time 0.3428/1.56, allocations: 89.53 MB / 0.6816 GB, free: 80.66 MB / 410.7 MB