Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004823/0.004823, allocations: 100.8 kB / 15.73 MB, free: 6.047 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001112/0.001112, allocations: 197.1 kB / 16.68 MB, free: 5.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.359/1.359, allocations: 205.1 MB / 222.5 MB, free: 4.531 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001189/0.001189, allocations: 50.19 kB / 326.6 MB, free: 14.41 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08914/0.09034, allocations: 46.63 MB / 373.2 MB, free: 1.297 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD): time 0.01451/0.1049, allocations: 13.67 MB / 386.9 MB, free: 3.559 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009633/0.1146, allocations: 4.513 MB / 391.4 MB, free: 15.03 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00254/0.1172, allocations: 75.69 kB / 391.4 MB, free: 14.96 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004088/0.1213, allocations: 1.037 MB / 392.5 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004826/0.1262, allocations: 1.382 MB / 393.9 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002453/0.1287, allocations: 0.908 MB / 394.8 MB, free: 11.61 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005782/0.1344, allocations: 4.74 MB / 399.5 MB, free: 6.855 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004695/0.1392, allocations: 3.648 MB / 403.2 MB, free: 3.141 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003064/0.1422, allocations: 2.185 MB / 405.3 MB, free: 0.9492 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00359/0.1458, allocations: 2.46 MB / 407.8 MB, free: 14.48 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001148/0.147, allocations: 0.5898 MB / 408.4 MB, free: 13.89 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002099/0.1491, allocations: 0.7927 MB / 409.2 MB, free: 13.1 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001555/0.1507, allocations: 1.34 MB / 410.5 MB, free: 11.75 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004203/0.1549, allocations: 2.462 MB / 413 MB, free: 9.281 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007468/0.1624, allocations: 7.77 MB / 420.8 MB, free: 1.488 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.1624, allocations: 0 / 420.8 MB, free: 1.488 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1624, allocations: 0 / 420.8 MB, free: 1.488 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.000139/0.1626, allocations: 0 / 420.8 MB, free: 1.488 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 945 * Number of variables: 945 Notification: Performance of Generate backend data structure: time 0.01189/0.1745, allocations: 5.04 MB / 425.8 MB, free: 12.38 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.426e-05/0.1745, allocations: 12.03 kB / 425.8 MB, free: 12.36 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004262/0.1788, allocations: 0.8703 MB / 426.7 MB, free: 11.49 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005456/0.1843, allocations: 2.655 MB / 429.3 MB, free: 8.781 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002857/0.1846, allocations: 279.4 kB / 429.6 MB, free: 8.508 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000877/0.1855, allocations: 363.9 kB / 430 MB, free: 8.152 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008896/0.1944, allocations: 5.029 MB / 435 MB, free: 3.07 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.049e-05/0.1945, allocations: 7.906 kB / 435 MB, free: 3.062 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003507/0.1949, allocations: 140 kB / 435.1 MB, free: 2.926 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001542/0.195, allocations: 163.2 kB / 435.3 MB, free: 2.766 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007551/0.2026, allocations: 4.385 MB / 439.7 MB, free: 14.37 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2426/0.4452, allocations: 15.7 MB / 455.4 MB, free: 62.21 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007761/0.453, allocations: 7.775 MB / 463.2 MB, free: 56.73 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003131/0.4562, allocations: 1.715 MB / 464.9 MB, free: 56.71 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008506/0.4647, allocations: 4.641 MB / 469.5 MB, free: 54.91 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.649e-05/0.4648, allocations: 50.81 kB / 469.6 MB, free: 54.86 MB / 382.1 MB Notification: Performance of pre-optimization done (n=161): time 3.878e-06/0.4648, allocations: 0 / 469.6 MB, free: 54.86 MB / 382.1 MB Notification: Performance of matching and sorting (n=164): time 0.01595/0.4808, allocations: 8.125 MB / 477.7 MB, free: 51.16 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.663e-05/0.4809, allocations: 70.2 kB / 477.8 MB, free: 51.1 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002751/0.4836, allocations: 2.159 MB / 479.9 MB, free: 50.05 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001074/0.4837, allocations: 57.61 kB / 480 MB, free: 50 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007661/0.4845, allocations: 1.62 MB / 481.6 MB, free: 48.59 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004035/0.4849, allocations: 0.5512 MB / 482.1 MB, free: 48.11 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005521/0.4855, allocations: 360.7 kB / 482.5 MB, free: 47.9 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.038e-05/0.4855, allocations: 301.1 kB / 482.8 MB, free: 47.61 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001272/0.4868, allocations: 0.9385 MB / 483.7 MB, free: 47.11 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00144/0.4883, allocations: 1.459 MB / 485.2 MB, free: 45.95 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00273/0.491, allocations: 2.503 MB / 487.7 MB, free: 44.21 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.837e-06/0.491, allocations: 7.938 kB / 487.7 MB, free: 44.21 MB / 382.1 MB Notification: Performance of matching and sorting (n=245) (initialization): time 0.004819/0.4959, allocations: 3.348 MB / 491 MB, free: 42.34 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.287e-05/0.4959, allocations: 14.69 kB / 491.1 MB, free: 42.34 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.926e-05/0.4959, allocations: 14.94 kB / 491.1 MB, free: 42.34 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001597/0.4975, allocations: 0.7346 MB / 491.8 MB, free: 41.96 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001293/0.4988, allocations: 393.7 kB / 492.2 MB, free: 41.63 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008833/0.5077, allocations: 11.34 MB / 0.4917 GB, free: 29.75 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001692/0.5094, allocations: 84.42 kB / 0.4918 GB, free: 29.68 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001325/0.5095, allocations: 79.98 kB / 0.4919 GB, free: 29.6 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 69 * Number of states: 0 () * Number of discrete variables: 6 (booleanStepYD[3].y,booleanStepYD[2].y,booleanStepYD[1].y,idealCloser.control[3],idealCloser.control[2],idealCloser.control[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (195): * Single equations (assignments): 190 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,8,100.0%), (9,19,33.3%), (1,1,100.0%), (1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001938/0.5115, allocations: 1.216 MB / 0.4931 GB, free: 28.37 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003334/0.5118, allocations: 237.1 kB / 0.4933 GB, free: 28.14 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004363/0.5162, allocations: 3.148 MB / 0.4964 GB, free: 24.93 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.526e-06/0.5162, allocations: 16 kB / 0.4964 GB, free: 24.91 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.308e-06/0.5162, allocations: 8 kB / 0.4964 GB, free: 24.9 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.223e-05/0.5162, allocations: 11.97 kB / 0.4964 GB, free: 24.89 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008454/0.5247, allocations: 6.569 MB / 0.5028 GB, free: 18.21 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.141e-06/0.5247, allocations: 0 / 0.5028 GB, free: 18.21 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007539/0.5255, allocations: 171.8 kB / 0.503 GB, free: 18.04 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001842/0.5273, allocations: 0.925 MB / 0.5039 GB, free: 17.1 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001014/0.5275, allocations: 47.98 kB / 0.5039 GB, free: 17.05 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0121/0.5396, allocations: 16.16 MB / 0.5197 GB, free: 104 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.5396, allocations: 4.031 kB / 0.5197 GB, free: 100 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007025/0.5466, allocations: 4.505 MB / 0.5241 GB, free: 11.5 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001175/0.5478, allocations: 0.5177 MB / 0.5246 GB, free: 10.96 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002769/0.5481, allocations: 36 kB / 0.5247 GB, free: 10.93 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001004/0.5491, allocations: 75.94 kB / 0.5247 GB, free: 10.85 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004284/0.5496, allocations: 165.1 kB / 0.5249 GB, free: 10.69 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001078/0.5497, allocations: 47.92 kB / 0.5249 GB, free: 10.64 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002439/0.5521, allocations: 1.489 MB / 0.5264 GB, free: 9.137 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5521, allocations: 0 / 0.5264 GB, free: 9.137 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002804/0.5549, allocations: 0.7019 MB / 0.5271 GB, free: 8.438 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (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) * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (94): * Single equations (assignments): 88 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(1,1,100.0%), (1,8,100.0%), (9,19,33.3%), (1,13,100.0%), (1,8,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004036/0.5554, allocations: 180.4 kB / 0.5272 GB, free: 8.254 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00487/0.5602, allocations: 3.125 MB / 0.5303 GB, free: 5.059 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.981e-06/0.5603, allocations: 5.938 kB / 0.5303 GB, free: 5.055 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003173/0.5634, allocations: 2.263 MB / 0.5325 GB, free: 2.719 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002599/0.5661, allocations: 0.6323 MB / 0.5331 GB, free: 2.086 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01175/0.5778, allocations: 6.815 MB / 0.5398 GB, free: 11.25 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002409/0.5803, allocations: 2.674 MB / 0.5424 GB, free: 8.539 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001582/0.5818, allocations: 479.4 kB / 0.5429 GB, free: 8.066 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003608/0.5822, allocations: 139.4 kB / 0.543 GB, free: 7.93 MB / 414.1 MB Notification: Performance of SimCode: time 1.443e-06/0.5822, allocations: 0 / 0.543 GB, free: 7.93 MB / 414.1 MB Notification: Performance of Templates: time 0.06035/0.6426, allocations: 36.94 MB / 0.5791 GB, free: 2.984 MB / 446.1 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.sim & ./Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe 2>&1)