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.001497/0.001498, allocations: 111.3 kB / 15.23 MB, free: 0.6367 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.001994/0.001994, allocations: 201.5 kB / 16.14 MB, free: 6.797 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.333/1.333, allocations: 205.1 MB / 222 MB, free: 4.762 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.001154/0.001154, allocations: 51.92 kB / 278.1 MB, free: 12.76 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2283/0.2295, allocations: 46.63 MB / 324.7 MB, free: 1.926 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase): time 0.02381/0.2533, allocations: 23.37 MB / 348.1 MB, free: 12.7 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0138/0.2672, allocations: 6.399 MB / 354.5 MB, free: 6.277 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005212/0.2724, allocations: 135.4 kB / 354.6 MB, free: 6.145 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004933/0.2774, allocations: 1.364 MB / 355.9 MB, free: 4.773 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008297/0.2858, allocations: 1.997 MB / 357.9 MB, free: 2.766 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00433/0.2901, allocations: 1.314 MB / 359.3 MB, free: 1.449 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.01394/0.3041, allocations: 10.53 MB / 369.8 MB, free: 6.879 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009255/0.3134, allocations: 6.622 MB / 376.4 MB, free: 160 kB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005584/0.319, allocations: 3.639 MB / 380 MB, free: 12.5 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007881/0.3269, allocations: 4.829 MB / 384.9 MB, free: 7.648 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002926/0.3299, allocations: 0.7344 MB / 385.6 MB, free: 6.914 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00405/0.3339, allocations: 0.941 MB / 386.6 MB, free: 5.977 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003103/0.3371, allocations: 2.34 MB / 388.9 MB, free: 3.629 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00847/0.3456, allocations: 4.775 MB / 393.7 MB, free: 14.83 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01791/0.3635, allocations: 16.4 MB / 410.1 MB, free: 14.38 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.146e-06/0.3635, allocations: 0 / 410.1 MB, free: 14.38 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.3636, allocations: 4 kB / 410.1 MB, free: 14.38 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0006257/0.3642, allocations: 0 / 410.1 MB, free: 14.38 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: 2135 * Number of variables: 2135 Notification: Performance of Generate backend data structure: time 0.03384/0.3981, allocations: 10.54 MB / 420.6 MB, free: 3.734 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.853e-05/0.3981, allocations: 8.031 kB / 420.6 MB, free: 3.727 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01206/0.4102, allocations: 2.043 MB / 422.7 MB, free: 1.672 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01256/0.4228, allocations: 5.394 MB / 428.1 MB, free: 12.2 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007666/0.4236, allocations: 0.5904 MB / 428.6 MB, free: 11.61 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002974/0.4266, allocations: 0.7966 MB / 429.4 MB, free: 10.82 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03217/0.4588, allocations: 11.33 MB / 440.8 MB, free: 15.37 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004335/0.4593, allocations: 11.84 kB / 440.8 MB, free: 15.36 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002929/0.4622, allocations: 328 kB / 441.1 MB, free: 15.04 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004146/0.4627, allocations: 376.2 kB / 441.5 MB, free: 14.67 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02311/0.4858, allocations: 9.882 MB / 451.4 MB, free: 4.77 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3835/0.8693, allocations: 34.49 MB / 485.8 MB, free: 80.66 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01483/0.8842, allocations: 19.89 MB / 0.4939 GB, free: 61.41 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005772/0.8901, allocations: 3.714 MB / 0.4975 GB, free: 57.7 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01559/0.9057, allocations: 9.528 MB / 0.5068 GB, free: 48.23 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.594e-05/0.9058, allocations: 73.03 kB / 0.5069 GB, free: 48.15 MB / 382.1 MB Notification: Performance of pre-optimization done (n=321): time 4.969e-06/0.9058, allocations: 0 / 0.5069 GB, free: 48.15 MB / 382.1 MB Notification: Performance of matching and sorting (n=327): time 0.0303/0.9361, allocations: 15.2 MB / 0.5217 GB, free: 32.61 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.734e-05/0.9362, allocations: 85.98 kB / 0.5218 GB, free: 32.52 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006967/0.9432, allocations: 4.412 MB / 0.5261 GB, free: 28.09 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004166/0.9436, allocations: 81.7 kB / 0.5262 GB, free: 28 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001766/0.9454, allocations: 3.548 MB / 0.5297 GB, free: 24.43 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001117/0.9465, allocations: 1.092 MB / 0.5307 GB, free: 23.35 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001694/0.9482, allocations: 0.7005 MB / 0.5314 GB, free: 22.64 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.323e-05/0.9483, allocations: 305.1 kB / 0.5317 GB, free: 22.34 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002737/0.951, allocations: 1.843 MB / 0.5335 GB, free: 20.5 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003074/0.9541, allocations: 2.926 MB / 0.5364 GB, free: 17.12 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005879/0.96, allocations: 5 MB / 0.5412 GB, free: 11.64 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.014e-05/0.96, allocations: 12 kB / 0.5412 GB, free: 11.63 MB / 382.1 MB Notification: Performance of matching and sorting (n=502) (initialization): time 0.00917/0.9692, allocations: 6.115 MB / 0.5472 GB, free: 5.43 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.68e-05/0.9693, allocations: 20 kB / 0.5472 GB, free: 5.41 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.542e-05/0.9693, allocations: 35.94 kB / 0.5473 GB, free: 5.375 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001967/0.9713, allocations: 0.8477 MB / 0.5481 GB, free: 4.5 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002999/0.9743, allocations: 0.8268 MB / 0.5489 GB, free: 3.672 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01454/0.9889, allocations: 15 MB / 0.5636 GB, free: 3.738 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003946/0.9929, allocations: 175.9 kB / 0.5637 GB, free: 3.566 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007095/0.9936, allocations: 164 kB / 0.5639 GB, free: 3.406 MB / 398.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.005601/0.9992, allocations: 2.593 MB / 0.5664 GB, free: 0.8008 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001297/1.001, allocations: 458.4 kB / 0.5668 GB, free: 356 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01092/1.011, allocations: 5.696 MB / 0.5724 GB, free: 10.57 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.396e-05/1.011, allocations: 32 kB / 0.5724 GB, free: 10.54 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.399e-05/1.012, allocations: 20 kB / 0.5725 GB, free: 10.52 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-05/1.012, allocations: 19.88 kB / 0.5725 GB, free: 10.5 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0235/1.035, allocations: 12.69 MB / 0.5849 GB, free: 13.59 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.409e-05/1.035, allocations: 7.938 kB / 0.5849 GB, free: 13.58 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001714/1.037, allocations: 383.9 kB / 0.5852 GB, free: 13.2 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003883/1.041, allocations: 1.459 MB / 0.5867 GB, free: 11.72 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002853/1.041, allocations: 87.97 kB / 0.5868 GB, free: 11.64 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02741/1.068, allocations: 24.26 MB / 0.6104 GB, free: 2.188 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.641e-06/1.069, allocations: 4 kB / 0.6104 GB, free: 2.184 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1937/1.262, allocations: 8.154 MB / 0.6184 GB, free: 148.3 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002906/1.265, allocations: 0.9621 MB / 0.6193 GB, free: 148.2 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001698/1.267, allocations: 81.69 kB / 0.6194 GB, free: 148.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003443/1.27, allocations: 170.6 kB / 0.6196 GB, free: 148.2 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001199/1.272, allocations: 318.6 kB / 0.6199 GB, free: 148.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005329/1.272, allocations: 88.39 kB / 0.62 GB, free: 148.2 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.006718/1.279, allocations: 3.024 MB / 0.6229 GB, free: 147.3 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.8e-07/1.279, allocations: 0 / 0.6229 GB, free: 147.3 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.006258/1.285, allocations: 1.444 MB / 0.6243 GB, free: 147.2 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.0007521/1.286, allocations: 218.2 kB / 0.6245 GB, free: 147 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007827/1.294, allocations: 5.702 MB / 0.6301 GB, free: 144.3 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.745e-06/1.294, allocations: 5.156 kB / 0.6301 GB, free: 144.3 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005415/1.299, allocations: 4.11 MB / 0.6341 GB, free: 142 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006909/1.306, allocations: 1.174 MB / 0.6353 GB, free: 141.7 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02549/1.332, allocations: 17.99 MB / 0.6528 GB, free: 126.5 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004843/1.337, allocations: 5.105 MB / 0.6578 GB, free: 122.6 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003662/1.34, allocations: 1.018 MB / 0.6588 GB, free: 121.7 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008245/1.341, allocations: 275.4 kB / 0.6591 GB, free: 121.5 MB / 446.1 MB Notification: Performance of SimCode: time 8.31e-07/1.341, allocations: 0 / 0.6591 GB, free: 121.5 MB / 446.1 MB Notification: Performance of Templates: time 0.09638/1.438, allocations: 71.08 MB / 0.7285 GB, free: 50.29 MB / 446.1 MB 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)