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.001174/0.001174, allocations: 113.9 kB / 17.07 MB, free: 5.988 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.001228/0.001228, allocations: 198.8 kB / 18.01 MB, free: 5.066 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.321/1.321, allocations: 205.1 MB / 223.9 MB, free: 12.24 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.001105/0.001105, allocations: 51.92 kB / 327.9 MB, free: 3.27 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1098/0.1109, allocations: 46.61 MB / 374.5 MB, free: 4.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase): time 0.2029/0.3139, allocations: 27.9 MB / 402.4 MB, free: 11.33 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01974/0.3336, allocations: 7.729 MB / 410.1 MB, free: 5.613 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006295/0.34, allocations: 170.9 kB / 410.3 MB, free: 5.566 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006518/0.3465, allocations: 1.908 MB / 412.2 MB, free: 4.516 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01121/0.3578, allocations: 2.637 MB / 414.8 MB, free: 2.516 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005843/0.3636, allocations: 1.715 MB / 416.6 MB, free: 1.082 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01804/0.3817, allocations: 12.57 MB / 429.1 MB, free: 8.949 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01563/0.3974, allocations: 10.97 MB / 440.1 MB, free: 13.88 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00975/0.4072, allocations: 5.885 MB / 446 MB, free: 7.98 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0115/0.4187, allocations: 6.73 MB / 452.7 MB, free: 1.227 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00421/0.423, allocations: 1.672 MB / 454.4 MB, free: 15.55 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006127/0.4291, allocations: 1.867 MB / 456.3 MB, free: 13.69 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004396/0.4335, allocations: 3.803 MB / 460.1 MB, free: 9.875 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01074/0.4443, allocations: 6.905 MB / 467 MB, free: 2.941 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02567/0.47, allocations: 21.74 MB / 488.7 MB, free: 13.13 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.807e-06/0.47, allocations: 0 / 488.7 MB, free: 13.13 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.385e-06/0.4701, allocations: 4 kB / 488.7 MB, free: 13.13 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0006923/0.4708, allocations: 0 / 488.7 MB, free: 13.13 MB / 414.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.03999/0.5107, allocations: 13.48 MB / 0.4904 GB, free: 15.51 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.781e-05/0.5108, allocations: 11.89 kB / 0.4904 GB, free: 15.5 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01393/0.5248, allocations: 2.367 MB / 0.4927 GB, free: 13.12 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01849/0.5433, allocations: 7.593 MB / 0.5002 GB, free: 5.445 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00087/0.5442, allocations: 0.7468 MB / 0.5009 GB, free: 4.695 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003715/0.5479, allocations: 0.9807 MB / 0.5018 GB, free: 3.715 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03334/0.5813, allocations: 14.43 MB / 0.5159 GB, free: 5.145 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003639/0.5817, allocations: 11.89 kB / 0.5159 GB, free: 5.133 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002497/0.5842, allocations: 420 kB / 0.5163 GB, free: 4.723 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000424/0.5846, allocations: 456.4 kB / 0.5168 GB, free: 4.273 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02757/0.6122, allocations: 12.53 MB / 0.529 GB, free: 7.727 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4592/1.071, allocations: 43.59 MB / 0.5716 GB, free: 117.3 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0222/1.094, allocations: 25.09 MB / 0.5961 GB, free: 96.31 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008719/1.102, allocations: 4.888 MB / 0.6009 GB, free: 94.47 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0215/1.124, allocations: 12.15 MB / 0.6127 GB, free: 88.71 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.911e-05/1.124, allocations: 84.53 kB / 0.6128 GB, free: 88.63 MB / 478.1 MB Notification: Performance of pre-optimization done (n=425): time 6.782e-06/1.124, allocations: 0 / 0.6128 GB, free: 88.63 MB / 478.1 MB Notification: Performance of matching and sorting (n=431): time 0.04543/1.17, allocations: 22.1 MB / 0.6344 GB, free: 74.5 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.196e-05/1.17, allocations: 94.8 kB / 0.6345 GB, free: 74.39 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008731/1.178, allocations: 5.404 MB / 0.6398 GB, free: 69.04 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000384/1.179, allocations: 97.7 kB / 0.6399 GB, free: 68.93 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002432/1.181, allocations: 4.579 MB / 0.6443 GB, free: 64.95 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009972/1.182, allocations: 1.511 MB / 0.6458 GB, free: 63.54 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001497/1.184, allocations: 0.8855 MB / 0.6467 GB, free: 62.64 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 3.801e-05/1.184, allocations: 309.1 kB / 0.647 GB, free: 62.34 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003341/1.187, allocations: 2.43 MB / 0.6493 GB, free: 59.9 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003731/1.191, allocations: 3.686 MB / 0.6529 GB, free: 55.69 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007339/1.198, allocations: 6.346 MB / 0.6591 GB, free: 48.82 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.476e-05/1.198, allocations: 12 kB / 0.6591 GB, free: 48.81 MB / 478.1 MB Notification: Performance of matching and sorting (n=634) (initialization): time 0.01166/1.21, allocations: 8.254 MB / 0.6672 GB, free: 40.43 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.659e-05/1.21, allocations: 20 kB / 0.6672 GB, free: 40.41 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.682e-05/1.21, allocations: 39.94 kB / 0.6673 GB, free: 40.38 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003463/1.213, allocations: 1.54 MB / 0.6688 GB, free: 38.79 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003806/1.217, allocations: 1.022 MB / 0.6698 GB, free: 37.76 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0256/1.243, allocations: 29.31 MB / 0.6984 GB, free: 6.531 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005637/1.249, allocations: 223.9 kB / 0.6986 GB, free: 6.312 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009262/1.25, allocations: 196 kB / 0.6988 GB, free: 6.121 MB / 478.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.008087/1.258, allocations: 3.309 MB / 0.702 GB, free: 2.797 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002168/1.26, allocations: 0.5978 MB / 0.7026 GB, free: 2.195 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01978/1.28, allocations: 7.967 MB / 0.7104 GB, free: 10.08 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.228e-05/1.28, allocations: 44 kB / 0.7104 GB, free: 10.04 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.135e-05/1.28, allocations: 28 kB / 0.7104 GB, free: 10.01 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.488e-05/1.28, allocations: 27.91 kB / 0.7105 GB, free: 9.984 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03558/1.315, allocations: 16.73 MB / 0.7268 GB, free: 9.074 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.731e-05/1.316, allocations: 0 / 0.7268 GB, free: 9.074 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002171/1.318, allocations: 455.6 kB / 0.7272 GB, free: 8.629 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006009/1.324, allocations: 2.356 MB / 0.7295 GB, free: 6.238 MB / 0.4982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003875/1.324, allocations: 95.97 kB / 0.7296 GB, free: 6.145 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2552/1.579, allocations: 38.08 MB / 0.7668 GB, free: 159.3 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.378e-06/1.579, allocations: 6 kB / 0.7668 GB, free: 159.3 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01821/1.598, allocations: 11.4 MB / 0.778 GB, free: 154.5 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002864/1.6, allocations: 1.219 MB / 0.7792 GB, free: 154.1 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007657/1.601, allocations: 88.61 kB / 0.7792 GB, free: 154 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002493/1.604, allocations: 224.8 kB / 0.7794 GB, free: 154 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001284/1.605, allocations: 429.8 kB / 0.7799 GB, free: 153.9 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003137/1.605, allocations: 115.1 kB / 0.78 GB, free: 153.9 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.005882/1.611, allocations: 3.688 MB / 0.7836 GB, free: 152.6 MB / 0.5138 GB Notification: Performance of sort global known variables: time 3.51e-07/1.611, allocations: 0 / 0.7836 GB, free: 152.6 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.007169/1.618, allocations: 1.876 MB / 0.7854 GB, free: 152.4 MB / 0.5138 GB 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.0006658/1.619, allocations: 253.1 kB / 0.7856 GB, free: 152.2 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.01005/1.629, allocations: 8.042 MB / 0.7935 GB, free: 148.2 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 7.824e-06/1.629, allocations: 2.938 kB / 0.7935 GB, free: 148.2 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.007236/1.636, allocations: 5.74 MB / 0.7991 GB, free: 145 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008388/1.645, allocations: 1.705 MB / 0.8008 GB, free: 144.4 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03333/1.678, allocations: 18.78 MB / 0.8191 GB, free: 129.6 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008405/1.687, allocations: 6.371 MB / 0.8253 GB, free: 124 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.004853/1.692, allocations: 1.299 MB / 0.8266 GB, free: 122.7 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001407/1.693, allocations: 351.4 kB / 0.8269 GB, free: 122.3 MB / 0.5138 GB Notification: Performance of SimCode: time 7.01e-07/1.693, allocations: 1.422 kB / 0.8269 GB, free: 122.3 MB / 0.5138 GB Notification: Performance of Templates: time 0.1496/1.843, allocations: 94.51 MB / 0.9192 GB, free: 27.79 MB / 0.5138 GB 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)