Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_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_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Initialize",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.842/1.842, allocations: 194.9 MB / 211.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003462/0.0003463, allocations: 12 kB / 264 MB, free: 13.47 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09155/0.09193, allocations: 44.51 MB / 308.6 MB, free: 0.8945 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4399/0.5319, allocations: 103.7 MB / 412.3 MB, free: 11.75 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002891/0.5323, allocations: 91.78 kB / 412.4 MB, free: 11.73 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2968/0.8291, allocations: 80.21 MB / 492.6 MB, free: 11.11 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.394e-06/0.8292, allocations: 4 kB / 492.6 MB, free: 11.11 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003931/0.8296, allocations: 75.94 kB / 492.7 MB, free: 11.04 MB / 378.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.01776/0.8474, allocations: 3.529 MB / 496.2 MB, free: 7.434 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.262e-05/0.8474, allocations: 16.02 kB / 496.2 MB, free: 7.418 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00199/0.8494, allocations: 446.9 kB / 496.6 MB, free: 6.969 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006519/0.856, allocations: 0.7335 MB / 497.4 MB, free: 6.23 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01285/0.8689, allocations: 3.371 MB / 0.489 GB, free: 2.801 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003582/0.8693, allocations: 234.2 kB / 0.4892 GB, free: 2.57 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001243/0.8706, allocations: 323.8 kB / 0.4895 GB, free: 2.254 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01439/0.885, allocations: 4.176 MB / 0.4936 GB, free: 13.96 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001897/0.8853, allocations: 4 kB / 0.4936 GB, free: 13.95 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001138/0.8864, allocations: 139.9 kB / 0.4938 GB, free: 13.82 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002329/0.8867, allocations: 142.2 kB / 0.4939 GB, free: 13.68 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01258/0.8993, allocations: 3.46 MB / 0.4973 GB, free: 10.21 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03787/0.9372, allocations: 13.55 MB / 0.5105 GB, free: 12.3 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01221/0.9495, allocations: 6.881 MB / 0.5172 GB, free: 4.512 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009662/0.9592, allocations: 3.266 MB / 0.5204 GB, free: 1.164 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.201e-05/0.9593, allocations: 47.88 kB / 0.5205 GB, free: 1.109 MB / 410.7 MB Notification: Performance of pre-optimization done (n=130): time 4.468e-06/0.9593, allocations: 4 kB / 0.5205 GB, free: 1.105 MB / 410.7 MB Notification: Performance of matching and sorting (n=150): time 0.3189/1.278, allocations: 6.79 MB / 0.5271 GB, free: 86.32 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.64e-05/1.278, allocations: 70.56 kB / 0.5272 GB, free: 86.25 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00383/1.282, allocations: 1.615 MB / 0.5287 GB, free: 86.1 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003394/1.283, allocations: 54.98 kB / 0.5288 GB, free: 86.07 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001051/1.284, allocations: 1.354 MB / 0.5301 GB, free: 85.53 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006129/1.284, allocations: 0.5064 MB / 0.5306 GB, free: 85.27 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001496/1.284, allocations: 32.5 kB / 0.5306 GB, free: 85.27 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000135/1.285, allocations: 384.5 kB / 0.531 GB, free: 84.95 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001971/1.287, allocations: 0.7811 MB / 0.5318 GB, free: 84.95 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002139/1.289, allocations: 1.228 MB / 0.533 GB, free: 84.45 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002564/1.291, allocations: 0.9911 MB / 0.5339 GB, free: 84.44 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.245e-05/1.291, allocations: 6.875 kB / 0.5339 GB, free: 84.44 MB / 410.7 MB Notification: Performance of matching and sorting (n=222) (initialization): time 0.007654/1.299, allocations: 2.571 MB / 0.5365 GB, free: 84.31 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.187e-05/1.299, allocations: 10.62 kB / 0.5365 GB, free: 84.31 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.91e-05/1.299, allocations: 21 kB / 0.5365 GB, free: 84.3 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002269/1.301, allocations: 0.4998 MB / 0.537 GB, free: 84.29 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00306/1.305, allocations: 400.6 kB / 0.5374 GB, free: 84.29 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01181/1.316, allocations: 6.546 MB / 0.5438 GB, free: 81.61 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002492/1.319, allocations: 84.73 kB / 0.5438 GB, free: 81.61 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000182/1.319, allocations: 75.7 kB / 0.5439 GB, free: 81.61 MB / 410.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.002547/1.322, allocations: 1.044 MB / 0.5449 GB, free: 81.49 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005913/1.322, allocations: 201.7 kB / 0.5451 GB, free: 81.39 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006376/1.329, allocations: 2.565 MB / 0.5476 GB, free: 81.04 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.542e-05/1.329, allocations: 18.69 kB / 0.5476 GB, free: 81.04 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.229e-05/1.329, allocations: 9.562 kB / 0.5476 GB, free: 81.04 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.291e-05/1.329, allocations: 6.516 kB / 0.5477 GB, free: 81.04 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01562/1.344, allocations: 5.654 MB / 0.5532 GB, free: 80.38 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-05/1.344, allocations: 2.5 kB / 0.5532 GB, free: 80.38 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002022/1.346, allocations: 235.3 kB / 0.5534 GB, free: 80.38 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002107/1.349, allocations: 0.4905 MB / 0.5539 GB, free: 80.34 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002754/1.349, allocations: 33.69 kB / 0.5539 GB, free: 80.34 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01318/1.362, allocations: 10.6 MB / 0.5643 GB, free: 73.73 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/1.362, allocations: 3.281 kB / 0.5643 GB, free: 73.73 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008304/1.371, allocations: 3.762 MB / 0.5679 GB, free: 71.83 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001309/1.372, allocations: 465.8 kB / 0.5684 GB, free: 71.51 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000411/1.372, allocations: 32.33 kB / 0.5684 GB, free: 71.48 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00166/1.374, allocations: 81.58 kB / 0.5685 GB, free: 71.46 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000373/1.374, allocations: 110.1 kB / 0.5686 GB, free: 71.45 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001256/1.374, allocations: 45.56 kB / 0.5686 GB, free: 71.44 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00245/1.377, allocations: 1.251 MB / 0.5699 GB, free: 70.95 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.11e-07/1.377, allocations: 0 / 0.5699 GB, free: 70.95 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003199/1.38, allocations: 0.6298 MB / 0.5705 GB, free: 70.88 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (aimc.inertiaRotor.phi,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.strayReluctance.Phi.re,aimc.stator.strayReluctance.Phi.im,aimc.stator.zeroInductor.i0,loadInertia.w) * 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%) 1,(1,100.0%) 12,(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.009602/1.39, allocations: 4.956 MB / 0.5753 GB, free: 68.03 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.006284/1.396, allocations: 2.443 MB / 0.5777 GB, free: 66.99 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.883e-06/1.396, allocations: 0 / 0.5777 GB, free: 66.99 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003845/1.4, allocations: 1.745 MB / 0.5794 GB, free: 65.95 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003807/1.404, allocations: 495.8 kB / 0.5799 GB, free: 65.82 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04579/1.45, allocations: 26.14 MB / 0.6054 GB, free: 47.18 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002827/1.453, allocations: 2.375 MB / 0.6077 GB, free: 46.1 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002445/1.455, allocations: 1.136 MB / 0.6088 GB, free: 45.17 MB / 410.7 MB Notification: Performance of SimCode: time 1.432e-06/1.455, allocations: 3.969 kB / 0.6088 GB, free: 45.17 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.968/5.423, allocations: 110 MB / 0.7163 GB, free: 84.27 MB / 410.7 MB