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.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,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008879/0.0008879, allocations: 88.8 kB / 16.65 MB, free: 6.535 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.0009209/0.0009209, allocations: 173 kB / 17.56 MB, free: 6.184 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.314/1.314, allocations: 205.4 MB / 223.7 MB, free: 13.06 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.0004972/0.0004972, allocations: 16 kB / 280.7 MB, free: 3.406 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08502/0.08553, allocations: 47.58 MB / 328.3 MB, free: 3.75 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start): time 0.02114/0.1067, allocations: 22.34 MB / 350.7 MB, free: 13.31 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01424/0.121, allocations: 6.794 MB / 357.5 MB, free: 6.496 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004167/0.1252, allocations: 131.4 kB / 357.6 MB, free: 6.367 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00471/0.1299, allocations: 1.375 MB / 359 MB, free: 4.984 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007955/0.1379, allocations: 2.165 MB / 361.1 MB, free: 2.809 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004058/0.142, allocations: 1.303 MB / 362.4 MB, free: 1.504 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0119/0.1539, allocations: 9.911 MB / 372.3 MB, free: 7.551 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008876/0.1628, allocations: 5.732 MB / 378.1 MB, free: 1.73 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.163/0.3259, allocations: 2.902 MB / 381 MB, free: 16.19 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006918/0.3329, allocations: 3.918 MB / 384.9 MB, free: 16.01 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003348/0.3362, allocations: 464.5 kB / 385.3 MB, free: 16.01 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004969/0.3412, allocations: 0.7429 MB / 386.1 MB, free: 16.01 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00373/0.345, allocations: 1.947 MB / 388 MB, free: 15.72 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006755/0.3518, allocations: 3.851 MB / 391.9 MB, free: 14.55 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01194/0.3637, allocations: 13.5 MB / 405.4 MB, free: 8.848 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.3638, allocations: 3.938 kB / 405.4 MB, free: 8.844 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.685e-06/0.3638, allocations: 0 / 405.4 MB, free: 8.844 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003935/0.3642, allocations: 0 / 405.4 MB, free: 8.844 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1778 * Number of variables: 1778 Notification: Performance of Generate backend data structure: time 0.01866/0.3829, allocations: 7.466 MB / 412.9 MB, free: 4.766 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.066e-05/0.3829, allocations: 12.94 kB / 412.9 MB, free: 4.766 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006961/0.3899, allocations: 1.314 MB / 414.2 MB, free: 4.191 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009121/0.399, allocations: 5.026 MB / 419.2 MB, free: 2.27 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004191/0.3995, allocations: 0.495 MB / 419.7 MB, free: 2.043 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001774/0.4013, allocations: 0.6589 MB / 420.4 MB, free: 1.82 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02096/0.4222, allocations: 9.462 MB / 429.8 MB, free: 9.453 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001643/0.4224, allocations: 19.27 kB / 429.8 MB, free: 9.438 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008078/0.4233, allocations: 278.7 kB / 430.1 MB, free: 9.168 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003034/0.4236, allocations: 289.4 kB / 430.4 MB, free: 8.883 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01811/0.4417, allocations: 8.098 MB / 438.5 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05435/0.4961, allocations: 29.56 MB / 468.1 MB, free: 3.176 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01216/0.5083, allocations: 11.98 MB / 480 MB, free: 6.078 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005796/0.5141, allocations: 3.408 MB / 483.4 MB, free: 2.66 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01455/0.5287, allocations: 8.008 MB / 491.5 MB, free: 10.66 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.56e-05/0.5288, allocations: 64.97 kB / 491.5 MB, free: 10.58 MB / 398.1 MB Notification: Performance of pre-optimization done (n=305): time 4.94e-06/0.5288, allocations: 0 / 491.5 MB, free: 10.58 MB / 398.1 MB Notification: Performance of matching and sorting (n=324): time 0.03032/0.5591, allocations: 16 MB / 0.4956 GB, free: 10.14 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.027e-05/0.5592, allocations: 85.95 kB / 0.4957 GB, free: 10.04 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005869/0.5651, allocations: 3.996 MB / 0.4996 GB, free: 6.023 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004054/0.5655, allocations: 81.7 kB / 0.4997 GB, free: 5.938 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002229/0.5678, allocations: 3.089 MB / 0.5027 GB, free: 2.832 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000969/0.5687, allocations: 1.1 MB / 0.5038 GB, free: 1.746 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004344/0.5692, allocations: 313.8 kB / 0.5041 GB, free: 1.434 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.474e-05/0.5693, allocations: 305.1 kB / 0.5044 GB, free: 1.133 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00295/0.5722, allocations: 1.87 MB / 0.5062 GB, free: 15.26 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003547/0.5758, allocations: 2.852 MB / 0.509 GB, free: 12.03 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006891/0.5827, allocations: 4.924 MB / 0.5138 GB, free: 6.801 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.63e-05/0.5828, allocations: 8 kB / 0.5138 GB, free: 6.793 MB / 430.1 MB Notification: Performance of matching and sorting (n=487) (initialization): time 0.01122/0.594, allocations: 6.424 MB / 0.5201 GB, free: 464 kB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.396e-05/0.5941, allocations: 20 kB / 0.5201 GB, free: 444 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.338e-05/0.5942, allocations: 28 kB / 0.5201 GB, free: 416 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002905/0.5971, allocations: 1.27 MB / 0.5213 GB, free: 15.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003337/0.6004, allocations: 0.8188 MB / 0.5221 GB, free: 14.33 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1847/0.7851, allocations: 20.76 MB / 0.5424 GB, free: 147.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00399/0.7892, allocations: 200.8 kB / 0.5426 GB, free: 147.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007162/0.7899, allocations: 155.6 kB / 0.5428 GB, free: 147.1 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 130 * Number of states: 0 () * Number of discrete variables: 9 (rheostatE.booleanStep[3].y,rheostatE.booleanStep[2].y,rheostatE.booleanStep[1].y,rheostatM.booleanStep[3].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[1].y,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 (424): * Single equations (assignments): 410 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 11 * 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): 11 systems {(1,8,100.0%), (2,14,100.0%), (1,1,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (1,1,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.004658/0.7946, allocations: 2.178 MB / 0.5449 GB, free: 146.9 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001035/0.7956, allocations: 450.2 kB / 0.5453 GB, free: 146.9 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01021/0.8059, allocations: 6.071 MB / 0.5512 GB, free: 144.6 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.634e-05/0.8059, allocations: 28.69 kB / 0.5513 GB, free: 144.6 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.101e-05/0.806, allocations: 15.83 kB / 0.5513 GB, free: 144.6 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.389e-05/0.8061, allocations: 15.09 kB / 0.5513 GB, free: 144.6 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02044/0.8265, allocations: 12.37 MB / 0.5634 GB, free: 139.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.3e-05/0.8266, allocations: 0 / 0.5634 GB, free: 139.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001822/0.8284, allocations: 458.9 kB / 0.5638 GB, free: 139.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003326/0.8317, allocations: 1.618 MB / 0.5654 GB, free: 138.7 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002666/0.832, allocations: 74.27 kB / 0.5655 GB, free: 138.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02102/0.853, allocations: 30.22 MB / 0.595 GB, free: 112 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.088e-06/0.8531, allocations: 4 kB / 0.595 GB, free: 112 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01239/0.8655, allocations: 8.679 MB / 0.6035 GB, free: 103.6 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002393/0.8679, allocations: 0.9134 MB / 0.6044 GB, free: 102.9 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001086/0.869, allocations: 71.98 kB / 0.6044 GB, free: 102.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002764/0.8718, allocations: 187.8 kB / 0.6046 GB, free: 102.6 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008307/0.8726, allocations: 273.9 kB / 0.6049 GB, free: 102.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002342/0.8729, allocations: 91.98 kB / 0.6049 GB, free: 102.3 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004476/0.8774, allocations: 2.717 MB / 0.6076 GB, free: 99.54 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.8774, allocations: 4 kB / 0.6076 GB, free: 99.54 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005448/0.8828, allocations: 1.331 MB / 0.6089 GB, free: 98.21 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 16 (aimsM.inertiaRotor.w,aimsM.stator.zeroInductor.i0,aimsM.stator.core.Phi.re,aimsM.stator.core.Phi.im,aimsM.rotor.zeroInductor.i0,aimsM.rotor.core.Phi.re,aimsM.rotor.core.Phi.im,aimsE.inertiaRotor.w,aimsE.i_0_s,aimsE.idq_sr[1],aimsE.idq_sr[2],aimsE.idq_rr[1],aimsE.idq_rr[2],aimsE.i_0_r,quadraticLoadTorqueM.phi,quadraticLoadTorqueE.phi) * Number of discrete variables: 9 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatE.booleanStep[1].y,rheostatE.booleanStep[2].y,rheostatE.booleanStep[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (231): * Single equations (assignments): 214 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 16 * 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): 16 systems {(2,14,100.0%), (1,1,100.0%), (1,8,100.0%), (2,1,100.0%), (1,1,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (1,5,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (2,1,100.0%), (1,8,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.000781/0.8836, allocations: 274.8 kB / 0.6092 GB, free: 97.93 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008252/0.8919, allocations: 6.347 MB / 0.6154 GB, free: 91.4 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.139e-05/0.892, allocations: 0.5 kB / 0.6154 GB, free: 91.4 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005843/0.8978, allocations: 4.793 MB / 0.62 GB, free: 86.43 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008439/0.9063, allocations: 1.272 MB / 0.6213 GB, free: 85.16 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02407/0.9304, allocations: 16.52 MB / 0.6374 GB, free: 68.57 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004067/0.9345, allocations: 4.487 MB / 0.6418 GB, free: 64.05 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003618/0.9382, allocations: 1.058 MB / 0.6428 GB, free: 62.98 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000764/0.939, allocations: 267.4 kB / 0.6431 GB, free: 62.72 MB / 446.1 MB Notification: Performance of SimCode: time 1.042e-06/0.939, allocations: 0 / 0.6431 GB, free: 62.72 MB / 446.1 MB Notification: Performance of Templates: time 0.2936/1.233, allocations: 70.19 MB / 0.7116 GB, free: 135 MB / 446.1 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.sim & ./Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe 2>&1)