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.SMPM_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.SMPM_Inverter,tolerance=1e-05,outputFormat="mat",numberOfIntervals=6000,variableFilter="time|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w|smpmE.idq_dr.1.|smpmE.idq_rr.2.|smpmE.idq_sr.1.|smpmE.idq_sr.2.|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpmM.stator.strayReluctance.port_p.Phi.im|smpmM.stator.strayReluctance.port_p.Phi.re|vfController.x",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter") Notification: Performance of loadModel(Modelica): time 1.917/1.917, allocations: 171.1 MB / 186.7 MB, free: 1.137 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005091/0.0005092, allocations: 11.98 kB / 233.9 MB, free: 2.383 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1083/0.1088, allocations: 38.77 MB / 272.6 MB, free: 11.54 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4929/0.6018, allocations: 116.9 MB / 389.6 MB, free: 5.258 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002963/0.6021, allocations: 105.2 kB / 389.7 MB, free: 5.199 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7119/1.314, allocations: 118.5 MB / 0.4962 GB, free: 55.88 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.034e-06/1.314, allocations: 0 / 0.4962 GB, free: 55.88 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0006002/1.315, allocations: 131.9 kB / 0.4964 GB, free: 55.75 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: 1354 * Number of variables: 1354 Notification: Performance of Generate backend data structure: time 0.02289/1.338, allocations: 5.44 MB / 0.5017 GB, free: 50.23 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.515e-05/1.338, allocations: 11.97 kB / 0.5017 GB, free: 50.21 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005259/1.343, allocations: 0.7855 MB / 0.5025 GB, free: 49.42 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01238/1.355, allocations: 3.667 MB / 0.506 GB, free: 45.68 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005101/1.356, allocations: 390.3 kB / 0.5064 GB, free: 45.3 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00222/1.358, allocations: 0.4999 MB / 0.5069 GB, free: 44.8 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02296/1.381, allocations: 6.65 MB / 0.5134 GB, free: 37.94 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003355/1.382, allocations: 15.89 kB / 0.5134 GB, free: 37.93 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001828/1.383, allocations: 212 kB / 0.5136 GB, free: 37.72 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002932/1.384, allocations: 238.2 kB / 0.5138 GB, free: 37.48 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01788/1.402, allocations: 5.182 MB / 0.5189 GB, free: 32.29 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05625/1.458, allocations: 21.1 MB / 0.5395 GB, free: 10.64 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007562/1.466, allocations: 4.089 MB / 0.5435 GB, free: 6.25 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006227/1.466, allocations: 155 kB / 0.5436 GB, free: 6.082 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.531e-05/1.466, allocations: 60.5 kB / 0.5437 GB, free: 6.016 MB / 346.7 MB Notification: Performance of pre-optimization done (n=226): time 5.3e-06/1.466, allocations: 0 / 0.5437 GB, free: 6.016 MB / 346.7 MB Notification: Performance of matching and sorting (n=273): time 0.3266/1.793, allocations: 14.2 MB / 0.5576 GB, free: 53.14 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.709e-05/1.793, allocations: 80.09 kB / 0.5577 GB, free: 53.07 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007915/1.801, allocations: 2.971 MB / 0.5606 GB, free: 52.82 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006543/1.802, allocations: 71.77 kB / 0.5606 GB, free: 52.79 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00245/1.804, allocations: 2.37 MB / 0.5629 GB, free: 51.91 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001423/1.806, allocations: 0.9385 MB / 0.5639 GB, free: 51.32 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003327/1.806, allocations: 65.81 kB / 0.5639 GB, free: 51.32 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002364/1.806, allocations: 438 kB / 0.5643 GB, free: 51.01 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004191/1.81, allocations: 1.479 MB / 0.5658 GB, free: 51 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004836/1.815, allocations: 2.384 MB / 0.5681 GB, free: 49.96 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005268/1.821, allocations: 1.901 MB / 0.57 GB, free: 49.92 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.31e-05/1.821, allocations: 13.3 kB / 0.57 GB, free: 49.91 MB / 346.7 MB Notification: Performance of matching and sorting (n=422) (initialization): time 0.01509/1.836, allocations: 5.268 MB / 0.5751 GB, free: 49.44 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.623e-05/1.836, allocations: 17.69 kB / 0.5751 GB, free: 49.44 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.199e-05/1.836, allocations: 32 kB / 0.5752 GB, free: 49.44 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004078/1.84, allocations: 0.98 MB / 0.5761 GB, free: 49.38 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005378/1.846, allocations: 0.7251 MB / 0.5768 GB, free: 49.38 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02186/1.867, allocations: 13.73 MB / 0.5902 GB, free: 42.66 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004897/1.872, allocations: 193.4 kB / 0.5904 GB, free: 42.59 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009022/1.873, allocations: 134.3 kB / 0.5906 GB, free: 42.57 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 127 * 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 (364): * Single equations (assignments): 357 * 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%) 23,(1,100.0%) 1,(4,93.8%) 18,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004865/1.878, allocations: 1.574 MB / 0.5921 GB, free: 41.77 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001162/1.879, allocations: 352.8 kB / 0.5924 GB, free: 41.59 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01351/1.893, allocations: 4.642 MB / 0.597 GB, free: 39.56 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.344e-05/1.893, allocations: 27.31 kB / 0.597 GB, free: 39.56 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.337e-05/1.893, allocations: 11.09 kB / 0.597 GB, free: 39.56 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.07e-05/1.893, allocations: 13.69 kB / 0.597 GB, free: 39.56 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03042/1.924, allocations: 10.52 MB / 0.6073 GB, free: 35.07 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.547e-05/1.924, allocations: 3.781 kB / 0.6073 GB, free: 35.07 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00361/1.927, allocations: 431 kB / 0.6077 GB, free: 35.06 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004689/1.932, allocations: 1.051 MB / 0.6087 GB, free: 34.76 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000601/1.933, allocations: 72.52 kB / 0.6088 GB, free: 34.71 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02562/1.958, allocations: 17.23 MB / 0.6256 GB, free: 21.82 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.109e-05/1.958, allocations: 10.25 kB / 0.6256 GB, free: 21.82 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01714/1.976, allocations: 6.647 MB / 0.6321 GB, free: 18.71 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002963/1.979, allocations: 0.7312 MB / 0.6328 GB, free: 18.14 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001536/1.98, allocations: 66.03 kB / 0.6329 GB, free: 18.09 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00405/1.984, allocations: 153 kB / 0.633 GB, free: 17.98 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001025/1.985, allocations: 204.6 kB / 0.6332 GB, free: 17.85 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002907/1.986, allocations: 80.16 kB / 0.6333 GB, free: 17.78 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.005203/1.991, allocations: 1.995 MB / 0.6353 GB, free: 16.11 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.91e-07/1.991, allocations: 0 / 0.6353 GB, free: 16.11 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.00682/1.998, allocations: 1.081 MB / 0.6363 GB, free: 15.04 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 13 (vfController.x,smpmM.inertiaRotor.w,smpmM.stator.core.Phi.re,smpmM.stator.core.Phi.im,smpmM.stator.strayReluctance.Phi.re,smpmM.stator.strayReluctance.Phi.im,smpmE.inertiaRotor.w,smpmE.idq_sr[1],smpmE.idq_sr[2],smpmE.idq_rr[2],smpmE.idq_dr[1],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 (212): * 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): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(6,72.2%) 23,(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.001401/1.999, allocations: 0.5051 MB / 0.6368 GB, free: 14.66 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.01255/2.012, allocations: 4.791 MB / 0.6415 GB, free: 10.27 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.246e-05/2.012, allocations: 0 / 0.6415 GB, free: 10.27 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008524/2.02, allocations: 3.071 MB / 0.6445 GB, free: 7.438 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007186/2.028, allocations: 0.8735 MB / 0.6453 GB, free: 6.754 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02969/2.057, allocations: 12.05 MB / 0.6571 GB, free: 11.69 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008157/2.066, allocations: 3.516 MB / 0.6605 GB, free: 9.035 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.005957/2.072, allocations: 0.7324 MB / 0.6613 GB, free: 8.527 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001615/2.073, allocations: 226.7 kB / 0.6615 GB, free: 8.316 MB / 362.7 MB Notification: Performance of SimCode: time 1.452e-06/2.073, allocations: 0 / 0.6615 GB, free: 8.316 MB / 362.7 MB Notification: Performance of Templates: time 0.452/2.525, allocations: 55.61 MB / 0.7158 GB, free: 64.18 MB / 378.7 MB