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.AIMS_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.FundamentalWave.Examples.BasicMachines.AIMS_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|aimsE.i_0_r|aimsE.i_0_s|aimsE.idq_rr.1.|aimsE.idq_rr.2.|aimsE.idq_sr.1.|aimsE.idq_sr.2.|aimsM.rotor.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimsM.rotor.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|aimsM.rotor.zeroInductor.i0|aimsM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimsM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|aimsM.stator.zeroInductor.i0|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start") Notification: Performance of loadModel(Modelica): time 1.929/1.929, allocations: 194.9 MB / 211.7 MB, free: 3.004 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003475/0.0003476, allocations: 12 kB / 264.6 MB, free: 12.93 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08818/0.08855, allocations: 44.5 MB / 309.1 MB, free: 372 kB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start): time 0.03161/0.1202, allocations: 19.24 MB / 328.3 MB, free: 13.05 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.01715/0.1374, allocations: 6.724 MB / 335 MB, free: 6.312 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004075/0.1415, allocations: 127.4 kB / 335.2 MB, free: 6.188 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005535/0.1471, allocations: 1.255 MB / 336.4 MB, free: 4.926 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008929/0.1561, allocations: 2.056 MB / 338.5 MB, free: 2.863 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006033/0.1622, allocations: 0.9436 MB / 339.4 MB, free: 1.918 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.01808/0.1803, allocations: 5.854 MB / 345.3 MB, free: 12.05 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01328/0.1936, allocations: 4.853 MB / 350.1 MB, free: 7.141 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007766/0.2014, allocations: 2.736 MB / 352.9 MB, free: 4.395 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008813/0.2103, allocations: 3.319 MB / 356.2 MB, free: 1.062 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001838/0.2122, allocations: 460 kB / 356.6 MB, free: 0.6133 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003418/0.2156, allocations: 0.6599 MB / 357.3 MB, free: 15.95 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002854/0.2185, allocations: 1.834 MB / 359.1 MB, free: 14.11 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003076/0.2216, allocations: 1.576 MB / 360.7 MB, free: 12.53 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01791/0.2395, allocations: 11.7 MB / 372.4 MB, free: 0.793 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.828e-06/0.2396, allocations: 0 / 372.4 MB, free: 0.793 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.696e-06/0.2396, allocations: 0 / 372.4 MB, free: 0.793 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0003607/0.24, allocations: 0 / 372.4 MB, free: 0.793 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1778 * Number of variables: 1778 Notification: Performance of Generate backend data structure: time 0.2681/0.5081, allocations: 7.51 MB / 379.9 MB, free: 52.55 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.027e-05/0.5082, allocations: 9.062 kB / 379.9 MB, free: 52.55 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01479/0.523, allocations: 1.312 MB / 381.2 MB, free: 52.07 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01699/0.54, allocations: 4.884 MB / 386.1 MB, free: 48.93 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007125/0.5408, allocations: 0.4999 MB / 386.6 MB, free: 48.7 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002538/0.5433, allocations: 0.6638 MB / 387.3 MB, free: 48.47 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02642/0.5698, allocations: 9.353 MB / 396.6 MB, free: 42.77 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003229/0.5701, allocations: 11.84 kB / 396.6 MB, free: 42.76 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001813/0.572, allocations: 279.6 kB / 396.9 MB, free: 42.49 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003259/0.5723, allocations: 304 kB / 397.2 MB, free: 42.19 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02194/0.5943, allocations: 8.04 MB / 405.3 MB, free: 34.14 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06454/0.6588, allocations: 29.53 MB / 434.8 MB, free: 4.195 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01707/0.676, allocations: 11.97 MB / 446.8 MB, free: 7.07 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02552/0.7015, allocations: 6.894 MB / 453.6 MB, free: 140 kB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.6e-05/0.7017, allocations: 69.05 kB / 453.7 MB, free: 60 kB / 330.7 MB Notification: Performance of pre-optimization done (n=316): time 6.893e-06/0.7017, allocations: 0 / 453.7 MB, free: 60 kB / 330.7 MB Notification: Performance of matching and sorting (n=335): time 0.07002/0.7717, allocations: 16.45 MB / 470.2 MB, free: 15.05 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.847e-05/0.7718, allocations: 86.05 kB / 470.2 MB, free: 14.96 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01163/0.7835, allocations: 3.91 MB / 474.2 MB, free: 11.02 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000833/0.7844, allocations: 81.7 kB / 474.2 MB, free: 10.94 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004411/0.7888, allocations: 3.074 MB / 477.3 MB, free: 7.844 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00192/0.7908, allocations: 1.134 MB / 478.4 MB, free: 6.723 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003823/0.7912, allocations: 82.91 kB / 478.5 MB, free: 6.645 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0003475/0.7915, allocations: 466.2 kB / 479 MB, free: 6.184 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006862/0.7984, allocations: 1.909 MB / 480.9 MB, free: 4.273 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01184/0.8103, allocations: 2.869 MB / 483.8 MB, free: 1.016 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01149/0.8218, allocations: 2.342 MB / 486.1 MB, free: 14.66 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.003e-05/0.822, allocations: 8 kB / 486.1 MB, free: 14.65 MB / 378.7 MB Notification: Performance of matching and sorting (n=495) (initialization): time 0.02113/0.8431, allocations: 6.505 MB / 492.6 MB, free: 8.027 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.081e-05/0.8432, allocations: 16 kB / 492.6 MB, free: 8.012 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.181e-05/0.8433, allocations: 28.88 kB / 492.7 MB, free: 7.984 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005097/0.8484, allocations: 1.285 MB / 493.9 MB, free: 6.656 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006367/0.8548, allocations: 0.8385 MB / 494.8 MB, free: 5.816 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03118/0.886, allocations: 21.19 MB / 0.5039 GB, free: 15.16 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005186/0.8912, allocations: 212.1 kB / 0.5041 GB, free: 14.96 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005756/0.8918, allocations: 152 kB / 0.5042 GB, free: 14.81 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 127 * Number of states: 0 () * Number of discrete variables: 9 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatE.booleanStep[1].y,rheostatE.booleanStep[2].y,rheostatE.booleanStep[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (432): * Single equations (assignments): 418 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(2,100.0%),(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: 11 {(1,100.0%) 1,(2,100.0%) 14,(1,100.0%) 8,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 1,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00572/0.8975, allocations: 2.196 MB / 0.5064 GB, free: 12.6 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001362/0.8989, allocations: 446.6 kB / 0.5068 GB, free: 12.16 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01716/0.9161, allocations: 6.198 MB / 0.5128 GB, free: 5.789 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.089e-05/0.9162, allocations: 15.94 kB / 0.5129 GB, free: 5.773 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.136e-05/0.9162, allocations: 4 kB / 0.5129 GB, free: 5.77 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003529/0.9197, allocations: 0.9329 MB / 0.5138 GB, free: 4.812 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001211/0.921, allocations: 64 kB / 0.5138 GB, free: 4.75 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003704/0.9247, allocations: 207.8 kB / 0.514 GB, free: 4.547 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009074/0.9256, allocations: 298.1 kB / 0.5143 GB, free: 4.254 MB / 410.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.5362/1.462, allocations: 6.057 MB / 0.5202 GB, free: 131.1 MB / 410.8 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.01736/1.479, allocations: 6.957 MB / 0.527 GB, free: 129.3 MB / 410.8 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.004745/1.484, allocations: 2.051 MB / 0.529 GB, free: 128.6 MB / 410.8 MB Notification: Performance of sorting global known variables: time 0.005303/1.489, allocations: 2.655 MB / 0.5316 GB, free: 127.6 MB / 410.8 MB Notification: Performance of Backend: time 6.01e-07/1.489, allocations: 0 / 0.5316 GB, free: 127.6 MB / 410.8 MB Notification: Performance of simCode: created initialization part: time 0.0114/1.501, allocations: 4.888 MB / 0.5364 GB, free: 124.9 MB / 410.8 MB Notification: Performance of SimCode: time 0.03312/1.534, allocations: 16.43 MB / 0.5524 GB, free: 115.9 MB / 410.8 MB Notification: Performance of Templates: time 0.1769/1.711, allocations: 73.31 MB / 0.624 GB, free: 44.7 MB / 410.8 MB