Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=3000,variableFilter="time|loadInertia3.phi|loadInertia3.w|loadInertiaM.phi|loadInertiaM.w|smr3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smr3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smr3.stator.strayReluctance.port_p.Phi.im|smr3.stator.strayReluctance.port_p.Phi.re|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|vfController3.x|vfControllerM.x",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase") Notification: Performance of loadModel(Modelica): time 1.802/1.802, allocations: 171.2 MB / 186.7 MB, free: 1.047 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003577/0.0003579, allocations: 4 kB / 233.2 MB, free: 3.051 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06954/0.06993, allocations: 38.78 MB / 271.9 MB, free: 12.19 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase): time 0.02662/0.0966, allocations: 18.07 MB / 290 MB, free: 10.05 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01381/0.1105, allocations: 5.804 MB / 295.8 MB, free: 4.23 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00423/0.1147, allocations: 131.4 kB / 295.9 MB, free: 4.102 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004336/0.1191, allocations: 1.115 MB / 297.1 MB, free: 2.98 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007364/0.1265, allocations: 1.679 MB / 298.7 MB, free: 1.297 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004349/0.1309, allocations: 0.9343 MB / 299.7 MB, free: 376 kB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.1948/0.3257, allocations: 5.329 MB / 305 MB, free: 9.918 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01039/0.3362, allocations: 5.011 MB / 310 MB, free: 9.012 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005548/0.3418, allocations: 2.457 MB / 312.5 MB, free: 9.008 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005633/0.3474, allocations: 2.956 MB / 315.4 MB, free: 9.004 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001758/0.3492, allocations: 437.6 kB / 315.8 MB, free: 9.004 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00331/0.3526, allocations: 0.553 MB / 316.4 MB, free: 9.004 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002493/0.3551, allocations: 1.535 MB / 317.9 MB, free: 9 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003155/0.3583, allocations: 1.472 MB / 319.4 MB, free: 8.965 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01329/0.3716, allocations: 11.22 MB / 330.6 MB, free: 1.266 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.761e-06/0.3717, allocations: 0 / 330.6 MB, free: 1.266 MB / 250.7 MB Notification: Performance of FrontEnd: time 3.196e-06/0.3717, allocations: 0 / 330.6 MB, free: 1.266 MB / 250.7 MB Notification: Performance of Transformations before backend: time 0.0003203/0.372, allocations: 0 / 330.6 MB, free: 1.266 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1739 * Number of variables: 1739 Notification: Performance of Generate backend data structure: time 0.02295/0.395, allocations: 7.153 MB / 337.8 MB, free: 10.73 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.416e-05/0.395, allocations: 8.031 kB / 337.8 MB, free: 10.72 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007535/0.4026, allocations: 1.223 MB / 339 MB, free: 9.527 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01067/0.4133, allocations: 4.053 MB / 343.1 MB, free: 6.859 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006071/0.414, allocations: 496.4 kB / 343.6 MB, free: 6.582 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002025/0.416, allocations: 0.6441 MB / 344.2 MB, free: 6.152 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02564/0.4417, allocations: 8.756 MB / 353 MB, free: 13.48 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002565/0.442, allocations: 11.84 kB / 353 MB, free: 13.47 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001184/0.4432, allocations: 268 kB / 353.2 MB, free: 13.21 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003802/0.4436, allocations: 305.2 kB / 353.5 MB, free: 12.91 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02156/0.4651, allocations: 7.153 MB / 360.7 MB, free: 5.742 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06394/0.5291, allocations: 26.53 MB / 387.2 MB, free: 10.81 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009352/0.5385, allocations: 5.374 MB / 392.6 MB, free: 5.043 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002414/0.5388, allocations: 33.69 kB / 392.6 MB, free: 5.016 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.495e-05/0.5389, allocations: 60.56 kB / 392.7 MB, free: 4.949 MB / 314.7 MB Notification: Performance of pre-optimization done (n=254): time 7.228e-06/0.5389, allocations: 0 / 392.7 MB, free: 4.949 MB / 314.7 MB Notification: Performance of matching and sorting (n=296): time 0.04225/0.5812, allocations: 13.26 MB / 405.9 MB, free: 7.484 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.091e-05/0.5813, allocations: 85.73 kB / 406 MB, free: 7.387 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007364/0.5887, allocations: 3.205 MB / 409.2 MB, free: 4.184 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004981/0.5892, allocations: 69.7 kB / 409.3 MB, free: 4.109 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00293/0.5922, allocations: 2.669 MB / 412 MB, free: 1.422 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001532/0.5937, allocations: 1.001 MB / 413 MB, free: 440 kB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003642/0.5941, allocations: 71.39 kB / 413 MB, free: 372 kB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0004178/0.5946, allocations: 458.2 kB / 413.5 MB, free: 15.91 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00411/0.5987, allocations: 1.533 MB / 415 MB, free: 14.37 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005231/0.604, allocations: 2.479 MB / 417.5 MB, free: 11.5 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005182/0.6092, allocations: 2.006 MB / 419.5 MB, free: 9.477 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.551e-05/0.6093, allocations: 8 kB / 419.5 MB, free: 9.469 MB / 346.7 MB Notification: Performance of matching and sorting (n=448) (initialization): time 0.01422/0.6235, allocations: 5.171 MB / 424.7 MB, free: 4.215 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.438e-05/0.6236, allocations: 20.12 kB / 424.7 MB, free: 4.195 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.026e-05/0.6237, allocations: 28 kB / 424.7 MB, free: 4.168 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003482/0.6272, allocations: 0.9153 MB / 425.6 MB, free: 3.23 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004003/0.6312, allocations: 0.7371 MB / 426.4 MB, free: 2.492 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02415/0.6554, allocations: 14.78 MB / 441.2 MB, free: 2.926 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003337/0.6588, allocations: 151.7 kB / 441.3 MB, free: 2.777 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006255/0.6595, allocations: 147.9 kB / 441.4 MB, free: 2.633 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 128 * 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 (382): * Single equations (assignments): 374 * 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: 6 * 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: 6 {(4,93.8%) 16,(1,100.0%) 1,(1,100.0%) 5,(4,93.8%) 16,(1,100.0%) 1,(3,77.8%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00539/0.6649, allocations: 2.058 MB / 443.5 MB, free: 0.5625 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001016/0.6659, allocations: 367.5 kB / 443.9 MB, free: 204 kB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2111/0.877, allocations: 4.783 MB / 448.6 MB, free: 114.1 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.425e-05/0.8771, allocations: 29.06 kB / 448.7 MB, free: 114.1 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.159e-05/0.8772, allocations: 15.78 kB / 448.7 MB, free: 114.1 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.241e-05/0.8773, allocations: 16.98 kB / 448.7 MB, free: 114.1 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0274/0.9047, allocations: 11.69 MB / 460.4 MB, free: 109 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.251e-05/0.9047, allocations: 7.438 kB / 460.4 MB, free: 109 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002542/0.9073, allocations: 437.3 kB / 460.8 MB, free: 108.9 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003619/0.911, allocations: 1.058 MB / 461.9 MB, free: 108.6 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004229/0.9114, allocations: 75.3 kB / 462 MB, free: 108.5 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02379/0.9352, allocations: 18.46 MB / 480.4 MB, free: 94.64 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.997e-06/0.9353, allocations: 7.906 kB / 480.4 MB, free: 94.64 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01436/0.9496, allocations: 6.864 MB / 487.3 MB, free: 91.48 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002405/0.9521, allocations: 0.7725 MB / 488.1 MB, free: 91.15 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001011/0.9531, allocations: 61.34 kB / 488.1 MB, free: 91.11 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002589/0.9558, allocations: 140 kB / 488.3 MB, free: 91.05 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000662/0.9565, allocations: 231.6 kB / 488.5 MB, free: 90.92 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000254/0.9567, allocations: 81.02 kB / 488.6 MB, free: 90.89 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.004485/0.9612, allocations: 2.165 MB / 490.7 MB, free: 89.09 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.037e-06/0.9613, allocations: 0 / 490.7 MB, free: 89.09 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.005639/0.9669, allocations: 1.156 MB / 491.9 MB, free: 87.93 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 14 (smrM.inertiaRotor.w,smrM.stator.core.Phi.re,smrM.stator.core.Phi.im,smrM.stator.strayReluctance.Phi.re,smrM.stator.strayReluctance.Phi.im,smr3.inertiaRotor.w,smr3.stator.core.Phi.re,smr3.stator.core.Phi.im,smr3.stator.strayReluctance.Phi.re,smr3.stator.strayReluctance.Phi.im,loadInertiaM.phi,loadInertia3.phi,vfController3.x,vfControllerM.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 (216): * Single equations (assignments): 209 * 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 {(4,93.8%) 16,(1,100.0%) 5,(4,93.8%) 16,(4,93.8%) 33,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000629/0.9676, allocations: 200.5 kB / 492.1 MB, free: 87.73 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.009796/0.9774, allocations: 5.083 MB / 497.2 MB, free: 82.54 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.062e-05/0.9774, allocations: 5.812 kB / 497.2 MB, free: 82.53 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006314/0.9838, allocations: 3.265 MB / 0.4887 GB, free: 79.2 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004834/0.9886, allocations: 0.9364 MB / 0.4896 GB, free: 78.27 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02514/1.014, allocations: 14.44 MB / 0.5037 GB, free: 63.78 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006059/1.02, allocations: 4.221 MB / 0.5078 GB, free: 59.53 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0013/1.021, allocations: 251.4 kB / 0.5081 GB, free: 59.29 MB / 362.7 MB Notification: Performance of SimCode: time 2.062e-06/1.021, allocations: 0 / 0.5081 GB, free: 59.29 MB / 362.7 MB Notification: Performance of Templates: time 0.7793/1.801, allocations: 310 MB / 0.8109 GB, free: 36.31 MB / 378.7 MB