Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.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) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.idq_sr.1.|smpm.idq_sr.2.|voltageController.PI_d.x|voltageController.PI_q.x",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource") Notification: Performance of loadModel(Modelica): time 2.085/2.085, allocations: 194.8 MB / 211.7 MB, free: 3.008 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004701/0.0004702, allocations: 12 kB / 264.6 MB, free: 12.93 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09238/0.09288, allocations: 44.49 MB / 309 MB, free: 372 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5168/0.6097, allocations: 108.4 MB / 417.4 MB, free: 10.4 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003051/0.6101, allocations: 97.05 kB / 417.5 MB, free: 10.39 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3419/0.952, allocations: 58.23 MB / 475.8 MB, free: 12.38 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.165e-06/0.952, allocations: 0 / 475.8 MB, free: 12.38 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0004155/0.9525, allocations: 79.88 kB / 475.8 MB, free: 12.3 MB / 362.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.0138/0.9663, allocations: 3.244 MB / 479.1 MB, free: 8.988 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.994e-05/0.9664, allocations: 8.031 kB / 479.1 MB, free: 8.98 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002699/0.9691, allocations: 399.5 kB / 479.5 MB, free: 8.586 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01046/0.9796, allocations: 2.18 MB / 481.7 MB, free: 6.352 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003614/0.98, allocations: 217.6 kB / 481.9 MB, free: 6.137 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001364/0.9814, allocations: 279.9 kB / 482.1 MB, free: 5.863 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01263/0.9941, allocations: 3.632 MB / 485.8 MB, free: 2.082 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001345/0.9943, allocations: 7.984 kB / 485.8 MB, free: 2.074 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005339/0.9948, allocations: 124 kB / 485.9 MB, free: 1.953 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002308/0.9951, allocations: 133.5 kB / 486 MB, free: 1.82 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01057/1.006, allocations: 2.922 MB / 489 MB, free: 14.89 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03276/1.038, allocations: 11.64 MB / 0.4889 GB, free: 2.91 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004493/1.043, allocations: 1.95 MB / 0.4908 GB, free: 0.8438 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006106/1.044, allocations: 233.2 kB / 0.491 GB, free: 0.582 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.048e-05/1.044, allocations: 47.86 kB / 0.491 GB, free: 0.5273 MB / 378.7 MB Notification: Performance of pre-optimization done (n=127): time 4.278e-06/1.044, allocations: 0 / 0.491 GB, free: 0.5273 MB / 378.7 MB Notification: Performance of matching and sorting (n=148): time 0.02815/1.072, allocations: 7.453 MB / 0.4983 GB, free: 8.965 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.268e-05/1.072, allocations: 80.61 kB / 0.4984 GB, free: 8.875 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004758/1.077, allocations: 1.947 MB / 0.5003 GB, free: 6.887 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004111/1.077, allocations: 49.7 kB / 0.5003 GB, free: 6.832 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001551/1.079, allocations: 1.405 MB / 0.5017 GB, free: 5.41 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009571/1.08, allocations: 0.5045 MB / 0.5022 GB, free: 4.898 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000207/1.08, allocations: 40 kB / 0.5022 GB, free: 4.859 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002551/1.08, allocations: 373.8 kB / 0.5026 GB, free: 4.488 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002682/1.083, allocations: 0.8823 MB / 0.5035 GB, free: 3.605 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003392/1.086, allocations: 1.411 MB / 0.5048 GB, free: 1.957 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003327/1.09, allocations: 1.107 MB / 0.5059 GB, free: 0.8516 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-05/1.09, allocations: 12 kB / 0.5059 GB, free: 0.8398 MB / 394.7 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.01006/1.1, allocations: 3.027 MB / 0.5089 GB, free: 13.79 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.541e-05/1.1, allocations: 13.06 kB / 0.5089 GB, free: 13.78 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.337e-05/1.1, allocations: 24 kB / 0.5089 GB, free: 13.76 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002476/1.103, allocations: 0.5411 MB / 0.5094 GB, free: 13.21 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003421/1.106, allocations: 439.3 kB / 0.5099 GB, free: 12.78 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0136/1.12, allocations: 6.459 MB / 0.5162 GB, free: 6.047 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002996/1.123, allocations: 147.7 kB / 0.5163 GB, free: 5.902 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004832/1.123, allocations: 80 kB / 0.5164 GB, free: 5.824 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 76 * 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 (208): * Single equations (assignments): 205 * 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,76.0%) 20,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003029/1.126, allocations: 0.907 MB / 0.5173 GB, free: 4.906 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008123/1.127, allocations: 209.4 kB / 0.5175 GB, free: 4.699 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008379/1.135, allocations: 2.668 MB / 0.5201 GB, free: 2.012 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.44e-05/1.136, allocations: 15.98 kB / 0.5201 GB, free: 1.996 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.774e-05/1.136, allocations: 8 kB / 0.5201 GB, free: 1.988 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.578e-05/1.136, allocations: 7.969 kB / 0.5201 GB, free: 1.98 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3141/1.45, allocations: 5.714 MB / 0.5257 GB, free: 99.71 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.007e-05/1.45, allocations: 2.219 kB / 0.5257 GB, free: 99.71 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002263/1.452, allocations: 254.4 kB / 0.5259 GB, free: 99.71 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002771/1.455, allocations: 0.5845 MB / 0.5265 GB, free: 99.69 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003615/1.455, allocations: 34.19 kB / 0.5265 GB, free: 99.69 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01346/1.469, allocations: 8.222 MB / 0.5346 GB, free: 95.88 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.35e-06/1.469, allocations: 5.531 kB / 0.5346 GB, free: 95.88 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009833/1.479, allocations: 3.87 MB / 0.5384 GB, free: 95.59 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001676/1.48, allocations: 488.6 kB / 0.5388 GB, free: 95.49 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005503/1.481, allocations: 42.17 kB / 0.5389 GB, free: 95.49 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001989/1.483, allocations: 100.5 kB / 0.539 GB, free: 95.49 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003576/1.483, allocations: 105.2 kB / 0.5391 GB, free: 95.49 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001493/1.484, allocations: 40.17 kB / 0.5391 GB, free: 95.49 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003177/1.487, allocations: 1.328 MB / 0.5404 GB, free: 95.34 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.613e-06/1.487, allocations: 0 / 0.5404 GB, free: 95.34 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003396/1.49, allocations: 0.6178 MB / 0.541 GB, free: 95.34 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 6 (smpm.inertiaRotor.w,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 (122): * Single equations (assignments): 119 * 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 {(5,76.0%) 20,(1,100.0%) 1,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008895/1.491, allocations: 399 kB / 0.5414 GB, free: 95.24 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005908/1.497, allocations: 2.625 MB / 0.5439 GB, free: 94.87 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.976e-06/1.497, allocations: 3.875 kB / 0.5439 GB, free: 94.87 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003591/1.501, allocations: 1.607 MB / 0.5455 GB, free: 94.5 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003823/1.505, allocations: 494.8 kB / 0.546 GB, free: 94.47 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0142/1.519, allocations: 6.766 MB / 0.5526 GB, free: 91.71 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003581/1.522, allocations: 2.272 MB / 0.5548 GB, free: 90.93 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002897/1.525, allocations: 496.8 kB / 0.5553 GB, free: 90.89 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008904/1.526, allocations: 151 kB / 0.5554 GB, free: 90.88 MB / 410.7 MB Notification: Performance of SimCode: time 1.443e-06/1.526, allocations: 4 kB / 0.5554 GB, free: 90.88 MB / 410.7 MB Notification: Performance of Templates: time 0.08652/1.613, allocations: 32.77 MB / 0.5874 GB, free: 87.67 MB / 410.7 MB