Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.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.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.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.001095/0.001095, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001134/0.001134, allocations: 195.2 kB / 16.14 MB, free: 6.66 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.32/1.32, allocations: 205.1 MB / 222 MB, free: 4.738 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.001164/0.001164, allocations: 52.39 kB / 278.1 MB, free: 12.75 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1999/0.201, allocations: 46.63 MB / 324.7 MB, free: 1.961 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase): time 0.02162/0.2227, allocations: 23.35 MB / 348 MB, free: 12.71 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01299/0.2357, allocations: 6.414 MB / 354.5 MB, free: 6.281 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003704/0.2395, allocations: 131.4 kB / 354.6 MB, free: 6.152 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003565/0.2431, allocations: 1.364 MB / 355.9 MB, free: 4.781 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005804/0.2489, allocations: 2.001 MB / 357.9 MB, free: 2.77 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002838/0.2518, allocations: 1.311 MB / 359.3 MB, free: 1.457 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.01071/0.2625, allocations: 10.52 MB / 369.8 MB, free: 6.895 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00732/0.2698, allocations: 6.637 MB / 376.4 MB, free: 160 kB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004847/0.2747, allocations: 3.643 MB / 380.1 MB, free: 12.5 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006726/0.2815, allocations: 4.825 MB / 384.9 MB, free: 7.652 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001867/0.2833, allocations: 0.7383 MB / 385.6 MB, free: 6.914 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00326/0.2866, allocations: 0.9333 MB / 386.6 MB, free: 5.98 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002691/0.2893, allocations: 2.34 MB / 388.9 MB, free: 3.633 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006213/0.2955, allocations: 4.778 MB / 393.7 MB, free: 14.83 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01544/0.311, allocations: 16.4 MB / 410.1 MB, free: 14.38 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.193e-06/0.311, allocations: 3.984 kB / 410.1 MB, free: 14.38 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.311, allocations: 0 / 410.1 MB, free: 14.38 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0003948/0.3115, 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.02838/0.3398, allocations: 10.54 MB / 420.6 MB, free: 3.73 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.793e-05/0.3399, allocations: 12.03 kB / 420.6 MB, free: 3.719 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01155/0.3515, allocations: 2.039 MB / 422.7 MB, free: 1.668 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01053/0.362, allocations: 5.391 MB / 428.1 MB, free: 12.2 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005438/0.3626, allocations: 0.5943 MB / 428.7 MB, free: 11.61 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002515/0.3651, allocations: 0.7928 MB / 429.4 MB, free: 10.81 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02347/0.3886, allocations: 11.32 MB / 440.8 MB, free: 15.38 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001496/0.3888, allocations: 15.78 kB / 440.8 MB, free: 15.36 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008051/0.3896, allocations: 336 kB / 441.1 MB, free: 15.04 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002894/0.3899, allocations: 372.3 kB / 441.5 MB, free: 14.67 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0191/0.409, allocations: 9.878 MB / 451.4 MB, free: 4.77 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1997/0.6088, allocations: 34.49 MB / 485.8 MB, free: 82.46 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01421/0.623, allocations: 19.89 MB / 0.4939 GB, free: 63.34 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005309/0.6284, allocations: 3.717 MB / 0.4975 GB, free: 59.62 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01335/0.6418, allocations: 9.521 MB / 0.5068 GB, free: 50.16 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.462e-05/0.6418, allocations: 73.09 kB / 0.5069 GB, free: 50.08 MB / 382.1 MB Notification: Performance of pre-optimization done (n=321): time 5.63e-06/0.6418, allocations: 0 / 0.5069 GB, free: 50.08 MB / 382.1 MB Notification: Performance of matching and sorting (n=327): time 0.02782/0.6697, allocations: 15.2 MB / 0.5217 GB, free: 34.55 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.718e-05/0.6698, allocations: 85.98 kB / 0.5218 GB, free: 34.45 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005604/0.6754, allocations: 4.408 MB / 0.5261 GB, free: 30.02 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004219/0.6758, allocations: 85.69 kB / 0.5262 GB, free: 29.93 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00149/0.6773, allocations: 3.548 MB / 0.5297 GB, free: 26.37 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006549/0.678, allocations: 1.1 MB / 0.5307 GB, free: 25.27 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008737/0.6789, allocations: 0.6966 MB / 0.5314 GB, free: 24.57 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.485e-05/0.6789, allocations: 305.1 kB / 0.5317 GB, free: 24.27 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002421/0.6813, allocations: 1.843 MB / 0.5335 GB, free: 22.43 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0027/0.684, allocations: 2.93 MB / 0.5364 GB, free: 19.05 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005222/0.6893, allocations: 5.008 MB / 0.5413 GB, free: 13.56 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.275e-05/0.6893, allocations: 8 kB / 0.5413 GB, free: 13.55 MB / 382.1 MB Notification: Performance of matching and sorting (n=502) (initialization): time 0.008142/0.6974, allocations: 6.11 MB / 0.5472 GB, free: 7.355 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.156e-05/0.6975, allocations: 20.81 kB / 0.5472 GB, free: 7.336 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.909e-05/0.6975, allocations: 32 kB / 0.5473 GB, free: 7.305 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0019/0.6994, allocations: 0.8395 MB / 0.5481 GB, free: 6.438 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002871/0.7023, allocations: 0.8307 MB / 0.5489 GB, free: 5.605 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01286/0.7152, allocations: 14.99 MB / 0.5636 GB, free: 5.68 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003887/0.7191, allocations: 179.9 kB / 0.5637 GB, free: 5.504 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003666/0.7195, allocations: 168 kB / 0.5639 GB, free: 5.34 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.004391/0.7239, allocations: 2.589 MB / 0.5664 GB, free: 2.738 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008975/0.7248, allocations: 458.4 kB / 0.5669 GB, free: 2.285 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009631/0.7344, allocations: 5.691 MB / 0.5724 GB, free: 12.48 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.632e-05/0.7345, allocations: 36 kB / 0.5724 GB, free: 12.45 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.247e-05/0.7345, allocations: 16 kB / 0.5725 GB, free: 12.43 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.03e-05/0.7346, allocations: 19.88 kB / 0.5725 GB, free: 12.41 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0206/0.7552, allocations: 12.69 MB / 0.5849 GB, free: 15.56 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.346e-05/0.7552, allocations: 7.938 kB / 0.5849 GB, free: 15.55 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001646/0.7569, allocations: 379.4 kB / 0.5852 GB, free: 15.18 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003714/0.7606, allocations: 1.46 MB / 0.5867 GB, free: 13.7 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002562/0.7609, allocations: 91.95 kB / 0.5867 GB, free: 13.61 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02496/0.7858, allocations: 24.25 MB / 0.6104 GB, free: 4.152 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.11e-06/0.7859, allocations: 4 kB / 0.6104 GB, free: 4.148 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1745/0.9604, allocations: 8.159 MB / 0.6184 GB, free: 149.3 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0023/0.9627, allocations: 0.9536 MB / 0.6193 GB, free: 149.2 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006579/0.9634, allocations: 80.7 kB / 0.6194 GB, free: 149.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001972/0.9654, allocations: 170.5 kB / 0.6196 GB, free: 149.2 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000779/0.9662, allocations: 323 kB / 0.6199 GB, free: 149.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002092/0.9664, allocations: 94.05 kB / 0.62 GB, free: 149.2 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004067/0.9705, allocations: 3.022 MB / 0.6229 GB, free: 148.9 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.9705, allocations: 3.375 kB / 0.6229 GB, free: 148.9 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004181/0.9746, allocations: 1.438 MB / 0.6243 GB, free: 148.8 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.0004309/0.9751, allocations: 230.9 kB / 0.6246 GB, free: 148.6 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007212/0.9823, allocations: 5.691 MB / 0.6301 GB, free: 145.9 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.889e-06/0.9823, allocations: 1.844 kB / 0.6301 GB, free: 145.9 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005052/0.9874, allocations: 4.12 MB / 0.6341 GB, free: 143.6 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004564/0.992, allocations: 1.175 MB / 0.6353 GB, free: 143.3 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02327/1.015, allocations: 17.99 MB / 0.6529 GB, free: 129.7 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004233/1.02, allocations: 5.098 MB / 0.6578 GB, free: 125.8 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003927/1.023, allocations: 1.016 MB / 0.6588 GB, free: 125 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009535/1.024, allocations: 278.7 kB / 0.6591 GB, free: 124.8 MB / 446.1 MB Notification: Performance of SimCode: time 1.242e-06/1.024, allocations: 0 / 0.6591 GB, free: 124.8 MB / 446.1 MB Notification: Performance of Templates: time 0.101/1.125, allocations: 71.07 MB / 0.7285 GB, free: 53.85 MB / 446.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.makefile (rm -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.sim & ./Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.pipe 2>&1)