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.0007964/0.0007964, allocations: 86.33 kB / 15.06 MB, free: 1.09 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.0009007/0.0009007, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.401/1.401, allocations: 205.4 MB / 222.1 MB, free: 5.648 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.0004862/0.0004863, allocations: 11.98 kB / 278.9 MB, free: 12.82 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2328/0.2333, allocations: 47.59 MB / 326.5 MB, free: 1.395 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase): time 0.02333/0.2566, allocations: 20.86 MB / 347.3 MB, free: 14.58 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01473/0.2714, allocations: 6.104 MB / 353.4 MB, free: 8.461 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005098/0.2766, allocations: 131.4 kB / 353.6 MB, free: 8.332 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005194/0.2818, allocations: 1.13 MB / 354.7 MB, free: 7.195 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008936/0.2908, allocations: 1.845 MB / 356.6 MB, free: 5.34 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004099/0.2949, allocations: 0.9514 MB / 357.5 MB, free: 4.387 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.01412/0.309, allocations: 9.877 MB / 367.4 MB, free: 10.47 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01098/0.32, allocations: 5.628 MB / 373 MB, free: 4.781 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00623/0.3263, allocations: 3.129 MB / 376.1 MB, free: 1.641 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00766/0.334, allocations: 4.07 MB / 380.2 MB, free: 13.55 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002653/0.3367, allocations: 0.5156 MB / 380.7 MB, free: 13.04 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004438/0.3412, allocations: 0.6951 MB / 381.4 MB, free: 12.34 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003707/0.3449, allocations: 2.001 MB / 383.4 MB, free: 10.33 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004613/0.3495, allocations: 1.833 MB / 385.3 MB, free: 8.488 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01787/0.3674, allocations: 13.93 MB / 399.2 MB, free: 10.52 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.893e-06/0.3675, allocations: 0 / 399.2 MB, free: 10.52 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.394e-06/0.3675, allocations: 0 / 399.2 MB, free: 10.52 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0005934/0.3681, allocations: 4 kB / 399.2 MB, free: 10.52 MB / 334.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.02645/0.3946, allocations: 8.957 MB / 408.1 MB, free: 1.461 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.852e-05/0.3946, allocations: 8.031 kB / 408.1 MB, free: 1.453 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01268/0.4073, allocations: 2.054 MB / 410.2 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01286/0.4202, allocations: 5.256 MB / 415.5 MB, free: 10.06 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007576/0.4211, allocations: 0.5901 MB / 416 MB, free: 9.469 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00285/0.4239, allocations: 0.7966 MB / 416.8 MB, free: 8.672 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03331/0.4572, allocations: 11.28 MB / 428.1 MB, free: 13.28 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004978/0.4578, allocations: 15.84 kB / 428.1 MB, free: 13.27 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00275/0.4606, allocations: 328 kB / 428.5 MB, free: 12.95 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000468/0.461, allocations: 380.3 kB / 428.8 MB, free: 12.57 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02433/0.4854, allocations: 9.87 MB / 438.7 MB, free: 2.68 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2753/0.7608, allocations: 34.68 MB / 473.4 MB, free: 86.14 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01674/0.7776, allocations: 19.9 MB / 493.3 MB, free: 68.54 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00692/0.7845, allocations: 3.758 MB / 497 MB, free: 66.68 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01975/0.8043, allocations: 9.563 MB / 0.4947 GB, free: 60.43 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.069e-05/0.8045, allocations: 63.88 kB / 0.4948 GB, free: 60.37 MB / 382.1 MB Notification: Performance of pre-optimization done (n=321): time 8.466e-06/0.8045, allocations: 0 / 0.4948 GB, free: 60.37 MB / 382.1 MB Notification: Performance of matching and sorting (n=327): time 0.03428/0.8388, allocations: 15.51 MB / 0.5099 GB, free: 46.19 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.333e-05/0.8389, allocations: 85.92 kB / 0.51 GB, free: 46.09 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008188/0.8471, allocations: 4.377 MB / 0.5143 GB, free: 41.7 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005774/0.8477, allocations: 81.7 kB / 0.5144 GB, free: 41.61 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002012/0.8497, allocations: 3.554 MB / 0.5178 GB, free: 38.04 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001086/0.8508, allocations: 1.1 MB / 0.5189 GB, free: 36.95 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004593/0.8513, allocations: 80 kB / 0.519 GB, free: 36.87 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002269/0.8515, allocations: 458.4 kB / 0.5194 GB, free: 36.41 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003027/0.8546, allocations: 1.85 MB / 0.5212 GB, free: 34.56 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003393/0.858, allocations: 2.938 MB / 0.5241 GB, free: 31.17 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003562/0.8615, allocations: 2.341 MB / 0.5264 GB, free: 28.82 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.838e-05/0.8616, allocations: 8 kB / 0.5264 GB, free: 28.81 MB / 382.1 MB Notification: Performance of matching and sorting (n=502) (initialization): time 0.01093/0.8725, allocations: 6.13 MB / 0.5324 GB, free: 22.59 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.854e-05/0.8726, allocations: 20 kB / 0.5324 GB, free: 22.57 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.024e-05/0.8727, allocations: 32 kB / 0.5324 GB, free: 22.54 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001982/0.8747, allocations: 0.8478 MB / 0.5333 GB, free: 21.67 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003269/0.878, allocations: 0.8424 MB / 0.5341 GB, free: 20.82 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01146/0.8895, allocations: 14.99 MB / 0.5487 GB, free: 4.898 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003433/0.8929, allocations: 191.8 kB / 0.5489 GB, free: 4.711 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006297/0.8936, allocations: 168 kB / 0.5491 GB, free: 4.547 MB / 382.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 (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 initialization (439): * Single equations (assignments): 430 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 5,(1,100.0%) 1,(3,100.0%) 23,(1,100.0%) 1,(1,100.0%) 2,(1,100.0%) 2,(4,56.2%) 22} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005132/0.8987, allocations: 2.585 MB / 0.5516 GB, free: 1.949 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00123/0.9, allocations: 462.4 kB / 0.552 GB, free: 1.492 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01119/0.9112, allocations: 5.724 MB / 0.5576 GB, free: 11.65 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-05/0.9112, allocations: 32 kB / 0.5577 GB, free: 11.62 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.117e-05/0.9113, allocations: 20 kB / 0.5577 GB, free: 11.6 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.586e-05/0.9113, allocations: 15.94 kB / 0.5577 GB, free: 11.59 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02727/0.9386, allocations: 12.71 MB / 0.5701 GB, free: 14.72 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.509e-05/0.9387, allocations: 5.969 kB / 0.5701 GB, free: 14.71 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001739/0.9404, allocations: 399.8 kB / 0.5705 GB, free: 14.32 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003664/0.9441, allocations: 1.442 MB / 0.5719 GB, free: 12.86 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004256/0.9446, allocations: 91.95 kB / 0.572 GB, free: 12.77 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02688/0.9715, allocations: 24.25 MB / 0.5957 GB, free: 3.328 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.112e-06/0.9715, allocations: 4 kB / 0.5957 GB, free: 3.324 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0148/0.9863, allocations: 8.197 MB / 0.6037 GB, free: 10.93 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003195/0.9895, allocations: 0.96 MB / 0.6046 GB, free: 9.949 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001824/0.9914, allocations: 79.98 kB / 0.6047 GB, free: 9.871 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002674/0.9941, allocations: 187.9 kB / 0.6049 GB, free: 9.688 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008193/0.9949, allocations: 325.9 kB / 0.6052 GB, free: 9.367 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003063/0.9952, allocations: 91.97 kB / 0.6053 GB, free: 9.277 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.006327/1.002, allocations: 2.99 MB / 0.6082 GB, free: 6.285 MB / 446.1 MB Notification: Performance of sort global known variables: time 7.61e-07/1.002, allocations: 0 / 0.6082 GB, free: 6.285 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.007594/1.009, allocations: 1.441 MB / 0.6096 GB, free: 4.844 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 (linear and non-linear blocks): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 9 {(1,100.0%) 1,(1,100.0%) 13,(1,100.0%) 5,(1,100.0%) 8,(2,100.0%) 12,(1,100.0%) 1,(3,100.0%) 23,(6,72.2%) 46,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008998/1.01, allocations: 213.6 kB / 0.6098 GB, free: 4.625 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.1874/1.198, allocations: 5.718 MB / 0.6154 GB, free: 152.3 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.578e-06/1.198, allocations: 1.688 kB / 0.6154 GB, free: 152.3 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007343/1.205, allocations: 4.132 MB / 0.6194 GB, free: 151.2 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008135/1.213, allocations: 1.209 MB / 0.6206 GB, free: 151.1 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02572/1.239, allocations: 17.34 MB / 0.6375 GB, free: 142.5 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009088/1.248, allocations: 5.102 MB / 0.6425 GB, free: 140.7 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.006515/1.255, allocations: 1.016 MB / 0.6435 GB, free: 140.6 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001537/1.256, allocations: 280.8 kB / 0.6438 GB, free: 140.5 MB / 446.1 MB Notification: Performance of SimCode: time 1.543e-06/1.256, allocations: 0 / 0.6438 GB, free: 140.5 MB / 446.1 MB Notification: Performance of Templates: time 0.1784/1.435, allocations: 68.46 MB / 0.7106 GB, free: 73.34 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)