Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=3000,variableFilter="time|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w|smrE.idq_rr.1.|smrE.idq_rr.2.|smrE.idq_sr.1.|smrE.idq_sr.2.|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smrM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smrM.stator.strayReluctance.port_p.Phi.im|smrM.stator.strayReluctance.port_p.Phi.re|vfController.x",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter") Notification: Performance of loadModel(Modelica): time 1.679/1.679, allocations: 171.2 MB / 186.7 MB, free: 1.125 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003458/0.0003459, allocations: 8 kB / 233.9 MB, free: 2.387 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08576/0.08613, allocations: 38.77 MB / 272.6 MB, free: 11.54 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4193/0.5055, allocations: 112.4 MB / 385 MB, free: 9.648 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002945/0.5058, allocations: 95.5 kB / 385.1 MB, free: 9.598 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6856/1.192, allocations: 110.6 MB / 495.7 MB, free: 67.72 MB / 346.7 MB Notification: Performance of FrontEnd: time 4.909e-06/1.192, allocations: 0 / 495.7 MB, free: 67.72 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0007304/1.192, allocations: 137.2 kB / 495.9 MB, free: 67.59 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1292 * Number of variables: 1292 Notification: Performance of Generate backend data structure: time 0.02895/1.221, allocations: 5.189 MB / 0.4893 GB, free: 62.34 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.303e-05/1.221, allocations: 8.031 kB / 0.4893 GB, free: 62.33 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006936/1.228, allocations: 0.739 MB / 0.49 GB, free: 61.58 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01621/1.245, allocations: 3.477 MB / 0.4934 GB, free: 58.07 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006449/1.245, allocations: 368.9 kB / 0.4938 GB, free: 57.71 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002807/1.248, allocations: 490.7 kB / 0.4942 GB, free: 57.24 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02388/1.272, allocations: 6.4 MB / 0.5005 GB, free: 50.63 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000297/1.272, allocations: 15.89 kB / 0.5005 GB, free: 50.62 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001739/1.274, allocations: 215.1 kB / 0.5007 GB, free: 50.41 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00027/1.275, allocations: 221.8 kB / 0.5009 GB, free: 50.19 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01694/1.291, allocations: 5.02 MB / 0.5058 GB, free: 45.16 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05093/1.342, allocations: 19.99 MB / 0.5253 GB, free: 24.84 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006971/1.349, allocations: 4.046 MB / 0.5293 GB, free: 20.49 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005506/1.35, allocations: 154 kB / 0.5294 GB, free: 20.33 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.026e-05/1.35, allocations: 56.56 kB / 0.5295 GB, free: 20.27 MB / 346.7 MB Notification: Performance of pre-optimization done (n=215): time 5.22e-06/1.35, allocations: 4 kB / 0.5295 GB, free: 20.26 MB / 346.7 MB Notification: Performance of matching and sorting (n=257): time 0.04927/1.399, allocations: 13.35 MB / 0.5425 GB, free: 6.66 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.918e-05/1.4, allocations: 89.36 kB / 0.5426 GB, free: 6.559 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005645/1.405, allocations: 2.725 MB / 0.5453 GB, free: 3.82 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006175/1.406, allocations: 69.7 kB / 0.5454 GB, free: 3.746 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001855/1.408, allocations: 2.225 MB / 0.5475 GB, free: 1.508 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001225/1.409, allocations: 0.8816 MB / 0.5484 GB, free: 0.6328 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003187/1.409, allocations: 60 kB / 0.5484 GB, free: 0.5742 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001987/1.41, allocations: 428.4 kB / 0.5489 GB, free: 152 kB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.293/1.703, allocations: 1.415 MB / 0.5502 GB, free: 61.49 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007618/1.71, allocations: 2.245 MB / 0.5524 GB, free: 60.55 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006791/1.717, allocations: 1.818 MB / 0.5542 GB, free: 60.5 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.811e-05/1.717, allocations: 7.5 kB / 0.5542 GB, free: 60.5 MB / 346.7 MB Notification: Performance of matching and sorting (n=394) (initialization): time 0.02105/1.738, allocations: 5.014 MB / 0.5591 GB, free: 60.22 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.195e-05/1.738, allocations: 20.52 kB / 0.5591 GB, free: 60.22 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.136e-05/1.738, allocations: 26.09 kB / 0.5591 GB, free: 60.22 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004868/1.743, allocations: 0.9643 MB / 0.5601 GB, free: 60.16 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005383/1.749, allocations: 0.6765 MB / 0.5607 GB, free: 60.16 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02094/1.77, allocations: 13.16 MB / 0.5736 GB, free: 53.73 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004399/1.774, allocations: 180.5 kB / 0.5738 GB, free: 53.73 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007949/1.775, allocations: 127.7 kB / 0.5739 GB, free: 53.73 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 115 * 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 (339): * Single equations (assignments): 332 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(6,72.2%) 22,(1,100.0%) 1,(4,93.8%) 16,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004363/1.779, allocations: 1.514 MB / 0.5754 GB, free: 53.62 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001007/1.78, allocations: 317 kB / 0.5757 GB, free: 53.62 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01188/1.792, allocations: 4.479 MB / 0.58 GB, free: 53.17 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.024e-05/1.792, allocations: 24.78 kB / 0.5801 GB, free: 53.17 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.313e-05/1.792, allocations: 13.94 kB / 0.5801 GB, free: 53.17 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.893e-05/1.793, allocations: 11.34 kB / 0.5801 GB, free: 53.17 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02528/1.818, allocations: 9.811 MB / 0.5897 GB, free: 49.43 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.869e-05/1.818, allocations: 6.188 kB / 0.5897 GB, free: 49.43 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003201/1.821, allocations: 400.7 kB / 0.5901 GB, free: 49.42 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004402/1.826, allocations: 1.045 MB / 0.5911 GB, free: 49.12 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000524/1.826, allocations: 66.08 kB / 0.5911 GB, free: 49.08 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02466/1.851, allocations: 16.89 MB / 0.6076 GB, free: 36.5 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.375e-06/1.851, allocations: 8.406 kB / 0.6077 GB, free: 36.5 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01625/1.867, allocations: 6.373 MB / 0.6139 GB, free: 33.56 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002809/1.87, allocations: 0.691 MB / 0.6146 GB, free: 33.11 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001855/1.872, allocations: 59.72 kB / 0.6146 GB, free: 33.07 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0056/1.878, allocations: 148.8 kB / 0.6148 GB, free: 33.04 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001361/1.879, allocations: 194.5 kB / 0.6149 GB, free: 33.01 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003548/1.879, allocations: 73.5 kB / 0.615 GB, free: 32.99 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.006814/1.886, allocations: 1.833 MB / 0.6168 GB, free: 32.29 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.022e-06/1.886, allocations: 3.828 kB / 0.6168 GB, free: 32.29 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.007921/1.894, allocations: 1.023 MB / 0.6178 GB, free: 32.19 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 13 (vfController.x,smrM.inertiaRotor.w,smrM.stator.core.Phi.re,smrM.stator.core.Phi.im,smrM.stator.strayReluctance.Phi.re,smrM.stator.strayReluctance.Phi.im,smrE.inertiaRotor.w,smrE.idq_sr[1],smrE.idq_sr[2],smrE.idq_dr[1],smrE.idq_dr[2],loadInertiaM.phi,loadInertiaE.phi) * 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 (197): * Single equations (assignments): 190 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(6,75.0%) 22,(4,93.8%) 16,(1,100.0%) 5,(1,100.0%) 8,(1,100.0%) 1,(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.001669/1.896, allocations: 434.1 kB / 0.6182 GB, free: 32.03 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.01334/1.909, allocations: 4.618 MB / 0.6227 GB, free: 28.78 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.017e-05/1.909, allocations: 0 / 0.6227 GB, free: 28.78 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007962/1.917, allocations: 2.992 MB / 0.6256 GB, free: 26.03 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006272/1.924, allocations: 0.7688 MB / 0.6264 GB, free: 25.43 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02545/1.949, allocations: 11.49 MB / 0.6376 GB, free: 14.93 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005685/1.955, allocations: 3.4 MB / 0.6409 GB, free: 12.35 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.004142/1.959, allocations: 0.6979 MB / 0.6416 GB, free: 11.86 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001408/1.961, allocations: 209.2 kB / 0.6418 GB, free: 11.66 MB / 346.7 MB Notification: Performance of SimCode: time 8.31e-07/1.961, allocations: 0 / 0.6418 GB, free: 11.66 MB / 346.7 MB Notification: Performance of Templates: time 0.1483/2.109, allocations: 51.19 MB / 0.6918 GB, free: 24 kB / 378.7 MB