Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_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.AIMS_Start_MultiPhase,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001613/0.001613, allocations: 105.7 kB / 16.62 MB, free: 6.809 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.001915/0.001915, allocations: 193.8 kB / 17.55 MB, free: 5.953 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.282/1.282, allocations: 205.1 MB / 223.4 MB, free: 12.45 MB / 190.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.001572/0.001572, allocations: 51.92 kB / 279.5 MB, free: 3.488 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08495/0.08654, allocations: 46.64 MB / 326.2 MB, free: 4.781 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase): time 0.02532/0.1119, allocations: 27.45 MB / 353.6 MB, free: 9.203 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01554/0.1275, allocations: 7.614 MB / 361.2 MB, free: 1.562 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005678/0.1332, allocations: 163.2 kB / 361.4 MB, free: 1.402 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005942/0.1392, allocations: 1.648 MB / 363 MB, free: 15.75 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009557/0.1488, allocations: 2.374 MB / 365.4 MB, free: 13.36 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005237/0.154, allocations: 1.552 MB / 367 MB, free: 11.8 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.2936/0.4477, allocations: 12.87 MB / 379.8 MB, free: 13.92 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01488/0.4626, allocations: 10.96 MB / 390.8 MB, free: 11.77 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007539/0.4702, allocations: 5.634 MB / 396.4 MB, free: 11.22 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01075/0.481, allocations: 6.717 MB / 403.1 MB, free: 10.09 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004981/0.486, allocations: 1.662 MB / 404.8 MB, free: 10.09 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006592/0.4926, allocations: 1.873 MB / 406.7 MB, free: 10.07 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005297/0.4979, allocations: 3.785 MB / 410.5 MB, free: 7.777 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01127/0.5092, allocations: 6.899 MB / 417.4 MB, free: 1.699 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0278/0.5371, allocations: 21.46 MB / 438.8 MB, free: 13.59 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.382e-06/0.5371, allocations: 0 / 438.8 MB, free: 13.59 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.5371, allocations: 0 / 438.8 MB, free: 13.59 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0007078/0.5378, allocations: 0 / 438.8 MB, free: 13.59 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: 2681 * Number of variables: 2681 Notification: Performance of Generate backend data structure: time 0.04003/0.5779, allocations: 13.16 MB / 452 MB, free: 384 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.689e-05/0.5779, allocations: 11.89 kB / 452 MB, free: 372 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01359/0.5915, allocations: 2.322 MB / 454.3 MB, free: 14.03 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01817/0.6098, allocations: 7.341 MB / 461.7 MB, free: 6.941 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00102/0.6108, allocations: 0.7459 MB / 462.4 MB, free: 6.195 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003488/0.6143, allocations: 0.9882 MB / 463.4 MB, free: 5.211 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03607/0.6504, allocations: 14.42 MB / 477.8 MB, free: 6.668 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002837/0.6507, allocations: 11.28 kB / 477.8 MB, free: 6.66 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002482/0.6532, allocations: 420.5 kB / 478.2 MB, free: 6.254 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004389/0.6537, allocations: 452.4 kB / 478.7 MB, free: 5.809 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02742/0.6811, allocations: 12.53 MB / 491.2 MB, free: 9.281 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08379/0.7649, allocations: 44.07 MB / 0.5227 GB, free: 13.11 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1967/0.9617, allocations: 25.07 MB / 0.5472 GB, free: 130.6 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008885/0.9707, allocations: 4.939 MB / 0.552 GB, free: 129.9 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02126/0.992, allocations: 12.18 MB / 0.5639 GB, free: 124.4 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.226e-05/0.9921, allocations: 92.47 kB / 0.564 GB, free: 124.3 MB / 446.1 MB Notification: Performance of pre-optimization done (n=425): time 5.751e-06/0.9921, allocations: 0 / 0.564 GB, free: 124.3 MB / 446.1 MB Notification: Performance of matching and sorting (n=431): time 0.04502/1.037, allocations: 21.95 MB / 0.5854 GB, free: 115.3 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.238e-05/1.037, allocations: 96.33 kB / 0.5855 GB, free: 115.2 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006461/1.044, allocations: 5.393 MB / 0.5908 GB, free: 112.7 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007283/1.044, allocations: 100.2 kB / 0.5909 GB, free: 112.6 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001991/1.046, allocations: 4.463 MB / 0.5953 GB, free: 108.7 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001321/1.048, allocations: 1.442 MB / 0.5967 GB, free: 107.5 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00122/1.049, allocations: 0.8781 MB / 0.5975 GB, free: 106.7 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.482e-05/1.049, allocations: 312.9 kB / 0.5978 GB, free: 106.4 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00296/1.052, allocations: 2.426 MB / 0.6002 GB, free: 104 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003307/1.055, allocations: 3.689 MB / 0.6038 GB, free: 99.77 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006652/1.062, allocations: 6.342 MB / 0.61 GB, free: 92.91 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.728e-05/1.062, allocations: 8 kB / 0.61 GB, free: 92.91 MB / 446.1 MB Notification: Performance of matching and sorting (n=634) (initialization): time 0.01162/1.074, allocations: 8.235 MB / 0.618 GB, free: 84.55 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.135e-05/1.074, allocations: 20.62 kB / 0.6181 GB, free: 84.53 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.734e-05/1.074, allocations: 40 kB / 0.6181 GB, free: 84.49 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003227/1.077, allocations: 1.548 MB / 0.6196 GB, free: 82.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004208/1.081, allocations: 1.02 MB / 0.6206 GB, free: 81.88 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0186/1.1, allocations: 29.29 MB / 0.6492 GB, free: 50.66 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004424/1.104, allocations: 219.8 kB / 0.6494 GB, free: 50.45 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007473/1.105, allocations: 204 kB / 0.6496 GB, free: 50.25 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 166 * Number of states: 0 () * Number of discrete variables: 16 (idealCloser3.control[3],idealCloser3.control[2],idealCloser3.control[1],idealCloserM.control[5],idealCloserM.control[4],idealCloserM.control[3],idealCloserM.control[2],idealCloserM.control[1],rheostat3.booleanStep[3].y,rheostat3.booleanStep[2].y,rheostat3.booleanStep[1].y,rheostatM.booleanStep[5].y,rheostatM.booleanStep[4].y,rheostatM.booleanStep[3].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[1].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (546): * Single equations (assignments): 530 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 14 * 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): 14 systems {(1,1,100.0%), (1,5,100.0%), (1,5,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (1,1,100.0%), (4,22,68.8%), (2,6,100.0%), (2,6,100.0%), (1,5,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0053/1.11, allocations: 3.309 MB / 0.6528 GB, free: 46.92 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00118/1.112, allocations: 0.5751 MB / 0.6534 GB, free: 46.34 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0107/1.122, allocations: 7.974 MB / 0.6612 GB, free: 38.22 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.302e-05/1.122, allocations: 43.98 kB / 0.6612 GB, free: 38.18 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.507e-05/1.122, allocations: 28 kB / 0.6613 GB, free: 38.15 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.409e-05/1.122, allocations: 19.92 kB / 0.6613 GB, free: 38.13 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02486/1.147, allocations: 16.72 MB / 0.6776 GB, free: 21.24 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.825e-05/1.147, allocations: 4 kB / 0.6776 GB, free: 21.24 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002108/1.15, allocations: 463.7 kB / 0.6781 GB, free: 20.79 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005432/1.155, allocations: 2.358 MB / 0.6804 GB, free: 18.39 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006534/1.156, allocations: 95.97 kB / 0.6804 GB, free: 18.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2215/1.377, allocations: 38.09 MB / 0.7176 GB, free: 117.8 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.353e-06/1.377, allocations: 10.72 kB / 0.7177 GB, free: 117.8 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01733/1.395, allocations: 11.37 MB / 0.7288 GB, free: 113 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002941/1.398, allocations: 1.198 MB / 0.7299 GB, free: 112.6 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008905/1.398, allocations: 87.12 kB / 0.73 GB, free: 112.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002504/1.401, allocations: 219.7 kB / 0.7302 GB, free: 112.4 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001055/1.402, allocations: 428.3 kB / 0.7306 GB, free: 112.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002452/1.402, allocations: 116.7 kB / 0.7307 GB, free: 112.3 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004825/1.407, allocations: 3.69 MB / 0.7343 GB, free: 111 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.61e-07/1.407, allocations: 0 / 0.7343 GB, free: 111 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.007344/1.414, allocations: 1.869 MB / 0.7362 GB, free: 110.9 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 14 (aimsM.inertiaRotor.w,aimsM.stator.core.Phi.re,aimsM.stator.core.Phi.im,aimsM.rotor.zeroInductor.i0,aimsM.rotor.core.Phi.re,aimsM.rotor.core.Phi.im,aims3.inertiaRotor.w,aims3.stator.core.Phi.re,aims3.stator.core.Phi.im,aims3.rotor.zeroInductor.i0,aims3.rotor.core.Phi.re,aims3.rotor.core.Phi.im,quadraticLoadTorqueM.phi,quadraticLoadTorque3.phi) * Number of discrete variables: 16 (rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatM.booleanStep[4].y,rheostatM.booleanStep[5].y,rheostat3.booleanStep[1].y,rheostat3.booleanStep[2].y,rheostat3.booleanStep[3].y,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 (245): * Single equations (assignments): 232 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 13 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 13 systems {(1,5,100.0%), (6,46,72.2%), (1,1,100.0%), (1,1,100.0%), (1,5,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (11,56,49.6%), (1,8,100.0%), (1,8,100.0%), (2,12,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.0007785/1.415, allocations: 253 kB / 0.7364 GB, free: 110.7 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.02235/1.438, allocations: 12.27 MB / 0.7484 GB, free: 106.6 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.345e-06/1.438, allocations: 2.688 kB / 0.7484 GB, free: 106.6 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007054/1.445, allocations: 5.726 MB / 0.754 GB, free: 101.4 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007238/1.452, allocations: 1.698 MB / 0.7557 GB, free: 100.1 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03162/1.484, allocations: 22.97 MB / 0.7781 GB, free: 78.85 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006338/1.49, allocations: 6.367 MB / 0.7843 GB, free: 73.34 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004457/1.495, allocations: 1.299 MB / 0.7856 GB, free: 72.03 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009254/1.495, allocations: 343.4 kB / 0.7859 GB, free: 71.7 MB / 446.1 MB Notification: Performance of SimCode: time 6.51e-07/1.495, allocations: 4 kB / 0.7859 GB, free: 71.69 MB / 446.1 MB Notification: Performance of Templates: time 0.3314/1.827, allocations: 99.03 MB / 0.8826 GB, free: 131.4 MB / 462.1 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.sim & ./Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.pipe 2>&1)