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_Steinmetz.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_Steinmetz,fileNamePrefix="Modelica_3_2_2_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Steinmetz",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.963/1.963, allocations: 194.9 MB / 211.1 MB, free: 7.781 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00054/0.0005404, allocations: 12 kB / 264.1 MB, free: 2.699 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3219/0.3224, allocations: 44.5 MB / 308.6 MB, free: 12.67 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz): time 0.02067/0.3432, allocations: 11.09 MB / 319.7 MB, free: 1.543 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01151/0.3548, allocations: 4.164 MB / 323.8 MB, free: 13.37 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002474/0.3573, allocations: 63.75 kB / 323.9 MB, free: 13.3 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003873/0.3612, allocations: 0.7618 MB / 324.6 MB, free: 12.54 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005751/0.367, allocations: 1.157 MB / 325.8 MB, free: 11.38 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003408/0.3705, allocations: 0.6353 MB / 326.4 MB, free: 10.74 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.007945/0.3785, allocations: 2.879 MB / 329.3 MB, free: 7.852 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005453/0.384, allocations: 2.182 MB / 331.5 MB, free: 5.633 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003342/0.3874, allocations: 1.261 MB / 332.8 MB, free: 4.367 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004067/0.3915, allocations: 1.494 MB / 334.3 MB, free: 2.867 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00121/0.3928, allocations: 204 kB / 334.5 MB, free: 2.668 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002211/0.395, allocations: 367.8 kB / 334.8 MB, free: 2.309 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001532/0.3966, allocations: 0.7202 MB / 335.5 MB, free: 1.586 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001682/0.3984, allocations: 0.746 MB / 336.3 MB, free: 0.832 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009283/0.4077, allocations: 5.423 MB / 341.7 MB, free: 11.39 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.4077, allocations: 4 kB / 341.7 MB, free: 11.39 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.036e-06/0.4078, allocations: 0 / 341.7 MB, free: 11.39 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0002119/0.408, allocations: 4 kB / 341.7 MB, free: 11.39 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: 844 * Number of variables: 844 Notification: Performance of Generate backend data structure: time 0.01545/0.4234, allocations: 3.72 MB / 345.4 MB, free: 7.598 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.327e-05/0.4235, allocations: 11.97 kB / 345.4 MB, free: 7.586 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001702/0.4252, allocations: 467.5 kB / 345.9 MB, free: 7.117 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007194/0.4325, allocations: 0.8193 MB / 346.7 MB, free: 6.293 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006944/0.4395, allocations: 2.174 MB / 348.9 MB, free: 4.062 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003925/0.4399, allocations: 242.4 kB / 349.1 MB, free: 3.824 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001424/0.4414, allocations: 323.9 kB / 349.4 MB, free: 3.508 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01538/0.4568, allocations: 4.22 MB / 353.7 MB, free: 15.23 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001957/0.4571, allocations: 7.938 kB / 353.7 MB, free: 15.23 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001011/0.4581, allocations: 132 kB / 353.8 MB, free: 15.1 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002762/0.4584, allocations: 154.4 kB / 353.9 MB, free: 14.95 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01272/0.4711, allocations: 3.57 MB / 357.5 MB, free: 11.37 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03857/0.5098, allocations: 13.9 MB / 371.4 MB, free: 13.09 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01154/0.5214, allocations: 6.548 MB / 378 MB, free: 5.699 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01014/0.5315, allocations: 3.21 MB / 381.2 MB, free: 2.406 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.385e-05/0.5317, allocations: 47.88 kB / 381.2 MB, free: 2.352 MB / 314.7 MB Notification: Performance of pre-optimization done (n=140): time 5.39e-06/0.5317, allocations: 0 / 381.2 MB, free: 2.352 MB / 314.7 MB Notification: Performance of matching and sorting (n=143): time 0.02035/0.5521, allocations: 6 MB / 387.2 MB, free: 12.13 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.291e-05/0.5522, allocations: 68.7 kB / 387.3 MB, free: 12.05 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003893/0.5561, allocations: 1.721 MB / 389 MB, free: 10.33 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000325/0.5565, allocations: 53.7 kB / 389.1 MB, free: 10.27 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001748/0.5583, allocations: 1.434 MB / 390.5 MB, free: 8.816 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008507/0.5591, allocations: 492.8 kB / 391 MB, free: 8.328 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001797/0.5593, allocations: 36 kB / 391 MB, free: 8.293 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002704/0.5596, allocations: 377.8 kB / 391.4 MB, free: 7.918 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002079/0.5617, allocations: 0.6949 MB / 392.1 MB, free: 7.223 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002548/0.5643, allocations: 1.2 MB / 393.3 MB, free: 5.809 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002504/0.5668, allocations: 0.9199 MB / 394.2 MB, free: 4.887 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.759e-05/0.5669, allocations: 8 kB / 394.2 MB, free: 4.879 MB / 330.7 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.007188/0.5741, allocations: 2.57 MB / 396.8 MB, free: 2.262 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.575e-05/0.5742, allocations: 15.98 kB / 396.8 MB, free: 2.246 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.693e-05/0.5742, allocations: 12 kB / 396.8 MB, free: 2.234 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001695/0.5759, allocations: 364.1 kB / 397.2 MB, free: 1.863 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003074/0.579, allocations: 383.4 kB / 397.5 MB, free: 1.488 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01201/0.5911, allocations: 7.784 MB / 405.3 MB, free: 9.168 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002217/0.5934, allocations: 76.16 kB / 405.4 MB, free: 9.094 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004974/0.5939, allocations: 72 kB / 405.5 MB, free: 9.023 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 70 * Number of states: 0 () * Number of discrete variables: 2 (idealCloser.control,idealOpener.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (196): * Single equations (assignments): 191 * 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: 4 * 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: 4 {(1,100.0%) 7,(1,100.0%) 1,(2,100.0%) 8,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00329/0.5972, allocations: 1.009 MB / 406.5 MB, free: 8.004 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005701/0.5978, allocations: 189.7 kB / 406.7 MB, free: 7.816 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00692/0.6048, allocations: 2.352 MB / 409 MB, free: 5.398 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.611e-05/0.6048, allocations: 12 kB / 409 MB, free: 5.387 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.041e-05/0.6049, allocations: 8 kB / 409 MB, free: 5.379 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.517e-05/0.6049, allocations: 3.984 kB / 409 MB, free: 5.375 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01403/0.619, allocations: 5.165 MB / 414.2 MB, free: 76 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.408e-05/0.619, allocations: 4 kB / 414.2 MB, free: 72 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.2589/0.8779, allocations: 185.1 kB / 414.4 MB, free: 88.93 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002801/0.8808, allocations: 0.5204 MB / 414.9 MB, free: 88.88 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002718/0.8811, allocations: 37.73 kB / 414.9 MB, free: 88.88 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01611/0.8972, allocations: 12.21 MB / 427.1 MB, free: 79.66 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/0.8973, allocations: 3.969 kB / 427.2 MB, free: 79.66 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007527/0.9048, allocations: 3.298 MB / 430.4 MB, free: 78.11 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001207/0.9061, allocations: 435 kB / 430.9 MB, free: 77.9 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000528/0.9066, allocations: 27.69 kB / 430.9 MB, free: 77.88 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001604/0.9082, allocations: 82.5 kB / 431 MB, free: 77.86 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000362/0.9086, allocations: 108.8 kB / 431.1 MB, free: 77.84 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000116/0.9087, allocations: 39.48 kB / 431.1 MB, free: 77.83 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.002248/0.911, allocations: 1.169 MB / 432.3 MB, free: 77.36 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.6e-07/0.911, allocations: 0 / 432.3 MB, free: 77.36 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002861/0.9139, allocations: 0.582 MB / 432.9 MB, free: 77.31 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 9 (aimc.inertiaRotor.w,aimc.stator.zeroInductor.i0,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,quadraticLoadTorque.phi,cRun.v,cStart.v) * Number of discrete variables: 2 (idealCloser.control,idealOpener.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (92): * Single equations (assignments): 86 * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 13,(1,100.0%) 1,(1,100.0%) 7,(2,100.0%) 8,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007773/0.9217, allocations: 3.904 MB / 436.8 MB, free: 75.2 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.004993/0.9267, allocations: 2.406 MB / 439.2 MB, free: 73.4 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.851e-06/0.9268, allocations: 0 / 439.2 MB, free: 73.4 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003692/0.9305, allocations: 1.772 MB / 441 MB, free: 71.74 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003576/0.9341, allocations: 0.505 MB / 441.5 MB, free: 71.33 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04787/0.982, allocations: 16.65 MB / 458.1 MB, free: 53.89 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002763/0.9848, allocations: 2.365 MB / 460.5 MB, free: 51.5 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.00231/0.9872, allocations: 405 kB / 460.9 MB, free: 51.1 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002078/0.9893, allocations: 1.132 MB / 462 MB, free: 49.97 MB / 346.7 MB Notification: Performance of SimCode: time 1.082e-06/0.9893, allocations: 4 kB / 462 MB, free: 49.97 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1153/1.105, allocations: 48.95 MB / 0.499 GB, free: 0.9727 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000268/1.105, allocations: 225.4 kB / 0.4992 GB, free: 0.7305 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.269/5.374, allocations: 0 / 0.4992 GB, free: 0.7305 MB / 346.7 MB