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.00143/0.00143, allocations: 110.6 kB / 16.51 MB, free: 6.715 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.001676/0.001676, allocations: 186.5 kB / 17.42 MB, free: 6.07 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.433/1.433, allocations: 205.1 MB / 223.3 MB, free: 12.49 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.001876/0.001876, allocations: 43.94 kB / 279.3 MB, free: 3.574 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1211/0.123, allocations: 46.63 MB / 326 MB, free: 4.879 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase): time 0.03493/0.1579, allocations: 27.46 MB / 353.4 MB, free: 9.293 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01764/0.1756, allocations: 7.634 MB / 361.1 MB, free: 1.633 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00625/0.1819, allocations: 159.2 kB / 361.2 MB, free: 1.477 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007115/0.1891, allocations: 1.636 MB / 362.9 MB, free: 15.83 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009599/0.1988, allocations: 2.405 MB / 365.3 MB, free: 13.41 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005389/0.2042, allocations: 1.56 MB / 366.8 MB, free: 11.85 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.1719/0.3761, allocations: 13.39 MB / 380.2 MB, free: 13.19 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01134/0.3875, allocations: 9.178 MB / 389.4 MB, free: 11.18 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007481/0.395, allocations: 4.682 MB / 394.1 MB, free: 10.62 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01002/0.4051, allocations: 6.196 MB / 400.3 MB, free: 9.492 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003299/0.4084, allocations: 0.9494 MB / 401.2 MB, free: 9.492 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004547/0.413, allocations: 1.148 MB / 402.4 MB, free: 9.492 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003787/0.4168, allocations: 3.032 MB / 405.4 MB, free: 9.078 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01116/0.4279, allocations: 6.099 MB / 411.5 MB, free: 5.562 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0228/0.4508, allocations: 20.89 MB / 432.4 MB, free: 3.758 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.973e-06/0.4508, allocations: 0 / 432.4 MB, free: 3.758 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.4509, allocations: 0 / 432.4 MB, free: 3.758 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0006016/0.4515, allocations: 0 / 432.4 MB, free: 3.758 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: 2681 * Number of variables: 2681 Notification: Performance of Generate backend data structure: time 0.03869/0.4902, allocations: 13.16 MB / 445.5 MB, free: 6.543 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.936e-05/0.4902, allocations: 8.031 kB / 445.6 MB, free: 6.535 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01576/0.506, allocations: 2.326 MB / 447.9 MB, free: 4.207 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01643/0.5225, allocations: 7.337 MB / 455.2 MB, free: 13.12 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008777/0.5234, allocations: 0.7452 MB / 456 MB, free: 12.38 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003878/0.5273, allocations: 0.9892 MB / 457 MB, free: 11.39 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0359/0.5632, allocations: 14.43 MB / 471.4 MB, free: 12.84 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002341/0.5635, allocations: 7.375 kB / 471.4 MB, free: 12.83 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00244/0.5659, allocations: 419.5 kB / 471.8 MB, free: 12.43 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004205/0.5664, allocations: 456.4 kB / 472.2 MB, free: 11.98 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03011/0.5965, allocations: 12.53 MB / 484.8 MB, free: 15.45 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08446/0.681, allocations: 44.08 MB / 0.5165 GB, free: 3.27 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2994/0.9804, allocations: 25.07 MB / 0.5409 GB, free: 135.4 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009045/0.9895, allocations: 4.933 MB / 0.5458 GB, free: 135.1 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02356/1.013, allocations: 12.19 MB / 0.5577 GB, free: 129.6 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.304e-05/1.013, allocations: 81.19 kB / 0.5577 GB, free: 129.5 MB / 446.1 MB Notification: Performance of pre-optimization done (n=425): time 6.923e-06/1.013, allocations: 1.375 kB / 0.5577 GB, free: 129.5 MB / 446.1 MB Notification: Performance of matching and sorting (n=431): time 0.04667/1.06, allocations: 21.95 MB / 0.5792 GB, free: 120.4 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.674e-05/1.06, allocations: 101 kB / 0.5793 GB, free: 120.4 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007565/1.068, allocations: 5.397 MB / 0.5845 GB, free: 118.2 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008192/1.068, allocations: 100.6 kB / 0.5846 GB, free: 118.1 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002239/1.071, allocations: 4.458 MB / 0.589 GB, free: 114.2 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001516/1.072, allocations: 1.441 MB / 0.5904 GB, free: 112.9 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001421/1.074, allocations: 0.888 MB / 0.5913 GB, free: 112.4 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.634e-05/1.074, allocations: 301.1 kB / 0.5916 GB, free: 112.1 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003415/1.077, allocations: 2.425 MB / 0.5939 GB, free: 109.9 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003753/1.081, allocations: 3.693 MB / 0.5975 GB, free: 105.7 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007529/1.089, allocations: 6.339 MB / 0.6037 GB, free: 98.86 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.95e-05/1.089, allocations: 8 kB / 0.6037 GB, free: 98.86 MB / 446.1 MB Notification: Performance of matching and sorting (n=634) (initialization): time 0.01276/1.101, allocations: 8.231 MB / 0.6118 GB, free: 90.5 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.605e-05/1.101, allocations: 24 kB / 0.6118 GB, free: 90.48 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.646e-05/1.101, allocations: 43.94 kB / 0.6118 GB, free: 90.43 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003163/1.105, allocations: 1.529 MB / 0.6133 GB, free: 88.87 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003911/1.109, allocations: 1.022 MB / 0.6143 GB, free: 87.85 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01889/1.127, allocations: 26.88 MB / 0.6406 GB, free: 59.12 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005028/1.133, allocations: 215.9 kB / 0.6408 GB, free: 58.91 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009436/1.134, allocations: 200 kB / 0.641 GB, free: 58.71 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.005646/1.139, allocations: 3.294 MB / 0.6442 GB, free: 55.41 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00145/1.141, allocations: 0.5789 MB / 0.6448 GB, free: 54.82 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01147/1.152, allocations: 7.975 MB / 0.6525 GB, free: 46.7 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.305e-05/1.152, allocations: 44 kB / 0.6526 GB, free: 46.65 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.143e-05/1.152, allocations: 31.94 kB / 0.6526 GB, free: 46.62 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.293e-05/1.152, allocations: 22.33 kB / 0.6526 GB, free: 46.6 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02399/1.176, allocations: 16.72 MB / 0.669 GB, free: 29.71 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.407e-05/1.176, allocations: 4 kB / 0.669 GB, free: 29.71 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001942/1.178, allocations: 467.7 kB / 0.6694 GB, free: 29.25 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004824/1.183, allocations: 2.347 MB / 0.6717 GB, free: 26.87 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004112/1.184, allocations: 95.97 kB / 0.6718 GB, free: 26.78 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2117/1.395, allocations: 34.85 MB / 0.7058 GB, free: 124.6 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.804e-06/1.395, allocations: 7.625 kB / 0.7058 GB, free: 124.6 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01863/1.414, allocations: 11.37 MB / 0.7169 GB, free: 120.7 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002651/1.417, allocations: 1.193 MB / 0.7181 GB, free: 120.3 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008908/1.418, allocations: 85.38 kB / 0.7182 GB, free: 120.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002385/1.42, allocations: 229.1 kB / 0.7184 GB, free: 120.1 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009748/1.421, allocations: 428.5 kB / 0.7188 GB, free: 120.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002499/1.421, allocations: 112.8 kB / 0.7189 GB, free: 120 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004718/1.426, allocations: 3.686 MB / 0.7225 GB, free: 118.7 MB / 446.1 MB Notification: Performance of sort global known variables: time 2e-07/1.426, allocations: 0 / 0.7225 GB, free: 118.7 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005727/1.432, allocations: 1.871 MB / 0.7244 GB, free: 118.6 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.0006446/1.432, allocations: 256.5 kB / 0.7246 GB, free: 118.4 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.009709/1.442, allocations: 8.008 MB / 0.7324 GB, free: 114.3 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.113e-06/1.442, allocations: 5.156 kB / 0.7324 GB, free: 114.3 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00705/1.449, allocations: 5.73 MB / 0.738 GB, free: 111.2 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007302/1.456, allocations: 1.601 MB / 0.7396 GB, free: 110.7 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03051/1.487, allocations: 22.97 MB / 0.762 GB, free: 93.03 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007162/1.494, allocations: 6.378 MB / 0.7682 GB, free: 88.2 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00502/1.499, allocations: 1.297 MB / 0.7695 GB, free: 87.14 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001216/1.5, allocations: 343.4 kB / 0.7698 GB, free: 86.81 MB / 446.1 MB Notification: Performance of SimCode: time 1.022e-06/1.5, allocations: 0 / 0.7698 GB, free: 86.81 MB / 446.1 MB Notification: Performance of Templates: time 0.1378/1.638, allocations: 95.62 MB / 0.8632 GB, free: 7.062 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)