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.SMEE_Generator_MultiPhase.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: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|constantSpeed3.phi|constantSpeedM.phi|smee3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smee3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smee3.stator.strayReluctance.port_p.Phi.im|smee3.stator.strayReluctance.port_p.Phi.re|smeeM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smeeM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smeeM.stator.strayReluctance.port_p.Phi.im|smeeM.stator.strayReluctance.port_p.Phi.re",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase") Notification: Performance of loadModel(Modelica): time 1.924/1.924, allocations: 194.9 MB / 211.7 MB, free: 2.992 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003508/0.0003509, allocations: 8 kB / 264.6 MB, free: 12.93 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09386/0.09424, allocations: 44.5 MB / 309.1 MB, free: 360 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.452/0.5463, allocations: 117 MB / 426 MB, free: 6.355 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002938/0.5467, allocations: 97.02 kB / 426.1 MB, free: 6.305 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.027/1.573, allocations: 192.7 MB / 0.6043 GB, free: 60.07 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.126e-06/1.573, allocations: 0 / 0.6043 GB, free: 60.07 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0008113/1.574, allocations: 208.9 kB / 0.6045 GB, free: 60.04 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: 2286 * Number of variables: 2286 Notification: Performance of Generate backend data structure: time 0.03811/1.612, allocations: 8.703 MB / 0.613 GB, free: 56.01 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.348e-05/1.612, allocations: 7.469 kB / 0.6131 GB, free: 56.01 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01549/1.628, allocations: 1.915 MB / 0.6149 GB, free: 55.37 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02542/1.653, allocations: 7.073 MB / 0.6218 GB, free: 51.89 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008844/1.654, allocations: 0.6428 MB / 0.6225 GB, free: 51.59 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003542/1.658, allocations: 0.836 MB / 0.6233 GB, free: 51.31 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03786/1.696, allocations: 11.14 MB / 0.6342 GB, free: 43.31 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004732/1.696, allocations: 11.84 kB / 0.6342 GB, free: 43.3 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002981/1.699, allocations: 362.1 kB / 0.6345 GB, free: 42.95 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004106/1.7, allocations: 375.5 kB / 0.6349 GB, free: 42.59 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02934/1.729, allocations: 9.058 MB / 0.6437 GB, free: 34.27 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3981/2.127, allocations: 35.87 MB / 0.6787 GB, free: 46.58 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03048/2.158, allocations: 16.96 MB / 0.6953 GB, free: 34.12 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02876/2.187, allocations: 9.405 MB / 0.7045 GB, free: 32.5 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.831e-05/2.187, allocations: 73.33 kB / 0.7046 GB, free: 32.46 MB / 410.7 MB Notification: Performance of pre-optimization done (n=327): time 7.204e-06/2.187, allocations: 0 / 0.7046 GB, free: 32.46 MB / 410.7 MB Notification: Performance of matching and sorting (n=381): time 0.06533/2.252, allocations: 16.61 MB / 0.7208 GB, free: 30.08 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.572e-05/2.252, allocations: 90.7 kB / 0.7209 GB, free: 30.02 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01095/2.263, allocations: 4.326 MB / 0.7251 GB, free: 29.66 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007851/2.264, allocations: 88.23 kB / 0.7252 GB, free: 29.63 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003434/2.267, allocations: 3.827 MB / 0.7289 GB, free: 27.87 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001802/2.269, allocations: 1.295 MB / 0.7302 GB, free: 27.04 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000564/2.27, allocations: 92.81 kB / 0.7303 GB, free: 27.04 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000337/2.27, allocations: 492.6 kB / 0.7307 GB, free: 26.72 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006155/2.276, allocations: 1.978 MB / 0.7327 GB, free: 26.71 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007294/2.284, allocations: 3.374 MB / 0.736 GB, free: 25.05 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007288/2.291, allocations: 2.56 MB / 0.7385 GB, free: 25 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.236e-05/2.291, allocations: 12.72 kB / 0.7385 GB, free: 25 MB / 410.7 MB Notification: Performance of matching and sorting (n=597) (initialization): time 0.01923/2.31, allocations: 6.685 MB / 0.745 GB, free: 23.54 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.395e-05/2.311, allocations: 27.16 kB / 0.745 GB, free: 23.54 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001097/2.311, allocations: 48.97 kB / 0.7451 GB, free: 23.54 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003185/2.314, allocations: 0.7709 MB / 0.7458 GB, free: 23.28 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008025/2.322, allocations: 1.104 MB / 0.7469 GB, free: 23.23 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01728/2.339, allocations: 10.54 MB / 0.7572 GB, free: 31.14 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006552/2.346, allocations: 253.7 kB / 0.7574 GB, free: 31.04 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0012/2.347, allocations: 204.5 kB / 0.7576 GB, free: 31.01 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 200 * 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 (541): * Single equations (assignments): 533 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 13,(1,100.0%) 5,(2,100.0%) 13,(3,77.8%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.009203/2.356, allocations: 2.537 MB / 0.7601 GB, free: 29.74 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001927/2.358, allocations: 490.6 kB / 0.7606 GB, free: 29.49 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02247/2.381, allocations: 5.728 MB / 0.7662 GB, free: 26.96 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.259e-05/2.381, allocations: 39.25 kB / 0.7662 GB, free: 26.96 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.664e-05/2.381, allocations: 9.812 kB / 0.7662 GB, free: 26.96 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.109e-05/2.381, allocations: 16.55 kB / 0.7662 GB, free: 26.96 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04949/2.431, allocations: 13.84 MB / 0.7798 GB, free: 20.84 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.168e-05/2.431, allocations: 7.562 kB / 0.7798 GB, free: 20.84 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005563/2.436, allocations: 0.6638 MB / 0.7804 GB, free: 20.81 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003675/2.44, allocations: 0.9104 MB / 0.7813 GB, free: 20.51 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007043/2.441, allocations: 92.89 kB / 0.7814 GB, free: 20.46 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0237/2.464, allocations: 14.28 MB / 0.7953 GB, free: 9.785 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.378e-06/2.464, allocations: 15.81 kB / 0.7953 GB, free: 9.785 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02213/2.487, allocations: 8.33 MB / 0.8035 GB, free: 5.816 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00385/2.49, allocations: 0.9977 MB / 0.8045 GB, free: 5.152 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001755/2.492, allocations: 77.81 kB / 0.8045 GB, free: 5.102 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005166/2.497, allocations: 214.8 kB / 0.8047 GB, free: 5.043 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001172/2.499, allocations: 295.8 kB / 0.805 GB, free: 4.988 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003823/2.499, allocations: 106.1 kB / 0.8051 GB, free: 4.965 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.007838/2.507, allocations: 2.921 MB / 0.808 GB, free: 3.016 MB / 426.7 MB Notification: Performance of sort global known variables: time 6.21e-07/2.507, allocations: 0 / 0.808 GB, free: 3.016 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.009383/2.516, allocations: 1.552 MB / 0.8095 GB, free: 1.477 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 10 (smeeM.phiMechanical,smeeM.stator.core.Phi.re,smeeM.stator.core.Phi.im,smeeM.stator.strayReluctance.Phi.re,smeeM.stator.strayReluctance.Phi.im,smee3.phiMechanical,smee3.stator.core.Phi.re,smee3.stator.core.Phi.im,smee3.stator.strayReluctance.Phi.re,smee3.stator.strayReluctance.Phi.im) * 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 (303): * Single equations (assignments): 296 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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%) 13,(4,93.8%) 33,(2,100.0%) 13,(1,100.0%) 5,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001912/2.518, allocations: 0.5501 MB / 0.81 GB, free: 1.027 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.02019/2.539, allocations: 6.002 MB / 0.8159 GB, free: 12 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.445e-05/2.539, allocations: 4 kB / 0.8159 GB, free: 12 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01137/2.55, allocations: 3.603 MB / 0.8194 GB, free: 8.703 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008935/2.559, allocations: 1.057 MB / 0.8204 GB, free: 7.871 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05194/2.611, allocations: 18.03 MB / 0.838 GB, free: 7.176 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01265/2.624, allocations: 5.22 MB / 0.8431 GB, free: 3.312 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.007381/2.631, allocations: 1.079 MB / 0.8442 GB, free: 2.574 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002316/2.633, allocations: 321.9 kB / 0.8445 GB, free: 2.273 MB / 458.7 MB Notification: Performance of SimCode: time 1.233e-06/2.634, allocations: 0 / 0.8445 GB, free: 2.273 MB / 458.7 MB Notification: Performance of Templates: time 0.5508/3.184, allocations: 68.78 MB / 0.9117 GB, free: 86.02 MB / 458.7 MB