Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.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_DOL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001169/0.001169, allocations: 104.5 kB / 16.92 MB, free: 6.199 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.001108/0.001108, allocations: 191.4 kB / 17.85 MB, free: 5.301 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.29/1.29, allocations: 205.1 MB / 223.7 MB, free: 12.29 MB / 190.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.001217/0.001217, allocations: 47.94 kB / 280 MB, free: 3.164 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09292/0.09415, allocations: 46.64 MB / 326.6 MB, free: 4.453 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL): time 0.02045/0.1147, allocations: 19.48 MB / 346.1 MB, free: 0.875 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01245/0.1272, allocations: 5.687 MB / 351.8 MB, free: 11.17 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003814/0.131, allocations: 107.6 kB / 351.9 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00444/0.1355, allocations: 1.285 MB / 353.2 MB, free: 9.773 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006535/0.1421, allocations: 1.895 MB / 355.1 MB, free: 7.867 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004579/0.1467, allocations: 1.181 MB / 356.3 MB, free: 6.684 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0112/0.1579, allocations: 6.406 MB / 362.7 MB, free: 256 kB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007425/0.1653, allocations: 5.333 MB / 368 MB, free: 10.83 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005058/0.1704, allocations: 2.948 MB / 370.9 MB, free: 7.871 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005741/0.1762, allocations: 3.472 MB / 374.4 MB, free: 4.387 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002304/0.1785, allocations: 0.8008 MB / 375.2 MB, free: 3.586 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004045/0.1826, allocations: 1.085 MB / 376.3 MB, free: 2.5 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002999/0.1856, allocations: 1.979 MB / 378.3 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.1724/0.358, allocations: 3.427 MB / 381.7 MB, free: 21.95 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01089/0.369, allocations: 10.51 MB / 392.2 MB, free: 21.12 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.081e-06/0.369, allocations: 3.5 kB / 392.2 MB, free: 21.12 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.369, allocations: 0 / 392.2 MB, free: 21.12 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002663/0.3693, allocations: 0 / 392.2 MB, free: 21.12 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1348 * Number of variables: 1348 Notification: Performance of Generate backend data structure: time 0.01668/0.386, allocations: 6.7 MB / 398.9 MB, free: 18.12 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.956e-05/0.386, allocations: 10.5 kB / 398.9 MB, free: 18.12 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004762/0.3908, allocations: 1.071 MB / 400 MB, free: 17.66 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005822/0.3966, allocations: 3.438 MB / 403.5 MB, free: 15.47 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002253/0.3969, allocations: 383.6 kB / 403.8 MB, free: 15.3 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008153/0.3977, allocations: 0.5147 MB / 404.3 MB, free: 15.12 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0102/0.4079, allocations: 6.955 MB / 411.3 MB, free: 11.05 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000109/0.408, allocations: 15.55 kB / 411.3 MB, free: 11.04 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004752/0.4085, allocations: 215.2 kB / 411.5 MB, free: 10.88 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000154/0.4087, allocations: 233.3 kB / 411.7 MB, free: 10.85 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008589/0.4173, allocations: 5.917 MB / 417.7 MB, free: 7.746 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03416/0.4515, allocations: 21.37 MB / 439 MB, free: 2.625 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008657/0.4602, allocations: 8.696 MB / 447.7 MB, free: 9.004 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00389/0.4641, allocations: 2.375 MB / 450.1 MB, free: 6.637 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01108/0.4752, allocations: 6.138 MB / 456.2 MB, free: 484 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.401e-05/0.4753, allocations: 56.56 kB / 456.3 MB, free: 420 kB / 350.1 MB Notification: Performance of pre-optimization done (n=219): time 4.989e-06/0.4753, allocations: 0 / 456.3 MB, free: 420 kB / 350.1 MB Notification: Performance of matching and sorting (n=238): time 0.02483/0.5001, allocations: 11.29 MB / 467.6 MB, free: 4.945 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.853e-05/0.5002, allocations: 76.59 kB / 467.7 MB, free: 4.859 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005641/0.5059, allocations: 2.986 MB / 470.6 MB, free: 1.863 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002785/0.5062, allocations: 69.7 kB / 470.7 MB, free: 1.789 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00175/0.5079, allocations: 2.307 MB / 473 MB, free: 15.46 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008568/0.5088, allocations: 0.8128 MB / 473.8 MB, free: 14.66 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001046/0.5099, allocations: 0.5059 MB / 474.3 MB, free: 14.14 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001161/0.51, allocations: 301.1 kB / 474.6 MB, free: 13.84 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002398/0.5124, allocations: 1.353 MB / 476 MB, free: 12.49 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002946/0.5154, allocations: 2.139 MB / 478.1 MB, free: 10.03 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005288/0.5207, allocations: 3.694 MB / 481.8 MB, free: 6.078 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-05/0.5207, allocations: 8 kB / 481.8 MB, free: 6.07 MB / 382.1 MB Notification: Performance of matching and sorting (n=367) (initialization): time 0.008403/0.5291, allocations: 4.658 MB / 486.5 MB, free: 1.473 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.364e-05/0.5292, allocations: 12 kB / 486.5 MB, free: 1.461 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.885e-05/0.5293, allocations: 24 kB / 486.5 MB, free: 1.438 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001888/0.5312, allocations: 0.767 MB / 487.3 MB, free: 0.6445 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002441/0.5336, allocations: 0.6381 MB / 487.9 MB, free: 48 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01381/0.5474, allocations: 14.54 MB / 0.4907 GB, free: 0.6094 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003265/0.5507, allocations: 155.7 kB / 0.4908 GB, free: 468 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006102/0.5514, allocations: 124.1 kB / 0.491 GB, free: 344 kB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 106 * Number of states: 0 () * Number of discrete variables: 3 (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 (324): * Single equations (assignments): 314 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 3 systems {(2,100.0%), (2,100.0%), (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): 7 systems {(1,8,100.0%), (2,12,100.0%), (1,1,100.0%), (1,13,100.0%), (1,1,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004579/0.556, allocations: 1.603 MB / 0.4925 GB, free: 14.76 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001061/0.557, allocations: 332.1 kB / 0.4928 GB, free: 14.43 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008501/0.5656, allocations: 4.193 MB / 0.4969 GB, free: 10.19 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.316e-05/0.5656, allocations: 24 kB / 0.497 GB, free: 10.17 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.147e-05/0.5656, allocations: 8 kB / 0.497 GB, free: 10.16 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.333e-05/0.5657, allocations: 11.95 kB / 0.497 GB, free: 10.15 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0192/0.5849, allocations: 9.134 MB / 0.5059 GB, free: 0.9531 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.494e-05/0.5849, allocations: 4.5 kB / 0.5059 GB, free: 0.9492 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001704/0.5867, allocations: 381.6 kB / 0.5063 GB, free: 0.5938 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002679/0.5894, allocations: 0.9312 MB / 0.5072 GB, free: 15.64 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002509/0.5896, allocations: 67.97 kB / 0.5072 GB, free: 15.57 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01725/0.6069, allocations: 18.01 MB / 0.5248 GB, free: 12.54 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.736e-06/0.607, allocations: 7.469 kB / 0.5248 GB, free: 12.54 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01059/0.6176, allocations: 6.051 MB / 0.5307 GB, free: 6.395 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002264/0.6199, allocations: 0.6924 MB / 0.5314 GB, free: 5.68 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001306/0.6212, allocations: 59.98 kB / 0.5315 GB, free: 5.621 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002289/0.6235, allocations: 131.9 kB / 0.5316 GB, free: 5.492 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005698/0.6241, allocations: 201.3 kB / 0.5318 GB, free: 5.301 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000207/0.6243, allocations: 67.98 kB / 0.5319 GB, free: 5.234 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004608/0.6289, allocations: 2.045 MB / 0.5338 GB, free: 3.191 MB / 446.1 MB Notification: Performance of sort global known variables: time 5.01e-07/0.6289, allocations: 0 / 0.5338 GB, free: 3.191 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005133/0.6341, allocations: 0.977 MB / 0.5348 GB, free: 2.215 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 14 (aimcM.inertiaRotor.w,aimcM.stator.zeroInductor.i0,aimcM.stator.core.Phi.re,aimcM.stator.core.Phi.im,aimcM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimcM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,aimcE.inertiaRotor.w,aimcE.i_0_s,aimcE.idq_sr[1],aimcE.idq_sr[2],aimcE.idq_rr[1],aimcE.idq_rr[2],quadraticLoadTorqueM.phi,quadraticLoadTorqueE.phi) * Number of discrete variables: 3 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (179): * Single equations (assignments): 170 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 8 * 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): 8 systems {(2,12,100.0%), (1,1,100.0%), (1,8,100.0%), (2,1,100.0%), (1,1,100.0%), (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.0007516/0.6349, allocations: 246.8 kB / 0.535 GB, free: 1.984 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.1794/0.8142, allocations: 6.112 MB / 0.541 GB, free: 160.7 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.308e-06/0.8143, allocations: 1.719 kB / 0.541 GB, free: 160.7 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00448/0.8188, allocations: 3.044 MB / 0.544 GB, free: 159.6 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004656/0.8235, allocations: 0.8995 MB / 0.5449 GB, free: 159.5 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01552/0.839, allocations: 10.03 MB / 0.5547 GB, free: 155.7 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002973/0.842, allocations: 3.425 MB / 0.558 GB, free: 154.4 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002753/0.8448, allocations: 0.7742 MB / 0.5588 GB, free: 154.2 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006847/0.8455, allocations: 210.5 kB / 0.559 GB, free: 154.2 MB / 446.1 MB Notification: Performance of SimCode: time 1.473e-06/0.8455, allocations: 0 / 0.559 GB, free: 154.2 MB / 446.1 MB Notification: Performance of Templates: time 0.07741/0.9229, allocations: 51.32 MB / 0.6091 GB, free: 106.2 MB / 446.1 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.sim & ./Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.pipe 2>&1)