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_withLosses.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_withLosses,fileNamePrefix="Modelica_3_2_2_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.969/1.969, allocations: 194.9 MB / 211.1 MB, free: 8.566 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004803/0.0004806, allocations: 8 kB / 264.1 MB, free: 3.48 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2926/0.2931, allocations: 44.52 MB / 308.6 MB, free: 12.75 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses): time 0.01971/0.3129, allocations: 11.06 MB / 319.6 MB, free: 1.652 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01218/0.3251, allocations: 4.515 MB / 324.2 MB, free: 13.12 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002479/0.3277, allocations: 67.69 kB / 324.2 MB, free: 13.06 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003921/0.3316, allocations: 0.7929 MB / 325 MB, free: 12.26 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005662/0.3373, allocations: 1.199 MB / 326.2 MB, free: 11.06 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003256/0.3406, allocations: 0.6548 MB / 326.9 MB, free: 10.4 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.007821/0.3485, allocations: 3.018 MB / 329.9 MB, free: 7.375 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005338/0.3539, allocations: 2.262 MB / 332.1 MB, free: 5.074 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003355/0.3573, allocations: 1.351 MB / 333.5 MB, free: 3.719 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004322/0.3617, allocations: 1.646 MB / 335.1 MB, free: 2.066 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001161/0.3629, allocations: 220 kB / 335.4 MB, free: 1.852 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002626/0.3655, allocations: 0.5034 MB / 335.9 MB, free: 1.348 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002129/0.3677, allocations: 0.9502 MB / 336.8 MB, free: 404 kB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001792/0.3695, allocations: 0.8122 MB / 337.6 MB, free: 15.57 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01022/0.3798, allocations: 5.89 MB / 343.5 MB, free: 9.668 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.3799, allocations: 0 / 343.5 MB, free: 9.668 MB / 282.7 MB Notification: Performance of FrontEnd: time 4.949e-06/0.3799, allocations: 4 kB / 343.5 MB, free: 9.664 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0002133/0.3801, allocations: 3.938 kB / 343.5 MB, free: 9.66 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: 877 * Number of variables: 877 Notification: Performance of Generate backend data structure: time 0.01702/0.3971, allocations: 4.261 MB / 347.8 MB, free: 5.316 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.951e-05/0.3972, allocations: 12.03 kB / 347.8 MB, free: 5.305 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002166/0.3994, allocations: 0.5264 MB / 348.3 MB, free: 4.766 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007422/0.4068, allocations: 0.8848 MB / 349.2 MB, free: 3.875 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007907/0.4148, allocations: 2.507 MB / 351.7 MB, free: 1.293 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003461/0.4152, allocations: 254.8 kB / 352 MB, free: 1.043 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001327/0.4165, allocations: 335.9 kB / 352.3 MB, free: 0.7148 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0153/0.4319, allocations: 4.537 MB / 356.8 MB, free: 12.13 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001256/0.432, allocations: 7.891 kB / 356.8 MB, free: 12.12 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006118/0.4327, allocations: 144 kB / 357 MB, free: 11.98 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002797/0.433, allocations: 158.8 kB / 357.1 MB, free: 11.83 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01354/0.4465, allocations: 3.903 MB / 361 MB, free: 7.918 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03953/0.4861, allocations: 14.25 MB / 375.3 MB, free: 9.363 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01316/0.4993, allocations: 6.94 MB / 382.2 MB, free: 1.617 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01096/0.5103, allocations: 3.645 MB / 385.9 MB, free: 13.89 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.64e-05/0.5104, allocations: 56.52 kB / 385.9 MB, free: 13.83 MB / 330.7 MB Notification: Performance of pre-optimization done (n=169): time 5.46e-06/0.5105, allocations: 0 / 385.9 MB, free: 13.83 MB / 330.7 MB Notification: Performance of matching and sorting (n=189): time 0.03046/0.5409, allocations: 8.079 MB / 394 MB, free: 5.582 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.926e-05/0.541, allocations: 69.41 kB / 394.1 MB, free: 5.5 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005719/0.5468, allocations: 2.56 MB / 396.6 MB, free: 2.914 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003821/0.5472, allocations: 57.7 kB / 396.7 MB, free: 2.852 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001902/0.5491, allocations: 1.627 MB / 398.3 MB, free: 1.203 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001017/0.5502, allocations: 0.6391 MB / 399 MB, free: 0.5547 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001903/0.5504, allocations: 40 kB / 399 MB, free: 0.5156 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002543/0.5507, allocations: 389.8 kB / 399.4 MB, free: 132 kB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002972/0.5536, allocations: 0.9019 MB / 400.3 MB, free: 15.23 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003333/0.557, allocations: 1.289 MB / 401.6 MB, free: 13.8 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003405/0.5605, allocations: 1.159 MB / 402.7 MB, free: 12.63 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.368e-05/0.5605, allocations: 4 kB / 402.7 MB, free: 12.63 MB / 346.7 MB Notification: Performance of matching and sorting (n=249) (initialization): time 0.009797/0.5703, allocations: 3.094 MB / 405.8 MB, free: 9.512 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.846e-05/0.5704, allocations: 37.7 kB / 405.9 MB, free: 9.469 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.436e-05/0.5705, allocations: 8 kB / 405.9 MB, free: 9.461 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002646/0.5731, allocations: 0.5674 MB / 406.4 MB, free: 8.887 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003693/0.5768, allocations: 447.3 kB / 406.9 MB, free: 8.449 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01571/0.5926, allocations: 7.218 MB / 414.1 MB, free: 0.9648 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002595/0.5952, allocations: 87.95 kB / 414.2 MB, free: 0.8789 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003482/0.5956, allocations: 79.97 kB / 414.3 MB, free: 0.8008 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 46 * 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 (200): * Single equations (assignments): 195 * Array equations: 2 * Algorithm blocks: 1 * 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%) 6,(8,62.5%) 34} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.2584/0.8541, allocations: 1.155 MB / 415.4 MB, free: 88.52 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008694/0.855, allocations: 256.2 kB / 415.7 MB, free: 88.52 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009993/0.865, allocations: 2.912 MB / 418.6 MB, free: 88.08 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.541e-05/0.8651, allocations: 28.61 kB / 418.6 MB, free: 88.08 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-05/0.8652, allocations: 7.844 kB / 418.6 MB, free: 88.08 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.03e-05/0.8652, allocations: 6.562 kB / 418.6 MB, free: 88.08 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0172/0.8824, allocations: 6.341 MB / 425 MB, free: 85.32 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.465e-05/0.8825, allocations: 6.062 kB / 425 MB, free: 85.32 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002738/0.8853, allocations: 283.4 kB / 425.2 MB, free: 85.3 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002781/0.8881, allocations: 0.6157 MB / 425.9 MB, free: 85.11 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003253/0.8885, allocations: 50.62 kB / 425.9 MB, free: 85.08 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01598/0.9045, allocations: 10.77 MB / 436.7 MB, free: 76.96 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.387e-06/0.9045, allocations: 0 / 436.7 MB, free: 76.96 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01105/0.9156, allocations: 4.177 MB / 440.8 MB, free: 73.02 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001643/0.9173, allocations: 0.537 MB / 441.4 MB, free: 72.54 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006746/0.918, allocations: 43.78 kB / 441.4 MB, free: 72.5 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00234/0.9204, allocations: 90.73 kB / 441.5 MB, free: 72.41 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005357/0.9209, allocations: 136.8 kB / 441.7 MB, free: 72.29 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001809/0.9211, allocations: 51.98 kB / 441.7 MB, free: 72.23 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.00353/0.9247, allocations: 1.791 MB / 443.5 MB, free: 70.43 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.032e-06/0.9247, allocations: 0 / 443.5 MB, free: 70.43 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.003681/0.9284, allocations: 0.6877 MB / 444.2 MB, free: 69.75 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 8 (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,PI.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 (129): * Single equations (assignments): 123 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 12,(1,100.0%) 12,(1,100.0%) 6,(2,100.0%) 26} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01309/0.9416, allocations: 4.975 MB / 449.2 MB, free: 64.8 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.008387/0.95, allocations: 2.923 MB / 452.1 MB, free: 61.85 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.634e-06/0.9501, allocations: 0 / 452.1 MB, free: 61.85 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005103/0.9552, allocations: 1.971 MB / 454.1 MB, free: 59.83 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004/0.9593, allocations: 0.5306 MB / 454.6 MB, free: 59.3 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02239/0.9817, allocations: 10.88 MB / 465.5 MB, free: 47.99 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003593/0.9853, allocations: 2.702 MB / 468.2 MB, free: 45.26 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.003209/0.9886, allocations: 0.5028 MB / 468.7 MB, free: 44.76 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003212/0.9919, allocations: 1.417 MB / 470.1 MB, free: 43.34 MB / 346.7 MB Notification: Performance of SimCode: time 1.884e-06/0.9919, allocations: 7.938 kB / 470.1 MB, free: 43.33 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1405/1.132, allocations: 59.39 MB / 0.5171 GB, free: 15.83 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002629/1.133, allocations: 273.6 kB / 0.5173 GB, free: 15.46 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.76/5.893, allocations: 0 / 0.5173 GB, free: 15.46 MB / 378.7 MB