Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.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.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|Itr|Iqs|ims.rotor.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|ims.rotor.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|ims.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|ims.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|imsQS.rotor.electroMagneticConverter.port_p.reference.gamma|loadInertia.phi|loadInertia.w|loadInertiaE.phi|loadInertiaE.w",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start") Notification: Performance of loadModel(Modelica): time 1.978/1.978, allocations: 194.9 MB / 211.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005568/0.0005569, allocations: 11.98 kB / 264.6 MB, free: 12.91 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.1075, allocations: 44.51 MB / 309.1 MB, free: 336 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5368/0.6444, allocations: 157 MB / 466.1 MB, free: 14.79 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000343/0.6448, allocations: 115.4 kB / 466.2 MB, free: 14.72 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.282/3.927, allocations: 0.5738 GB / 1.029 GB, free: 12.99 MB / 442.7 MB Notification: Performance of FrontEnd: time 4.048e-06/3.927, allocations: 0 / 1.029 GB, free: 12.99 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.002704/3.929, allocations: 428 kB / 1.029 GB, free: 12.95 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5087 * Number of variables: 5087 Notification: Performance of Generate backend data structure: time 0.09421/4.024, allocations: 18.04 MB / 1.047 GB, free: 7.375 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.594e-05/4.024, allocations: 7.719 kB / 1.047 GB, free: 7.375 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09692/4.121, allocations: 8.522 MB / 1.055 GB, free: 6.34 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.07381/4.195, allocations: 14.6 MB / 1.07 GB, free: 4.594 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.003043/4.198, allocations: 1.342 MB / 1.071 GB, free: 4.555 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01153/4.209, allocations: 1.737 MB / 1.073 GB, free: 4.547 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1338/4.343, allocations: 30.72 MB / 1.103 GB, free: 2.32 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001668/4.345, allocations: 21.05 kB / 1.103 GB, free: 2.312 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.01004/4.355, allocations: 0.7505 MB / 1.103 GB, free: 2.312 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002028/4.357, allocations: 1.196 MB / 1.105 GB, free: 2.266 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.09083/4.448, allocations: 27.96 MB / 1.132 GB, free: 0 / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6921/5.14, allocations: 98.06 MB / 1.228 GB, free: 32.39 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.05745/5.198, allocations: 35.55 MB / 1.262 GB, free: 31.59 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1198/5.318, allocations: 39.43 MB / 1.301 GB, free: 30.46 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000162/5.318, allocations: 149.7 kB / 1.301 GB, free: 30.41 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=1283): time 1.895e-05/5.318, allocations: 1.406 kB / 1.301 GB, free: 30.41 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1291): time 1.003/6.321, allocations: 106 MB / 1.405 GB, free: 66.53 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001503/6.321, allocations: 198.2 kB / 1.405 GB, free: 66.43 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01608/6.337, allocations: 5.672 MB / 1.41 GB, free: 66.01 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.002971/6.34, allocations: 205.1 kB / 1.41 GB, free: 65.98 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.006217/6.346, allocations: 6.623 MB / 1.417 GB, free: 62.76 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.007137/6.354, allocations: 4.232 MB / 1.421 GB, free: 60 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003263/6.357, allocations: 217.5 kB / 1.421 GB, free: 60 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.001688/6.359, allocations: 0.8073 MB / 1.422 GB, free: 59.67 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02323/6.382, allocations: 8.347 MB / 1.43 GB, free: 59.64 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02596/6.408, allocations: 10.48 MB / 1.44 GB, free: 57.57 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02689/6.435, allocations: 9.951 MB / 1.45 GB, free: 57.42 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001099/6.435, allocations: 23.33 kB / 1.45 GB, free: 57.41 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1574) (initialization): time 0.07566/6.511, allocations: 25.33 MB / 1.475 GB, free: 55.45 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 8.276e-05/6.511, allocations: 33.3 kB / 1.475 GB, free: 55.45 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001689/6.511, allocations: 52.59 kB / 1.475 GB, free: 55.45 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03086/6.542, allocations: 9.024 MB / 1.484 GB, free: 52.71 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01585/6.558, allocations: 1.883 MB / 1.486 GB, free: 52.65 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05264/6.61, allocations: 30.64 MB / 1.516 GB, free: 32.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01345/6.624, allocations: 0.5563 MB / 1.516 GB, free: 32.31 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003801/6.628, allocations: 473.7 kB / 1.517 GB, free: 32.21 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 244 * Number of states: 0 () * Number of discrete variables: 12 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatQS.booleanStep[1].y,rheostatQS.booleanStep[2].y,rheostatQS.booleanStep[3].y,booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (992): * Single equations (assignments): 928 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 51 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 12 * 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: 7 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 1} * Non-linear torn systems: 5 {6 9,6 9,6 9,6 9,42 268} Notification: Performance of prepare postOptimizeDAE: time 0.02072/6.649, allocations: 6.754 MB / 1.523 GB, free: 29.07 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004993/6.654, allocations: 0.8559 MB / 1.524 GB, free: 28.61 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.07843/6.732, allocations: 25.72 MB / 1.549 GB, free: 12.9 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.5385/7.271, allocations: 21.51 MB / 1.57 GB, free: 76.4 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001199/7.271, allocations: 8.875 kB / 1.57 GB, free: 76.4 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0003299/7.271, allocations: 58.22 kB / 1.57 GB, free: 76.4 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1647/7.436, allocations: 48.95 MB / 1.618 GB, free: 74.73 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002054/7.436, allocations: 5.344 kB / 1.618 GB, free: 74.73 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01231/7.448, allocations: 1.374 MB / 1.619 GB, free: 74.73 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03091/7.479, allocations: 9.141 MB / 1.628 GB, free: 74.51 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.003471/7.483, allocations: 272.2 kB / 1.629 GB, free: 74.51 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06241/7.545, allocations: 36.89 MB / 1.665 GB, free: 56.81 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.611e-06/7.545, allocations: 3.812 kB / 1.665 GB, free: 56.81 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1021/7.648, allocations: 37.9 MB / 1.702 GB, free: 40.03 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01167/7.659, allocations: 2.833 MB / 1.704 GB, free: 38.93 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005406/7.665, allocations: 191.8 kB / 1.705 GB, free: 38.79 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01211/7.677, allocations: 0.5101 MB / 1.705 GB, free: 38.65 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004989/7.682, allocations: 0.9826 MB / 1.706 GB, free: 38.45 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.003318/7.685, allocations: 348 kB / 1.706 GB, free: 38.37 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01011/7.695, allocations: 3.831 MB / 1.71 GB, free: 36.96 MB / 0.5105 GB Notification: Performance of sort global known variables: time 6.42e-07/7.696, allocations: 2.594 kB / 1.71 GB, free: 36.96 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.02132/7.717, allocations: 3.256 MB / 1.713 GB, free: 36.62 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 11 (imsQS.rotor.resistor.plug_p.reference.gamma,loadInertiaQS.w,quadraticLoadTorqueQS.phi,ims.stator.core.Phi.re,ims.stator.core.Phi.im,ims.stator.zeroInductor.i0,ims.rotor.core.Phi.re,ims.rotor.core.Phi.im,ims.rotor.zeroInductor.i0,loadInertia.w,quadraticLoadTorque.phi) * Number of discrete variables: 12 (rheostatQS.booleanStep[1].y,rheostatQS.booleanStep[2].y,rheostatQS.booleanStep[3].y,booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y,booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (730): * Single equations (assignments): 664 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 51 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 15 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 10 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 5 {6 9,6 9,6 9,6 9,42 268} Notification: Performance of Backend phase and start with SimCode phase: time 0.004775/7.722, allocations: 0.7466 MB / 1.714 GB, free: 36.36 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.05886/7.781, allocations: 21.52 MB / 1.735 GB, free: 20.51 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.118e-05/7.781, allocations: 0 / 1.735 GB, free: 20.51 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.03859/7.819, allocations: 12.43 MB / 1.747 GB, free: 9.656 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01925/7.839, allocations: 1.977 MB / 1.749 GB, free: 8.156 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5422/8.381, allocations: 46 MB / 1.794 GB, free: 62.39 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02614/8.407, allocations: 11.93 MB / 1.806 GB, free: 61.09 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.01502/8.422, allocations: 2.651 MB / 1.808 GB, free: 60.8 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004216/8.426, allocations: 0.5597 MB / 1.809 GB, free: 60.8 MB / 0.5105 GB Notification: Performance of SimCode: time 1.733e-06/8.426, allocations: 0 / 1.809 GB, free: 60.8 MB / 0.5105 GB Notification: Performance of Templates: time 0.954/9.38, allocations: 222.7 MB / 2.026 GB, free: 67.04 MB / 0.5105 GB