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.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,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007351/0.007351, allocations: 99.52 kB / 15.73 MB, free: 6.008 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.001619/0.001619, allocations: 198.9 kB / 16.68 MB, free: 5.93 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.46/1.46, allocations: 205.1 MB / 222.5 MB, free: 4.5 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.001321/0.001321, allocations: 54.77 kB / 326.6 MB, free: 14.32 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09566/0.09699, allocations: 46.63 MB / 373.2 MB, free: 1.297 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL): time 0.02121/0.1182, allocations: 19.46 MB / 392.7 MB, free: 13.75 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01178/0.1301, allocations: 5.702 MB / 398.4 MB, free: 8.027 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004143/0.1343, allocations: 103.6 kB / 398.5 MB, free: 7.926 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004851/0.1392, allocations: 1.292 MB / 399.8 MB, free: 6.625 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007063/0.1463, allocations: 1.899 MB / 401.7 MB, free: 4.715 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003074/0.1493, allocations: 1.177 MB / 402.8 MB, free: 3.535 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.007515/0.1569, allocations: 6.429 MB / 409.3 MB, free: 13.08 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005982/0.1629, allocations: 5.333 MB / 414.6 MB, free: 7.652 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003973/0.1669, allocations: 2.956 MB / 417.5 MB, free: 4.688 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005158/0.1721, allocations: 3.476 MB / 421 MB, free: 1.199 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001695/0.1738, allocations: 0.8008 MB / 421.8 MB, free: 408 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00275/0.1766, allocations: 1.07 MB / 422.9 MB, free: 15.33 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001945/0.1785, allocations: 1.983 MB / 424.9 MB, free: 13.34 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00554/0.1841, allocations: 3.431 MB / 428.3 MB, free: 9.895 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01327/0.1974, allocations: 10.6 MB / 438.9 MB, free: 15.26 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.035e-05/0.1974, allocations: 4 kB / 438.9 MB, free: 15.26 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.1974, allocations: 0 / 438.9 MB, free: 15.26 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003557/0.1978, allocations: 4 kB / 438.9 MB, free: 15.25 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: 1348 * Number of variables: 1348 Notification: Performance of Generate backend data structure: time 0.01959/0.2174, allocations: 6.695 MB / 445.6 MB, free: 8.477 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.864e-05/0.2175, allocations: 8.031 kB / 445.6 MB, free: 8.469 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005404/0.2229, allocations: 1.075 MB / 446.7 MB, free: 7.387 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006909/0.2298, allocations: 3.467 MB / 450.2 MB, free: 3.844 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003362/0.2302, allocations: 390.7 kB / 450.5 MB, free: 3.461 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001337/0.2315, allocations: 0.5078 MB / 451 MB, free: 2.953 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2075/0.439, allocations: 6.944 MB / 458 MB, free: 62.73 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000151/0.4392, allocations: 16.02 kB / 458 MB, free: 62.73 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005247/0.4397, allocations: 215.5 kB / 458.2 MB, free: 62.57 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002471/0.44, allocations: 235.7 kB / 458.4 MB, free: 62.55 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01177/0.4517, allocations: 5.916 MB / 464.4 MB, free: 60.32 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03656/0.4883, allocations: 21.09 MB / 485.5 MB, free: 45.82 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007802/0.4962, allocations: 8.704 MB / 494.2 MB, free: 38 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003786/0.5, allocations: 2.373 MB / 496.5 MB, free: 35.84 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0103/0.5103, allocations: 6.106 MB / 0.4909 GB, free: 29.71 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.688e-05/0.5104, allocations: 56.56 kB / 0.4909 GB, free: 29.64 MB / 382.1 MB Notification: Performance of pre-optimization done (n=219): time 4.469e-06/0.5104, allocations: 3.969 kB / 0.4909 GB, free: 29.64 MB / 382.1 MB Notification: Performance of matching and sorting (n=238): time 0.0203/0.5307, allocations: 11.29 MB / 0.5019 GB, free: 18.14 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.94e-05/0.5308, allocations: 73.41 kB / 0.502 GB, free: 18.06 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004239/0.5351, allocations: 2.99 MB / 0.5049 GB, free: 15.06 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002774/0.5353, allocations: 73.7 kB / 0.505 GB, free: 14.98 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001079/0.5364, allocations: 2.299 MB / 0.5072 GB, free: 12.66 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005803/0.537, allocations: 0.8116 MB / 0.508 GB, free: 11.86 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008141/0.5378, allocations: 0.5098 MB / 0.5085 GB, free: 11.34 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.49e-05/0.5379, allocations: 301.1 kB / 0.5088 GB, free: 11.04 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001863/0.5398, allocations: 1.356 MB / 0.5102 GB, free: 9.688 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002135/0.5419, allocations: 2.139 MB / 0.5122 GB, free: 7.215 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004076/0.546, allocations: 3.69 MB / 0.5158 GB, free: 3.168 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-05/0.546, allocations: 8 kB / 0.5158 GB, free: 3.16 MB / 382.1 MB Notification: Performance of matching and sorting (n=367) (initialization): time 0.007454/0.5535, allocations: 4.66 MB / 0.5204 GB, free: 14.39 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.812e-05/0.5536, allocations: 12 kB / 0.5204 GB, free: 14.38 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.947e-05/0.5536, allocations: 27.94 kB / 0.5204 GB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002041/0.5557, allocations: 0.7657 MB / 0.5212 GB, free: 13.56 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00258/0.5583, allocations: 0.6318 MB / 0.5218 GB, free: 12.93 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01371/0.572, allocations: 14.54 MB / 0.536 GB, free: 13.45 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002618/0.5747, allocations: 155.9 kB / 0.5361 GB, free: 13.3 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005075/0.5752, allocations: 120 kB / 0.5363 GB, free: 13.18 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 106 * Number of states: 0 () * Number of discrete variables: 3 (idealCloser.control[3],idealCloser.control[2],idealCloser.control[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (324): * Single equations (assignments): 314 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * 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): 3 systems {(2,100.0%), (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,8,100.0%), (2,12,100.0%), (1,1,100.0%), (1,13,100.0%), (1,1,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003184/0.5784, allocations: 1.599 MB / 0.5378 GB, free: 11.57 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009145/0.5793, allocations: 324 kB / 0.5381 GB, free: 11.25 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007482/0.5868, allocations: 4.191 MB / 0.5422 GB, free: 6.973 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.874e-05/0.5869, allocations: 20 kB / 0.5422 GB, free: 6.953 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.753e-05/0.5869, allocations: 12 kB / 0.5423 GB, free: 6.941 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.437e-05/0.5869, allocations: 11.95 kB / 0.5423 GB, free: 6.93 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0165/0.6034, allocations: 9.131 MB / 0.5512 GB, free: 13.67 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.741e-05/0.6035, allocations: 4 kB / 0.5512 GB, free: 13.67 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001685/0.6052, allocations: 371.8 kB / 0.5515 GB, free: 13.3 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002507/0.6077, allocations: 0.9318 MB / 0.5525 GB, free: 12.35 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002701/0.608, allocations: 67.97 kB / 0.5525 GB, free: 12.28 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01767/0.6257, allocations: 17.99 MB / 0.5701 GB, free: 9.211 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.274e-06/0.6257, allocations: 15.88 kB / 0.5701 GB, free: 9.195 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0103/0.636, allocations: 6.052 MB / 0.576 GB, free: 3.016 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001922/0.638, allocations: 0.6963 MB / 0.5767 GB, free: 2.297 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008284/0.6388, allocations: 55.98 kB / 0.5767 GB, free: 2.242 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002114/0.641, allocations: 135.9 kB / 0.5769 GB, free: 2.109 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005166/0.6415, allocations: 197.5 kB / 0.5771 GB, free: 1.918 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001943/0.6417, allocations: 71.97 kB / 0.5771 GB, free: 1.848 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003868/0.6456, allocations: 2.041 MB / 0.5791 GB, free: 15.81 MB / 462.1 MB Notification: Performance of sort global known variables: time 4.11e-07/0.6456, allocations: 0 / 0.5791 GB, free: 15.81 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003829/0.6494, allocations: 0.9791 MB / 0.5801 GB, free: 14.83 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 14 (aimcM.inertiaRotor.w,aimcM.stator.zeroInductor.i0,aimcM.stator.core.Phi.re,aimcM.stator.core.Phi.im,aimcM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimcM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,aimcE.inertiaRotor.w,aimcE.i_0_s,aimcE.idq_sr[1],aimcE.idq_sr[2],aimcE.idq_rr[1],aimcE.idq_rr[2],quadraticLoadTorqueM.phi,quadraticLoadTorqueE.phi) * Number of discrete variables: 3 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (179): * Single equations (assignments): 170 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(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): 8 systems {(2,12,100.0%), (1,1,100.0%), (1,8,100.0%), (2,1,100.0%), (1,1,100.0%), (1,13,100.0%), (1,8,100.0%), (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.0006315/0.6501, allocations: 239.2 kB / 0.5803 GB, free: 14.59 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007012/0.6571, allocations: 4.593 MB / 0.5848 GB, free: 9.848 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.402e-06/0.6571, allocations: 0 / 0.5848 GB, free: 9.848 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004612/0.6617, allocations: 3.052 MB / 0.5878 GB, free: 6.672 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004764/0.6665, allocations: 0.9076 MB / 0.5887 GB, free: 5.762 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01845/0.685, allocations: 9.895 MB / 0.5983 GB, free: 11.8 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0046/0.6897, allocations: 3.43 MB / 0.6017 GB, free: 8.344 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0029/0.6926, allocations: 0.7698 MB / 0.6024 GB, free: 7.57 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007715/0.6934, allocations: 215.4 kB / 0.6026 GB, free: 7.363 MB / 478.1 MB Notification: Performance of SimCode: time 1.452e-06/0.6934, allocations: 0 / 0.6026 GB, free: 7.363 MB / 478.1 MB Notification: Performance of Templates: time 0.276/0.9694, allocations: 49.23 MB / 0.6507 GB, free: 149.3 MB / 494.1 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.sim & ./Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.pipe 2>&1)