Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.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: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize,fileNamePrefix="Modelica_3_2_2_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Initialize",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.935/1.935, allocations: 194.9 MB / 211.1 MB, free: 7.59 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000721/0.0007215, allocations: 11.98 kB / 264.1 MB, free: 2.496 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3165/0.3173, allocations: 44.49 MB / 308.6 MB, free: 12.65 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize): time 0.0183/0.3357, allocations: 10.44 MB / 319 MB, free: 2.172 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01056/0.3463, allocations: 4.011 MB / 323 MB, free: 14.15 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002163/0.3485, allocations: 59.75 kB / 323.1 MB, free: 14.09 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003316/0.3518, allocations: 0.7502 MB / 323.8 MB, free: 13.34 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00492/0.3568, allocations: 1.11 MB / 324.9 MB, free: 12.23 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00278/0.3596, allocations: 0.5807 MB / 325.5 MB, free: 11.64 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00724/0.3669, allocations: 2.821 MB / 328.3 MB, free: 8.816 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004373/0.3713, allocations: 2.173 MB / 330.5 MB, free: 6.602 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002665/0.374, allocations: 1.242 MB / 331.8 MB, free: 5.355 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003619/0.3777, allocations: 1.506 MB / 333.3 MB, free: 3.844 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009991/0.3787, allocations: 204 kB / 333.5 MB, free: 3.645 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001828/0.3806, allocations: 363.8 kB / 333.8 MB, free: 3.289 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001097/0.3817, allocations: 0.7397 MB / 334.6 MB, free: 2.547 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001336/0.3831, allocations: 0.7421 MB / 335.3 MB, free: 1.797 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008615/0.3917, allocations: 5.47 MB / 340.8 MB, free: 12.31 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.3918, allocations: 4 kB / 340.8 MB, free: 12.31 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.685e-06/0.3918, allocations: 0 / 340.8 MB, free: 12.31 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001971/0.392, allocations: 0 / 340.8 MB, free: 12.31 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: 819 * Number of variables: 819 Notification: Performance of Generate backend data structure: time 0.01513/0.4071, allocations: 3.754 MB / 344.5 MB, free: 8.48 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.218e-05/0.4072, allocations: 11.97 kB / 344.5 MB, free: 8.469 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001475/0.4087, allocations: 450.8 kB / 345 MB, free: 8.016 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006818/0.4155, allocations: 0.8115 MB / 345.8 MB, free: 7.199 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006585/0.4222, allocations: 2.21 MB / 348 MB, free: 4.934 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003275/0.4225, allocations: 242.2 kB / 348.2 MB, free: 4.695 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001231/0.4238, allocations: 311.9 kB / 348.5 MB, free: 4.391 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01219/0.436, allocations: 4.215 MB / 352.8 MB, free: 128 kB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000101/0.4361, allocations: 7.906 kB / 352.8 MB, free: 120 kB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005041/0.4367, allocations: 128.1 kB / 352.9 MB, free: 15.99 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002183/0.4369, allocations: 142.2 kB / 353 MB, free: 15.85 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01068/0.4476, allocations: 3.647 MB / 356.7 MB, free: 12.19 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03555/0.4832, allocations: 13.53 MB / 370.2 MB, free: 14.31 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0113/0.4945, allocations: 6.838 MB / 377 MB, free: 6.566 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009401/0.504, allocations: 3.238 MB / 380.3 MB, free: 3.246 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.402e-05/0.5041, allocations: 55.81 kB / 380.3 MB, free: 3.184 MB / 314.7 MB Notification: Performance of pre-optimization done (n=130): time 4.318e-06/0.5041, allocations: 0 / 380.3 MB, free: 3.184 MB / 314.7 MB Notification: Performance of matching and sorting (n=150): time 0.02383/0.5279, allocations: 6.767 MB / 387.1 MB, free: 12.21 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.195e-05/0.5281, allocations: 68.72 kB / 387.2 MB, free: 12.13 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004175/0.5322, allocations: 1.8 MB / 389 MB, free: 10.33 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003093/0.5326, allocations: 53.7 kB / 389 MB, free: 10.27 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001596/0.5342, allocations: 1.412 MB / 390.4 MB, free: 8.844 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00079/0.535, allocations: 0.5121 MB / 390.9 MB, free: 8.324 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001611/0.5352, allocations: 39.94 kB / 391 MB, free: 8.285 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002459/0.5355, allocations: 373.9 kB / 391.3 MB, free: 7.914 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002304/0.5378, allocations: 0.7808 MB / 392.1 MB, free: 7.133 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00268/0.5405, allocations: 1.23 MB / 393.4 MB, free: 5.719 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002784/0.5433, allocations: 0.9902 MB / 394.3 MB, free: 4.73 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.464e-05/0.5433, allocations: 8 kB / 394.4 MB, free: 4.723 MB / 330.7 MB Notification: Performance of matching and sorting (n=222) (initialization): time 0.008155/0.5515, allocations: 2.691 MB / 397 MB, free: 2.016 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.279e-05/0.5516, allocations: 11.95 kB / 397.1 MB, free: 2.004 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.52e-05/0.5516, allocations: 16 kB / 397.1 MB, free: 1.988 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002461/0.5541, allocations: 0.4933 MB / 397.6 MB, free: 1.488 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003257/0.5574, allocations: 399.4 kB / 398 MB, free: 1.098 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01421/0.5717, allocations: 6.542 MB / 404.5 MB, free: 10.29 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002317/0.5741, allocations: 83.86 kB / 404.6 MB, free: 10.2 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003671/0.5745, allocations: 76.2 kB / 404.7 MB, free: 10.13 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 60 * 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 (184): * Single equations (assignments): 182 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(8,56.2%) 30} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003045/0.5775, allocations: 1.044 MB / 405.7 MB, free: 9.074 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006727/0.5782, allocations: 193.7 kB / 405.9 MB, free: 8.883 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008214/0.5865, allocations: 2.558 MB / 408.4 MB, free: 6.262 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.57e-05/0.5865, allocations: 16 kB / 408.5 MB, free: 6.246 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.431e-05/0.5866, allocations: 8 kB / 408.5 MB, free: 6.238 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.306e-05/0.5866, allocations: 11.95 kB / 408.5 MB, free: 6.227 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0154/0.602, allocations: 5.591 MB / 414.1 MB, free: 0.5 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.943e-05/0.6021, allocations: 0 / 414.1 MB, free: 0.5 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002168/0.6043, allocations: 251.8 kB / 414.3 MB, free: 260 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.2785/0.8828, allocations: 489.3 kB / 414.8 MB, free: 89.35 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003077/0.8832, allocations: 37.02 kB / 414.8 MB, free: 89.35 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01463/0.8978, allocations: 10.55 MB / 425.4 MB, free: 81.64 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/0.8978, allocations: 3.953 kB / 425.4 MB, free: 81.64 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008976/0.9068, allocations: 3.658 MB / 429 MB, free: 79.94 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001335/0.9082, allocations: 464.9 kB / 429.5 MB, free: 79.71 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004647/0.9087, allocations: 31.91 kB / 429.5 MB, free: 79.69 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001751/0.9105, allocations: 78.66 kB / 429.6 MB, free: 79.67 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004294/0.9109, allocations: 110.3 kB / 429.7 MB, free: 79.66 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001365/0.9111, allocations: 47 kB / 429.8 MB, free: 79.64 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.002672/0.9138, allocations: 1.239 MB / 431 MB, free: 79.16 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.283e-06/0.9138, allocations: 0 / 431 MB, free: 79.16 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.003088/0.9169, allocations: 0.5852 MB / 431.6 MB, free: 79.1 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (aimc.inertiaRotor.w,aimc.stator.zeroInductor.i0,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.strayReluctance.Phi.re,aimc.stator.strayReluctance.Phi.im,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 (108): * Single equations (assignments): 103 * 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 {(2,100.0%) 12,(1,100.0%) 12,(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.009085/0.926, allocations: 4.266 MB / 435.9 MB, free: 76.84 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.006263/0.9324, allocations: 2.443 MB / 438.3 MB, free: 75.16 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 8.116e-06/0.9324, allocations: 2.875 kB / 438.3 MB, free: 75.16 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004081/0.9365, allocations: 1.766 MB / 440.1 MB, free: 73.52 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003466/0.94, allocations: 485.2 kB / 440.5 MB, free: 73.13 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05115/0.9912, allocations: 17.36 MB / 457.9 MB, free: 55.09 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002997/0.9943, allocations: 2.434 MB / 460.3 MB, free: 52.62 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.002402/0.9967, allocations: 417 kB / 460.7 MB, free: 52.21 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00225/0.999, allocations: 1.128 MB / 461.9 MB, free: 51.09 MB / 346.7 MB Notification: Performance of SimCode: time 1.353e-06/0.999, allocations: 0 / 461.9 MB, free: 51.09 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1181/1.117, allocations: 50.51 MB / 0.5004 GB, free: 0.543 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002545/1.117, allocations: 230.3 kB / 0.5006 GB, free: 304 kB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.132/5.25, allocations: 0 / 0.5006 GB, free: 304 kB / 346.7 MB