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_MultiPhase.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_MultiPhase,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001017/0.001017, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.0009929/0.0009929, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.4/1.4, allocations: 205.1 MB / 223.7 MB, free: 12.3 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.001987/0.001987, allocations: 55.91 kB / 280 MB, free: 3.164 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1179/0.1199, allocations: 46.63 MB / 326.6 MB, free: 4.461 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase): time 0.02454/0.1445, allocations: 23.7 MB / 350.3 MB, free: 12.64 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01437/0.1589, allocations: 6.504 MB / 356.8 MB, free: 6.117 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004664/0.1636, allocations: 135.4 kB / 357 MB, free: 5.984 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004158/0.1678, allocations: 1.583 MB / 358.5 MB, free: 4.391 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007302/0.1751, allocations: 2.209 MB / 360.8 MB, free: 2.168 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003918/0.1791, allocations: 1.419 MB / 362.2 MB, free: 0.7461 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01105/0.1901, allocations: 9.83 MB / 372 MB, free: 6.875 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1979/0.3881, allocations: 7.977 MB / 380 MB, free: 15.43 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009161/0.3973, allocations: 4.626 MB / 384.6 MB, free: 15.03 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01105/0.4084, allocations: 5.252 MB / 389.9 MB, free: 14.14 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004867/0.4133, allocations: 1.302 MB / 391.2 MB, free: 14.14 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007168/0.4205, allocations: 1.507 MB / 392.7 MB, free: 14.14 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005047/0.4256, allocations: 2.947 MB / 395.6 MB, free: 13.81 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01088/0.4365, allocations: 5.419 MB / 401 MB, free: 11.98 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01688/0.4534, allocations: 16.88 MB / 417.9 MB, free: 1.668 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.512e-06/0.4534, allocations: 0 / 417.9 MB, free: 1.668 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.374e-06/0.4534, allocations: 0 / 417.9 MB, free: 1.668 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.000563/0.454, allocations: 0 / 417.9 MB, free: 1.668 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: 2135 * Number of variables: 2135 Notification: Performance of Generate backend data structure: time 0.03457/0.4886, allocations: 10.57 MB / 428.5 MB, free: 10.1 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.362e-05/0.4886, allocations: 11.89 kB / 428.5 MB, free: 10.09 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01261/0.5012, allocations: 2.044 MB / 430.5 MB, free: 8.043 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01291/0.5142, allocations: 5.51 MB / 436 MB, free: 2.73 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006005/0.5148, allocations: 0.601 MB / 436.6 MB, free: 2.133 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002611/0.5174, allocations: 0.7888 MB / 437.4 MB, free: 1.348 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02527/0.5427, allocations: 11.33 MB / 448.8 MB, free: 5.918 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003169/0.5431, allocations: 11.28 kB / 448.8 MB, free: 5.91 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00209/0.5452, allocations: 330.5 kB / 449.1 MB, free: 5.59 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004546/0.5456, allocations: 376.3 kB / 449.5 MB, free: 5.219 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02407/0.5697, allocations: 9.88 MB / 459.4 MB, free: 11.33 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06673/0.6365, allocations: 34.49 MB / 493.8 MB, free: 8.832 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01934/0.6559, allocations: 19.9 MB / 0.5017 GB, free: 2.914 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006037/0.6619, allocations: 3.715 MB / 0.5053 GB, free: 15.2 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01686/0.6788, allocations: 9.536 MB / 0.5146 GB, free: 5.66 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.44e-05/0.6789, allocations: 73.03 kB / 0.5147 GB, free: 5.578 MB / 430.1 MB Notification: Performance of pre-optimization done (n=321): time 5.4e-06/0.6789, allocations: 0 / 0.5147 GB, free: 5.578 MB / 430.1 MB Notification: Performance of matching and sorting (n=327): time 0.03408/0.713, allocations: 15.19 MB / 0.5295 GB, free: 6.117 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.264e-05/0.7131, allocations: 85.98 kB / 0.5296 GB, free: 6.02 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007159/0.7203, allocations: 4.405 MB / 0.5339 GB, free: 1.598 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006262/0.7209, allocations: 85.7 kB / 0.534 GB, free: 1.508 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.2003/0.9213, allocations: 3.538 MB / 0.5375 GB, free: 151.8 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001648/0.923, allocations: 1.101 MB / 0.5385 GB, free: 151.2 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001419/0.9244, allocations: 0.6966 MB / 0.5392 GB, free: 151.2 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.657e-05/0.9245, allocations: 305.4 kB / 0.5395 GB, free: 150.9 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003315/0.9278, allocations: 1.844 MB / 0.5413 GB, free: 150.9 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003636/0.9314, allocations: 2.926 MB / 0.5442 GB, free: 149 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007278/0.9387, allocations: 5.003 MB / 0.5491 GB, free: 145.9 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.25e-05/0.9388, allocations: 9.906 kB / 0.5491 GB, free: 145.9 MB / 446.1 MB Notification: Performance of matching and sorting (n=502) (initialization): time 0.0106/0.9494, allocations: 6.119 MB / 0.555 GB, free: 143.3 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.071e-05/0.9495, allocations: 19.78 kB / 0.5551 GB, free: 143.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.261e-05/0.9495, allocations: 31.69 kB / 0.5551 GB, free: 143.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00201/0.9515, allocations: 0.848 MB / 0.5559 GB, free: 143 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002909/0.9545, allocations: 0.8277 MB / 0.5567 GB, free: 142.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01235/0.9668, allocations: 16.28 MB / 0.5726 GB, free: 129.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003888/0.9708, allocations: 184 kB / 0.5728 GB, free: 129.6 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000354/0.9711, allocations: 168.8 kB / 0.573 GB, free: 129.6 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 148 * Number of states: 0 () * Number of discrete variables: 8 (idealCloser3.control[3],idealCloser3.control[2],idealCloser3.control[1],idealCloserM.control[5],idealCloserM.control[4],idealCloserM.control[3],idealCloserM.control[2],idealCloserM.control[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (439): * Single equations (assignments): 430 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 2 systems {(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,5,100.0%), (1,1,100.0%), (3,23,100.0%), (1,1,100.0%), (1,2,100.0%), (1,2,100.0%), (4,22,56.2%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004115/0.9752, allocations: 2.589 MB / 0.5755 GB, free: 128.3 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007578/0.976, allocations: 454.1 kB / 0.5759 GB, free: 128 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008256/0.9843, allocations: 5.7 MB / 0.5815 GB, free: 125.5 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.911e-05/0.9843, allocations: 29.97 kB / 0.5815 GB, free: 125.5 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.385e-05/0.9843, allocations: 18.66 kB / 0.5815 GB, free: 125.5 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.421e-05/0.9844, allocations: 14.95 kB / 0.5816 GB, free: 125.5 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01796/1.002, allocations: 12.68 MB / 0.5939 GB, free: 116.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-05/1.002, allocations: 4 kB / 0.5939 GB, free: 116.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001546/1.004, allocations: 387.9 kB / 0.5943 GB, free: 115.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003191/1.007, allocations: 1.468 MB / 0.5957 GB, free: 114.3 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001973/1.007, allocations: 95.89 kB / 0.5958 GB, free: 114.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02102/1.028, allocations: 26.46 MB / 0.6217 GB, free: 86.57 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.348e-06/1.028, allocations: 10.58 kB / 0.6217 GB, free: 86.56 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01096/1.039, allocations: 8.161 MB / 0.6297 GB, free: 78.21 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002476/1.042, allocations: 0.9561 MB / 0.6306 GB, free: 77.23 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007192/1.043, allocations: 83.92 kB / 0.6307 GB, free: 77.14 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002024/1.045, allocations: 167.9 kB / 0.6308 GB, free: 76.98 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007313/1.045, allocations: 321.9 kB / 0.6311 GB, free: 76.66 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001742/1.046, allocations: 95.91 kB / 0.6312 GB, free: 76.57 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003904/1.05, allocations: 3.024 MB / 0.6342 GB, free: 73.55 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.4e-07/1.05, allocations: 0 / 0.6342 GB, free: 73.55 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005204/1.055, allocations: 1.441 MB / 0.6356 GB, free: 72.11 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 12 (aimcM.inertiaRotor.w,aimcM.stator.core.Phi.re,aimcM.stator.core.Phi.im,aimcM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[5].Phi.re,aimcM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[5].Phi.im,quadraticLoadTorqueM.phi,aimc3.inertiaRotor.w,aimc3.stator.core.Phi.re,aimc3.stator.core.Phi.im,aimc3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,quadraticLoadTorque3.phi) * Number of discrete variables: 8 (idealCloserM.control[1],idealCloserM.control[2],idealCloserM.control[3],idealCloserM.control[4],idealCloserM.control[5],idealCloser3.control[1],idealCloser3.control[2],idealCloser3.control[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (197): * Single equations (assignments): 188 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 9 systems {(1,1,100.0%), (1,13,100.0%), (1,5,100.0%), (1,8,100.0%), (2,12,100.0%), (1,1,100.0%), (3,23,100.0%), (6,46,72.2%), (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.0005224/1.055, allocations: 233.4 kB / 0.6358 GB, free: 71.88 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0151/1.07, allocations: 8.036 MB / 0.6437 GB, free: 63.7 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.636e-06/1.07, allocations: 0 / 0.6437 GB, free: 63.7 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005848/1.076, allocations: 4.1 MB / 0.6477 GB, free: 59.48 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005819/1.082, allocations: 1.248 MB / 0.6489 GB, free: 58.22 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02218/1.104, allocations: 14.63 MB / 0.6632 GB, free: 43.52 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004168/1.109, allocations: 5.102 MB / 0.6682 GB, free: 38.39 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003402/1.112, allocations: 1.011 MB / 0.6691 GB, free: 37.38 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007113/1.113, allocations: 287.4 kB / 0.6694 GB, free: 37.1 MB / 446.1 MB Notification: Performance of SimCode: time 7.71e-07/1.113, allocations: 4 kB / 0.6694 GB, free: 37.09 MB / 446.1 MB Notification: Performance of Templates: time 0.3248/1.438, allocations: 73.97 MB / 0.7416 GB, free: 120.7 MB / 446.1 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.sim & ./Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.pipe 2>&1)