Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_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.1_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.1_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.007632/0.007632, allocations: 100.6 kB / 15.73 MB, free: 5.988 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.001504/0.001505, allocations: 192.5 kB / 16.67 MB, free: 5.91 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.379/1.379, allocations: 205.1 MB / 222.5 MB, free: 4.395 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.001223/0.001223, allocations: 49.58 kB / 326.6 MB, free: 14.46 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08544/0.08668, allocations: 46.63 MB / 373.2 MB, free: 1.27 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase): time 0.03764/0.1244, allocations: 23.7 MB / 396.9 MB, free: 9.461 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01765/0.1421, allocations: 6.496 MB / 403.4 MB, free: 2.945 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005153/0.1473, allocations: 139.4 kB / 403.5 MB, free: 2.809 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006549/0.1539, allocations: 1.591 MB / 405.1 MB, free: 1.207 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01086/0.1648, allocations: 2.209 MB / 407.3 MB, free: 14.98 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00686/0.1717, allocations: 1.427 MB / 408.8 MB, free: 13.55 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.018/0.1897, allocations: 9.861 MB / 418.6 MB, free: 3.652 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01528/0.205, allocations: 7.988 MB / 426.6 MB, free: 11.56 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008645/0.2137, allocations: 4.627 MB / 431.2 MB, free: 6.918 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01095/0.2247, allocations: 5.274 MB / 436.5 MB, free: 1.625 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003619/0.2284, allocations: 1.305 MB / 437.8 MB, free: 328 kB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005067/0.2335, allocations: 1.5 MB / 439.3 MB, free: 14.82 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004075/0.2376, allocations: 2.945 MB / 442.3 MB, free: 11.87 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00972/0.2473, allocations: 5.415 MB / 447.7 MB, free: 6.43 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2246/0.4719, allocations: 17.01 MB / 464.7 MB, free: 31.95 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.025e-06/0.472, allocations: 1.094 kB / 464.7 MB, free: 31.95 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.425e-06/0.472, allocations: 0 / 464.7 MB, free: 31.95 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0007396/0.4727, allocations: 0 / 464.7 MB, free: 31.95 MB / 382.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.04146/0.5142, allocations: 10.56 MB / 475.2 MB, free: 27.48 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.295e-05/0.5143, allocations: 16 kB / 475.3 MB, free: 27.47 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01378/0.5281, allocations: 2.037 MB / 477.3 MB, free: 26.65 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01567/0.5438, allocations: 5.575 MB / 482.9 MB, free: 24.47 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006377/0.5444, allocations: 0.5924 MB / 483.5 MB, free: 24.2 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004218/0.5487, allocations: 0.7908 MB / 484.2 MB, free: 23.93 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03132/0.58, allocations: 11.33 MB / 495.6 MB, free: 17.26 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002226/0.5803, allocations: 15.19 kB / 495.6 MB, free: 17.25 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001442/0.5817, allocations: 328.3 kB / 495.9 MB, free: 17 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002611/0.582, allocations: 383.3 kB / 496.3 MB, free: 16.94 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01992/0.6019, allocations: 9.873 MB / 0.4943 GB, free: 8.48 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06802/0.67, allocations: 34.04 MB / 0.5275 GB, free: 6.484 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01994/0.69, allocations: 19.89 MB / 0.547 GB, free: 0.5898 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005983/0.696, allocations: 3.682 MB / 0.5506 GB, free: 12.9 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01825/0.7143, allocations: 9.486 MB / 0.5598 GB, free: 3.426 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.24e-05/0.7144, allocations: 69.03 kB / 0.5599 GB, free: 3.348 MB / 446.1 MB Notification: Performance of pre-optimization done (n=321): time 4.789e-06/0.7144, allocations: 4 kB / 0.5599 GB, free: 3.344 MB / 446.1 MB Notification: Performance of matching and sorting (n=327): time 0.03586/0.7503, allocations: 15.2 MB / 0.5747 GB, free: 3.887 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.892e-05/0.7504, allocations: 85.98 kB / 0.5748 GB, free: 3.789 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007655/0.7581, allocations: 4.41 MB / 0.5791 GB, free: 15.36 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007603/0.7589, allocations: 84.11 kB / 0.5792 GB, free: 15.28 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002649/0.7615, allocations: 3.546 MB / 0.5827 GB, free: 11.71 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001369/0.7629, allocations: 1.104 MB / 0.5837 GB, free: 10.62 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001152/0.7641, allocations: 0.7005 MB / 0.5844 GB, free: 9.91 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 8.961e-05/0.7642, allocations: 301.1 kB / 0.5847 GB, free: 9.613 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003044/0.7672, allocations: 1.839 MB / 0.5865 GB, free: 7.773 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003738/0.771, allocations: 2.924 MB / 0.5894 GB, free: 4.41 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007167/0.7781, allocations: 5 MB / 0.5942 GB, free: 15.07 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-05/0.7782, allocations: 12 kB / 0.5943 GB, free: 15.06 MB / 494.1 MB Notification: Performance of matching and sorting (n=502) (initialization): time 0.01085/0.789, allocations: 6.112 MB / 0.6002 GB, free: 9.086 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.189e-05/0.7891, allocations: 20 kB / 0.6002 GB, free: 9.066 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.968e-05/0.7892, allocations: 32 kB / 0.6003 GB, free: 9.035 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002163/0.7913, allocations: 0.8587 MB / 0.6011 GB, free: 8.152 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00323/0.7946, allocations: 0.8264 MB / 0.6019 GB, free: 7.379 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01599/0.8106, allocations: 16.28 MB / 0.6178 GB, free: 6.207 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004432/0.8151, allocations: 175.8 kB / 0.618 GB, free: 6.035 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006004/0.8157, allocations: 168 kB / 0.6181 GB, free: 5.871 MB / 0.4981 GB 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.004989/0.8207, allocations: 2.597 MB / 0.6207 GB, free: 3.32 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009653/0.8216, allocations: 458.4 kB / 0.6211 GB, free: 2.867 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0102/0.8319, allocations: 5.683 MB / 0.6267 GB, free: 13.13 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.516e-05/0.8319, allocations: 30.52 kB / 0.6267 GB, free: 13.1 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.587e-05/0.8319, allocations: 20 kB / 0.6267 GB, free: 13.08 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.967e-05/0.832, allocations: 19.88 kB / 0.6267 GB, free: 13.06 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02348/0.8555, allocations: 12.69 MB / 0.6391 GB, free: 304 kB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.597e-05/0.8555, allocations: 3.938 kB / 0.6391 GB, free: 300 kB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.2252/1.081, allocations: 383.8 kB / 0.6395 GB, free: 189.5 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004545/1.085, allocations: 1.437 MB / 0.6409 GB, free: 189.4 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005521/1.086, allocations: 91.67 kB / 0.641 GB, free: 189.4 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02392/1.11, allocations: 26.44 MB / 0.6668 GB, free: 171.6 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.723e-06/1.11, allocations: 8.438 kB / 0.6668 GB, free: 171.6 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01248/1.122, allocations: 8.158 MB / 0.6748 GB, free: 168.1 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003145/1.125, allocations: 0.9565 MB / 0.6757 GB, free: 167.8 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00142/1.127, allocations: 82.11 kB / 0.6758 GB, free: 167.7 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002738/1.13, allocations: 160 kB / 0.6759 GB, free: 167.7 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008688/1.131, allocations: 331.5 kB / 0.6763 GB, free: 167.6 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002068/1.131, allocations: 88.22 kB / 0.6763 GB, free: 167.6 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.004782/1.136, allocations: 3.022 MB / 0.6793 GB, free: 166.5 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.6e-07/1.136, allocations: 3.219 kB / 0.6793 GB, free: 166.5 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.006776/1.142, allocations: 1.447 MB / 0.6807 GB, free: 166.3 MB / 0.5137 GB 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.0007408/1.143, allocations: 208.4 kB / 0.6809 GB, free: 166.2 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.00806/1.151, allocations: 5.718 MB / 0.6865 GB, free: 161.3 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 6.943e-06/1.151, allocations: 0 / 0.6865 GB, free: 161.3 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.005622/1.157, allocations: 4.111 MB / 0.6905 GB, free: 157.6 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006144/1.163, allocations: 1.25 MB / 0.6917 GB, free: 156.6 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02399/1.187, allocations: 14.46 MB / 0.7058 GB, free: 142.5 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004675/1.192, allocations: 5.096 MB / 0.7108 GB, free: 137.4 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.003442/1.195, allocations: 1.019 MB / 0.7118 GB, free: 136.4 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007868/1.196, allocations: 275.4 kB / 0.7121 GB, free: 136.1 MB / 0.5137 GB Notification: Performance of SimCode: time 1.192e-06/1.196, allocations: 4 kB / 0.7121 GB, free: 136.1 MB / 0.5137 GB Notification: Performance of Templates: time 0.1017/1.298, allocations: 71.11 MB / 0.7815 GB, free: 64.96 MB / 0.5137 GB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.sim & ./Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.pipe 2>&1)