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.AIMC_Inverter.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.AIMC_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter") Notification: Performance of loadModel(Modelica): time 1.848/1.848, allocations: 194.8 MB / 211.6 MB, free: 3 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000365/0.0003651, allocations: 8 kB / 263.9 MB, free: 13.59 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0817/0.08209, allocations: 44.5 MB / 308.4 MB, free: 1.023 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter): time 0.01592/0.09806, allocations: 10.39 MB / 318.7 MB, free: 6.598 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.009237/0.1073, allocations: 3.991 MB / 322.7 MB, free: 2.598 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002227/0.1096, allocations: 59.75 kB / 322.8 MB, free: 2.539 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002912/0.1125, allocations: 0.7501 MB / 323.5 MB, free: 1.785 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004712/0.1173, allocations: 1.102 MB / 324.7 MB, free: 0.6797 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002701/0.12, allocations: 0.6002 MB / 325.3 MB, free: 80 kB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.006247/0.1263, allocations: 2.713 MB / 328 MB, free: 13.36 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004267/0.1306, allocations: 2.17 MB / 330.1 MB, free: 11.15 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002578/0.1332, allocations: 1.214 MB / 331.3 MB, free: 9.93 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00308/0.1364, allocations: 1.475 MB / 332.8 MB, free: 8.449 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007923/0.1372, allocations: 200 kB / 333 MB, free: 8.254 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00172/0.1389, allocations: 363.8 kB / 333.4 MB, free: 7.898 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001333/0.1403, allocations: 0.7125 MB / 334.1 MB, free: 7.184 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00145/0.1418, allocations: 0.7149 MB / 334.8 MB, free: 6.461 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00822/0.1501, allocations: 5.361 MB / 340.2 MB, free: 1.086 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.765e-06/0.1501, allocations: 0 / 340.2 MB, free: 1.086 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.865e-06/0.1501, allocations: 8 kB / 340.2 MB, free: 1.078 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001234/0.1502, allocations: 0 / 340.2 MB, free: 1.078 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 822 * Number of variables: 822 Notification: Performance of Generate backend data structure: time 0.01203/0.1623, allocations: 3.665 MB / 343.8 MB, free: 13.34 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.703e-05/0.1624, allocations: 11.97 kB / 343.8 MB, free: 13.33 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006047/0.1684, allocations: 0.8076 MB / 344.7 MB, free: 12.52 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005683/0.1741, allocations: 2.122 MB / 346.8 MB, free: 10.34 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003673/0.1746, allocations: 234.2 kB / 347 MB, free: 10.11 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001063/0.1756, allocations: 307.9 kB / 347.3 MB, free: 9.805 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01191/0.1876, allocations: 4.219 MB / 351.5 MB, free: 5.539 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.292e-05/0.1877, allocations: 4 kB / 351.5 MB, free: 5.535 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004408/0.1882, allocations: 124 kB / 351.6 MB, free: 5.414 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002036/0.1884, allocations: 150.3 kB / 351.8 MB, free: 5.266 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01034/0.1987, allocations: 3.597 MB / 355.4 MB, free: 1.66 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03077/0.2295, allocations: 13.22 MB / 368.6 MB, free: 4.109 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2146/0.4442, allocations: 6.89 MB / 375.5 MB, free: 53.72 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007675/0.4519, allocations: 3.195 MB / 378.7 MB, free: 52.68 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.691e-05/0.452, allocations: 54.27 kB / 378.7 MB, free: 52.63 MB / 314.7 MB Notification: Performance of pre-optimization done (n=131): time 6.652e-06/0.452, allocations: 0 / 378.7 MB, free: 52.63 MB / 314.7 MB Notification: Performance of matching and sorting (n=135): time 0.01563/0.4676, allocations: 5.794 MB / 384.5 MB, free: 49.82 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.76e-05/0.4677, allocations: 64.84 kB / 384.6 MB, free: 49.75 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003119/0.4708, allocations: 1.645 MB / 386.3 MB, free: 49.11 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002339/0.4711, allocations: 51.42 kB / 386.3 MB, free: 49.05 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008506/0.472, allocations: 1.324 MB / 387.6 MB, free: 47.99 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000517/0.4725, allocations: 468.7 kB / 388.1 MB, free: 47.63 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001261/0.4726, allocations: 35.16 kB / 388.1 MB, free: 47.61 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001268/0.4728, allocations: 379.8 kB / 388.5 MB, free: 47.27 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001626/0.4744, allocations: 0.6895 MB / 389.2 MB, free: 47 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001906/0.4764, allocations: 1.139 MB / 390.3 MB, free: 46.18 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001946/0.4783, allocations: 0.8917 MB / 391.2 MB, free: 45.77 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-05/0.4784, allocations: 7.844 kB / 391.2 MB, free: 45.77 MB / 314.7 MB Notification: Performance of matching and sorting (n=208) (initialization): time 0.006082/0.4845, allocations: 2.289 MB / 393.5 MB, free: 44.73 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.068e-05/0.4846, allocations: 15.81 kB / 393.5 MB, free: 44.73 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.828e-05/0.4846, allocations: 11.81 kB / 393.5 MB, free: 44.73 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009567/0.4856, allocations: 266.8 kB / 393.8 MB, free: 44.63 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002027/0.4877, allocations: 375.9 kB / 394.2 MB, free: 44.59 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006083/0.4938, allocations: 5.758 MB / 399.9 MB, free: 39.65 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001746/0.4956, allocations: 84.23 kB / 400 MB, free: 39.62 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002314/0.4958, allocations: 70.53 kB / 400.1 MB, free: 39.6 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * 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 (188): * Single equations (assignments): 184 * 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: 3 * 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: 3 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002189/0.498, allocations: 1.004 MB / 401.1 MB, free: 39.02 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004856/0.4985, allocations: 180.3 kB / 401.2 MB, free: 38.93 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004962/0.5035, allocations: 2.277 MB / 403.5 MB, free: 37.5 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.828e-05/0.5036, allocations: 16.75 kB / 403.5 MB, free: 37.5 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.343e-05/0.5036, allocations: 3.469 kB / 403.5 MB, free: 37.5 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.385e-05/0.5036, allocations: 7.609 kB / 403.6 MB, free: 37.49 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01151/0.5152, allocations: 5.127 MB / 408.7 MB, free: 33.38 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.381e-05/0.5152, allocations: 4 kB / 408.7 MB, free: 33.37 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001134/0.5164, allocations: 199.4 kB / 408.9 MB, free: 33.18 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001487/0.5179, allocations: 444.6 kB / 409.3 MB, free: 32.73 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001818/0.5181, allocations: 39.98 kB / 409.4 MB, free: 32.7 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01073/0.5288, allocations: 10.21 MB / 419.6 MB, free: 21.85 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.489e-06/0.5289, allocations: 96 / 419.6 MB, free: 21.85 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006104/0.535, allocations: 3.219 MB / 422.8 MB, free: 18.54 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001057/0.5361, allocations: 422.7 kB / 423.2 MB, free: 18.1 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003117/0.5364, allocations: 36 kB / 423.2 MB, free: 18.07 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001116/0.5376, allocations: 71.94 kB / 423.3 MB, free: 18 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000273/0.5379, allocations: 113.1 kB / 423.4 MB, free: 17.89 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001094/0.538, allocations: 39.98 kB / 423.5 MB, free: 17.85 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.00192/0.5399, allocations: 1.126 MB / 424.6 MB, free: 16.73 MB / 314.7 MB Notification: Performance of sort global known variables: time 9.07e-07/0.5399, allocations: 0 / 424.6 MB, free: 16.73 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.002834/0.5428, allocations: 0.5391 MB / 425.1 MB, free: 16.19 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 7 (aimc.inertiaRotor.w,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,vfController.x,loadInertia.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 (98): * Single equations (assignments): 93 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 13,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004592/0.5433, allocations: 164.3 kB / 425.3 MB, free: 16.02 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.004117/0.5474, allocations: 2.195 MB / 427.5 MB, free: 13.76 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 8.088e-06/0.5475, allocations: 0 / 427.5 MB, free: 13.76 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003082/0.5506, allocations: 1.602 MB / 429.1 MB, free: 12.11 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002931/0.5535, allocations: 473.8 kB / 429.5 MB, free: 11.64 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01253/0.5661, allocations: 6.724 MB / 436.3 MB, free: 4.863 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002987/0.5692, allocations: 2.286 MB / 438.5 MB, free: 2.551 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000683/0.5699, allocations: 135.4 kB / 438.7 MB, free: 2.418 MB / 314.7 MB Notification: Performance of SimCode: time 2.239e-06/0.5699, allocations: 0 / 438.7 MB, free: 2.418 MB / 314.7 MB Notification: Performance of Templates: time 0.4034/0.9732, allocations: 102.2 MB / 0.5282 GB, free: 122 MB / 394.7 MB