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_Transformer.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_Transformer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer") Notification: Performance of loadModel(Modelica): time 1.823/1.823, allocations: 194.8 MB / 211.7 MB, free: 2.988 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003624/0.0003619, allocations: 15.98 kB / 263.9 MB, free: 13.57 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08257/0.08296, allocations: 44.52 MB / 308.5 MB, free: 0.9766 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3874/0.4704, allocations: 113.2 MB / 421.7 MB, free: 9.344 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002235/0.4707, allocations: 88.11 kB / 421.8 MB, free: 9.332 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7204/1.191, allocations: 133.3 MB / 0.542 GB, free: 61.18 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.356e-06/1.191, allocations: 0 / 0.542 GB, free: 61.18 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0005224/1.192, allocations: 123.1 kB / 0.5421 GB, free: 61.17 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1287 * Number of variables: 1287 Notification: Performance of Generate backend data structure: time 0.0193/1.211, allocations: 5.277 MB / 0.5473 GB, free: 59.39 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.769e-05/1.211, allocations: 11.59 kB / 0.5473 GB, free: 59.39 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006952/1.218, allocations: 0.9788 MB / 0.5483 GB, free: 59.1 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0147/1.233, allocations: 4.512 MB / 0.5527 GB, free: 58.42 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004525/1.233, allocations: 367.6 kB / 0.553 GB, free: 58.41 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001914/1.235, allocations: 492.8 kB / 0.5535 GB, free: 58.4 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02012/1.255, allocations: 6.729 MB / 0.5601 GB, free: 57.8 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002057/1.256, allocations: 2.906 kB / 0.5601 GB, free: 57.8 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001666/1.257, allocations: 205.9 kB / 0.5603 GB, free: 57.8 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002438/1.258, allocations: 233.5 kB / 0.5605 GB, free: 57.79 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01603/1.274, allocations: 5.588 MB / 0.5659 GB, free: 57.74 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0477/1.321, allocations: 21 MB / 0.5865 GB, free: 53 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01145/1.333, allocations: 9.945 MB / 0.5962 GB, free: 44.62 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01331/1.346, allocations: 5.493 MB / 0.6015 GB, free: 41.82 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.353e-05/1.346, allocations: 59.34 kB / 0.6016 GB, free: 41.77 MB / 410.7 MB Notification: Performance of pre-optimization done (n=227): time 5.893e-06/1.346, allocations: 0 / 0.6016 GB, free: 41.77 MB / 410.7 MB Notification: Performance of matching and sorting (n=234): time 0.02634/1.373, allocations: 10.02 MB / 0.6114 GB, free: 36.78 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.233e-05/1.373, allocations: 82 kB / 0.6115 GB, free: 36.71 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006007/1.379, allocations: 2.636 MB / 0.614 GB, free: 35.72 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004685/1.379, allocations: 65.36 kB / 0.6141 GB, free: 35.66 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001392/1.381, allocations: 1.993 MB / 0.616 GB, free: 34.05 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008666/1.382, allocations: 0.7804 MB / 0.6168 GB, free: 33.45 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002274/1.382, allocations: 50.94 kB / 0.6168 GB, free: 33.41 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001731/1.382, allocations: 412.7 kB / 0.6172 GB, free: 33.05 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002869/1.385, allocations: 1.307 MB / 0.6185 GB, free: 32.56 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003412/1.388, allocations: 1.872 MB / 0.6203 GB, free: 31.39 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003603/1.392, allocations: 1.605 MB / 0.6219 GB, free: 30.67 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.144e-05/1.392, allocations: 3.562 kB / 0.6219 GB, free: 30.67 MB / 410.7 MB Notification: Performance of matching and sorting (n=327) (initialization): time 0.009388/1.401, allocations: 4.043 MB / 0.6259 GB, free: 29.04 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.581e-05/1.401, allocations: 15.03 kB / 0.6259 GB, free: 29.04 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.232e-05/1.402, allocations: 14.78 kB / 0.6259 GB, free: 29.04 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002257/1.404, allocations: 0.6448 MB / 0.6265 GB, free: 28.83 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003231/1.407, allocations: 0.5642 MB / 0.6271 GB, free: 28.8 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01272/1.42, allocations: 10.22 MB / 0.6371 GB, free: 21.08 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003114/1.423, allocations: 113.7 kB / 0.6372 GB, free: 21.04 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005513/1.424, allocations: 100.4 kB / 0.6373 GB, free: 21.02 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 73 * Number of states: 0 () * Number of discrete variables: 6 (booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (277): * Single equations (assignments): 272 * 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 {(3,100.0%) 25,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003989/1.428, allocations: 1.608 MB / 0.6388 GB, free: 20.22 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009222/1.429, allocations: 318.2 kB / 0.6391 GB, free: 20.06 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009066/1.438, allocations: 3.994 MB / 0.643 GB, free: 18.29 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.559e-05/1.438, allocations: 22.47 kB / 0.6431 GB, free: 18.29 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.504e-05/1.438, allocations: 15.44 kB / 0.6431 GB, free: 18.29 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.484e-05/1.438, allocations: 13.03 kB / 0.6431 GB, free: 18.29 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01916/1.457, allocations: 8.73 MB / 0.6516 GB, free: 12.25 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.552e-05/1.457, allocations: 4 kB / 0.6516 GB, free: 12.24 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002123/1.459, allocations: 363 kB / 0.652 GB, free: 11.96 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002947/1.462, allocations: 0.8173 MB / 0.6528 GB, free: 11.3 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004111/1.463, allocations: 59.5 kB / 0.6528 GB, free: 11.25 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01858/1.481, allocations: 14.69 MB / 0.6672 GB, free: 12.9 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.964e-06/1.481, allocations: 8.031 kB / 0.6672 GB, free: 12.89 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01452/1.496, allocations: 6.011 MB / 0.673 GB, free: 7.453 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00265/1.498, allocations: 0.7048 MB / 0.6737 GB, free: 6.801 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001037/1.499, allocations: 55.7 kB / 0.6738 GB, free: 6.75 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002722/1.502, allocations: 122.2 kB / 0.6739 GB, free: 6.652 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007562/1.503, allocations: 198.8 kB / 0.6741 GB, free: 6.531 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000258/1.503, allocations: 70.78 kB / 0.6741 GB, free: 6.473 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.005219/1.508, allocations: 2.032 MB / 0.6761 GB, free: 4.77 MB / 426.7 MB Notification: Performance of sort global known variables: time 9.82e-07/1.509, allocations: 0 / 0.6761 GB, free: 4.77 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005457/1.514, allocations: 0.9918 MB / 0.6771 GB, free: 3.781 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 9 (aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.zeroInductor.i0,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,transformer.l1sigma.inductor[2].i,transformer.l1sigma.inductor[3].i,loadInertia.w,quadraticLoadTorque.phi) * Number of discrete variables: 6 (booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (164): * Single equations (assignments): 158 * 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%) 8,(3,88.9%) 25,(1,100.0%) 8,(1,100.0%) 1,(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.001187/1.515, allocations: 439.9 kB / 0.6775 GB, free: 3.414 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.3211/1.836, allocations: 3.955 MB / 0.6814 GB, free: 70.74 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.37e-05/1.836, allocations: 3 kB / 0.6814 GB, free: 70.74 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008526/1.845, allocations: 2.695 MB / 0.684 GB, free: 70.07 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005105/1.85, allocations: 0.8632 MB / 0.6849 GB, free: 70.06 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02391/1.874, allocations: 11.19 MB / 0.6958 GB, free: 65.73 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006112/1.88, allocations: 3.431 MB / 0.6991 GB, free: 64.96 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001366/1.882, allocations: 209.8 kB / 0.6993 GB, free: 64.96 MB / 426.7 MB Notification: Performance of SimCode: time 1.891e-06/1.882, allocations: 0 / 0.6993 GB, free: 64.96 MB / 426.7 MB Notification: Performance of Templates: time 0.5355/2.417, allocations: 193.3 MB / 0.8881 GB, free: 83.71 MB / 442.7 MB