Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.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_Transformer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009082/0.0009082, allocations: 92.22 kB / 16.31 MB, free: 5.602 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.001082/0.001082, allocations: 181.3 kB / 17.21 MB, free: 5.52 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.542/1.542, allocations: 205.4 MB / 223.4 MB, free: 13.15 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.0004647/0.0004647, allocations: 11.94 kB / 280.2 MB, free: 3.711 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09401/0.09449, allocations: 47.58 MB / 327.7 MB, free: 4.059 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer): time 0.01573/0.1103, allocations: 14.77 MB / 342.5 MB, free: 5.234 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0125/0.1228, allocations: 5.342 MB / 347.8 MB, free: 15.88 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002408/0.1253, allocations: 91.5 kB / 347.9 MB, free: 15.79 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003252/0.1285, allocations: 1.014 MB / 348.9 MB, free: 14.77 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005415/0.134, allocations: 1.492 MB / 350.4 MB, free: 13.27 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002629/0.1366, allocations: 0.6939 MB / 351.1 MB, free: 12.57 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01023/0.1468, allocations: 6.401 MB / 357.5 MB, free: 6.141 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007981/0.1549, allocations: 3.489 MB / 361 MB, free: 2.598 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004586/0.1595, allocations: 2.039 MB / 363.1 MB, free: 0.5508 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005138/0.1647, allocations: 2.618 MB / 365.7 MB, free: 13.92 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001642/0.1663, allocations: 336 kB / 366 MB, free: 13.59 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00388/0.1702, allocations: 0.5583 MB / 366.6 MB, free: 13.04 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00217/0.1724, allocations: 1.296 MB / 367.9 MB, free: 11.73 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002062/0.1745, allocations: 1.136 MB / 369 MB, free: 10.59 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01013/0.1847, allocations: 8.578 MB / 377.6 MB, free: 1.988 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.386e-06/0.1847, allocations: 0 / 377.6 MB, free: 1.988 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.915e-06/0.1847, allocations: 0 / 377.6 MB, free: 1.988 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003817/0.1851, allocations: 0 / 377.6 MB, free: 1.988 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: 1287 * Number of variables: 1287 Notification: Performance of Generate backend data structure: time 0.2/0.3852, allocations: 5.525 MB / 383.1 MB, free: 46.34 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.017e-05/0.3852, allocations: 9.156 kB / 383.1 MB, free: 46.34 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007173/0.3924, allocations: 1.068 MB / 384.2 MB, free: 45.98 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009013/0.4015, allocations: 3.243 MB / 387.4 MB, free: 44.2 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005552/0.4021, allocations: 370 kB / 387.8 MB, free: 44.04 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00224/0.4043, allocations: 484.1 kB / 388.3 MB, free: 43.88 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01731/0.4216, allocations: 6.842 MB / 395.1 MB, free: 40.15 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001158/0.4218, allocations: 7.312 kB / 395.1 MB, free: 40.15 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005185/0.4223, allocations: 194.1 kB / 395.3 MB, free: 40 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002498/0.4226, allocations: 239.8 kB / 395.5 MB, free: 39.96 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01147/0.434, allocations: 5.919 MB / 401.5 MB, free: 36.29 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03622/0.4703, allocations: 21.04 MB / 422.5 MB, free: 15.01 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007508/0.4779, allocations: 9.954 MB / 432.4 MB, free: 4.031 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003438/0.4813, allocations: 2.504 MB / 434.9 MB, free: 1.52 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01195/0.4933, allocations: 6.522 MB / 441.5 MB, free: 10.96 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.18e-05/0.4934, allocations: 64.56 kB / 441.5 MB, free: 10.88 MB / 334.1 MB Notification: Performance of pre-optimization done (n=219): time 5.049e-06/0.4934, allocations: 0 / 441.5 MB, free: 10.88 MB / 334.1 MB Notification: Performance of matching and sorting (n=226): time 0.02044/0.5139, allocations: 9.795 MB / 451.3 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.038e-05/0.514, allocations: 73.41 kB / 451.4 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005032/0.519, allocations: 2.965 MB / 454.4 MB, free: 13.82 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004173/0.5195, allocations: 65.7 kB / 454.4 MB, free: 13.75 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00187/0.5213, allocations: 2.162 MB / 456.6 MB, free: 11.58 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001012/0.5224, allocations: 0.7557 MB / 457.3 MB, free: 10.83 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001458/0.5225, allocations: 52 kB / 457.4 MB, free: 10.78 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000218/0.5228, allocations: 407.2 kB / 457.8 MB, free: 10.38 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002263/0.525, allocations: 1.293 MB / 459.1 MB, free: 9.078 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002704/0.5277, allocations: 1.924 MB / 461 MB, free: 6.891 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002635/0.5304, allocations: 1.599 MB / 462.6 MB, free: 5.293 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.495e-05/0.5304, allocations: 8 kB / 462.6 MB, free: 5.285 MB / 350.1 MB Notification: Performance of matching and sorting (n=328) (initialization): time 0.008165/0.5386, allocations: 4.248 MB / 466.9 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.125e-05/0.5387, allocations: 12 kB / 466.9 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.59e-05/0.5387, allocations: 20 kB / 466.9 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003857/0.5426, allocations: 0.7752 MB / 467.7 MB, free: 180 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003872/0.5465, allocations: 0.5734 MB / 468.2 MB, free: 15.6 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01788/0.5644, allocations: 10.04 MB / 478.3 MB, free: 5.039 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004521/0.569, allocations: 115.8 kB / 478.4 MB, free: 4.926 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005841/0.5696, allocations: 96 kB / 478.5 MB, free: 4.832 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 82 * Number of states: 0 () * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (278): * Single equations (assignments): 273 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * 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: 4 {(3,100.0%) 25,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006187/0.5758, allocations: 1.617 MB / 480.1 MB, free: 3.207 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001425/0.5773, allocations: 312.2 kB / 480.4 MB, free: 2.898 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01362/0.5909, allocations: 3.922 MB / 484.3 MB, free: 14.91 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.188e-05/0.591, allocations: 28 kB / 484.4 MB, free: 14.88 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-05/0.5911, allocations: 8 kB / 484.4 MB, free: 14.87 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.872e-05/0.5911, allocations: 15.89 kB / 484.4 MB, free: 14.86 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02913/0.6203, allocations: 8.573 MB / 493 MB, free: 6.184 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.06e-05/0.6203, allocations: 4 kB / 493 MB, free: 6.18 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003184/0.6235, allocations: 347.8 kB / 493.3 MB, free: 5.84 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006005/0.6296, allocations: 0.9452 MB / 494.2 MB, free: 4.879 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003785/0.63, allocations: 59.98 kB / 494.3 MB, free: 4.82 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02788/0.6579, allocations: 14.41 MB / 0.4968 GB, free: 5.637 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.516e-06/0.6579, allocations: 4 kB / 0.4968 GB, free: 5.633 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01791/0.6758, allocations: 5.7 MB / 0.5024 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003132/0.679, allocations: 0.6962 MB / 0.503 GB, free: 15.12 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00123/0.6803, allocations: 52 kB / 0.5031 GB, free: 15.07 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003259/0.6836, allocations: 123.9 kB / 0.5032 GB, free: 14.95 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007679/0.6844, allocations: 193.7 kB / 0.5034 GB, free: 14.76 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003066/0.6847, allocations: 63.98 kB / 0.5035 GB, free: 14.7 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.006228/0.691, allocations: 2.034 MB / 0.5054 GB, free: 12.66 MB / 414.1 MB Notification: Performance of sort global known variables: time 5.71e-07/0.691, allocations: 4 kB / 0.5054 GB, free: 12.66 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.006004/0.697, allocations: 0.94 MB / 0.5064 GB, free: 11.72 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 9 (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,transformer.l1sigma.inductor[2].i,transformer.l1sigma.inductor[3].i,quadraticLoadTorque.phi) * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (156): * Single equations (assignments): 150 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 8,(2,100.0%) 26,(1,100.0%) 1,(1,100.0%) 13,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007016/0.6977, allocations: 225.4 kB / 0.5066 GB, free: 11.5 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.006388/0.7041, allocations: 3.906 MB / 0.5104 GB, free: 7.535 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.963e-06/0.7042, allocations: 4 kB / 0.5104 GB, free: 7.531 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004183/0.7083, allocations: 2.638 MB / 0.513 GB, free: 4.82 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004139/0.7125, allocations: 0.889 MB / 0.5138 GB, free: 3.93 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0167/0.7292, allocations: 11.21 MB / 0.5248 GB, free: 8.656 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003373/0.7326, allocations: 3.426 MB / 0.5281 GB, free: 5.195 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002589/0.7352, allocations: 0.7526 MB / 0.5289 GB, free: 4.438 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005696/0.7358, allocations: 199.3 kB / 0.5291 GB, free: 4.242 MB / 430.1 MB Notification: Performance of SimCode: time 7.71e-07/0.7358, allocations: 0 / 0.5291 GB, free: 4.242 MB / 430.1 MB Notification: Performance of Templates: time 0.2388/0.9747, allocations: 47.16 MB / 0.5751 GB, free: 116.5 MB / 430.1 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.sim & ./Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe 2>&1)