Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_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.1_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.1_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.008238/0.008238, allocations: 99.03 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.001375/0.001375, allocations: 192.2 kB / 16.67 MB, free: 5.938 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.372/1.372, allocations: 205.1 MB / 222.6 MB, free: 4.504 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.0012/0.0012, allocations: 46.69 kB / 326.6 MB, free: 14.3 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08699/0.0882, allocations: 46.63 MB / 373.2 MB, free: 1.309 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start): time 0.02558/0.1138, allocations: 23.57 MB / 396.8 MB, free: 9.633 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01399/0.1279, allocations: 6.906 MB / 403.7 MB, free: 2.707 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00346/0.1314, allocations: 139.4 kB / 403.8 MB, free: 2.57 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004684/0.1361, allocations: 1.622 MB / 405.4 MB, free: 0.9375 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007376/0.1435, allocations: 2.365 MB / 407.8 MB, free: 14.56 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003331/0.1468, allocations: 1.435 MB / 409.2 MB, free: 13.12 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01055/0.1574, allocations: 8.925 MB / 418.2 MB, free: 4.164 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008448/0.1659, allocations: 7.007 MB / 425.2 MB, free: 13.06 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005666/0.1716, allocations: 4.046 MB / 429.2 MB, free: 9 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006856/0.1785, allocations: 4.717 MB / 433.9 MB, free: 4.266 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002241/0.1807, allocations: 1.102 MB / 435 MB, free: 3.164 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00386/0.1846, allocations: 1.375 MB / 436.4 MB, free: 1.789 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002964/0.1876, allocations: 2.739 MB / 439.1 MB, free: 15.04 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006779/0.1944, allocations: 4.672 MB / 443.8 MB, free: 10.35 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2078/0.4022, allocations: 14.49 MB / 458.3 MB, free: 29.14 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.286e-06/0.4022, allocations: 0 / 458.3 MB, free: 29.14 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.4022, allocations: 0 / 458.3 MB, free: 29.14 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004441/0.4027, allocations: 1.094 kB / 458.3 MB, free: 29.14 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: 1778 * Number of variables: 1778 Notification: Performance of Generate backend data structure: time 0.02958/0.4323, allocations: 9.106 MB / 467.4 MB, free: 25.98 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.599e-05/0.4323, allocations: 9.438 kB / 467.4 MB, free: 25.98 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007861/0.4402, allocations: 1.341 MB / 468.8 MB, free: 25.53 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01247/0.4527, allocations: 5.115 MB / 473.9 MB, free: 24.52 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005089/0.4533, allocations: 0.501 MB / 474.4 MB, free: 24.5 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002156/0.4554, allocations: 0.6664 MB / 475 MB, free: 24.49 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01646/0.4719, allocations: 9.444 MB / 484.5 MB, free: 21.34 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001593/0.4721, allocations: 18.69 kB / 484.5 MB, free: 21.33 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006987/0.4728, allocations: 283.8 kB / 484.8 MB, free: 21.12 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001917/0.473, allocations: 290.2 kB / 485.1 MB, free: 21.08 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01315/0.4862, allocations: 8.078 MB / 493.1 MB, free: 16.82 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0476/0.5338, allocations: 29.1 MB / 0.51 GB, free: 4.574 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01223/0.5461, allocations: 11.98 MB / 0.5217 GB, free: 7.477 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006061/0.5522, allocations: 3.372 MB / 0.525 GB, free: 4.094 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0159/0.5681, allocations: 7.968 MB / 0.5328 GB, free: 12.14 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.328e-05/0.5682, allocations: 72.95 kB / 0.5328 GB, free: 12.05 MB / 430.1 MB Notification: Performance of pre-optimization done (n=305): time 7.815e-06/0.5683, allocations: 0.8438 kB / 0.5328 GB, free: 12.05 MB / 430.1 MB Notification: Performance of matching and sorting (n=324): time 0.03283/0.6011, allocations: 15.96 MB / 0.5484 GB, free: 11.66 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.079e-05/0.6012, allocations: 89.95 kB / 0.5485 GB, free: 11.56 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005972/0.6072, allocations: 4 MB / 0.5524 GB, free: 7.539 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004026/0.6076, allocations: 77.7 kB / 0.5525 GB, free: 7.457 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002241/0.6098, allocations: 3.163 MB / 0.5556 GB, free: 4.285 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001051/0.6109, allocations: 1.15 MB / 0.5567 GB, free: 3.152 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001174/0.6121, allocations: 0.6809 MB / 0.5574 GB, free: 2.465 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.769e-05/0.6122, allocations: 301.1 kB / 0.5577 GB, free: 2.168 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002903/0.6151, allocations: 1.867 MB / 0.5595 GB, free: 308 kB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003527/0.6186, allocations: 2.847 MB / 0.5623 GB, free: 13.08 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006581/0.6252, allocations: 4.893 MB / 0.567 GB, free: 7.879 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-05/0.6253, allocations: 12 kB / 0.5671 GB, free: 7.867 MB / 462.1 MB Notification: Performance of matching and sorting (n=487) (initialization): time 0.01099/0.6363, allocations: 6.427 MB / 0.5733 GB, free: 1.523 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.446e-05/0.6364, allocations: 16 kB / 0.5733 GB, free: 1.508 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.378e-05/0.6364, allocations: 28 kB / 0.5734 GB, free: 1.48 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0032/0.6396, allocations: 1.278 MB / 0.5746 GB, free: 176 kB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003317/0.643, allocations: 0.8098 MB / 0.5754 GB, free: 15.41 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02079/0.6638, allocations: 22.55 MB / 0.5974 GB, free: 7.43 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003578/0.6674, allocations: 192 kB / 0.5976 GB, free: 7.242 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004003/0.6678, allocations: 160 kB / 0.5978 GB, free: 7.086 MB / 494.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.004019/0.6718, allocations: 2.184 MB / 0.5999 GB, free: 4.941 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001104/0.6729, allocations: 469 kB / 0.6004 GB, free: 4.48 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01004/0.683, allocations: 6.059 MB / 0.6063 GB, free: 14.3 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.371e-05/0.683, allocations: 32 kB / 0.6063 GB, free: 14.27 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.986e-05/0.6831, allocations: 16 kB / 0.6063 GB, free: 14.25 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.018e-05/0.6831, allocations: 15.94 kB / 0.6063 GB, free: 14.24 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02083/0.7039, allocations: 12.35 MB / 0.6184 GB, free: 1.754 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.501e-05/0.704, allocations: 7.844 kB / 0.6184 GB, free: 1.75 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001971/0.706, allocations: 451.5 kB / 0.6188 GB, free: 1.332 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004029/0.71, allocations: 1.618 MB / 0.6204 GB, free: 15.67 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000279/0.7103, allocations: 71.97 kB / 0.6205 GB, free: 15.6 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2302/0.9405, allocations: 32.89 MB / 0.6526 GB, free: 175.6 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.361e-06/0.9406, allocations: 7.219 kB / 0.6526 GB, free: 175.6 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01195/0.9525, allocations: 8.669 MB / 0.6611 GB, free: 171.8 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002748/0.9553, allocations: 0.9329 MB / 0.662 GB, free: 171.5 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000622/0.9559, allocations: 67.53 kB / 0.662 GB, free: 171.4 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001922/0.9579, allocations: 181 kB / 0.6622 GB, free: 171.4 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007168/0.9586, allocations: 275.8 kB / 0.6625 GB, free: 171.4 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000206/0.9588, allocations: 86.64 kB / 0.6626 GB, free: 171.3 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.003518/0.9623, allocations: 2.723 MB / 0.6652 GB, free: 170.3 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9623, allocations: 0 / 0.6652 GB, free: 170.3 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.004229/0.9666, allocations: 1.331 MB / 0.6665 GB, free: 170.2 MB / 0.5137 GB 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.0006043/0.9672, allocations: 273.6 kB / 0.6668 GB, free: 170.1 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.007666/0.9749, allocations: 6.346 MB / 0.673 GB, free: 166.8 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 6.833e-06/0.9749, allocations: 3.844 kB / 0.673 GB, free: 166.8 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.005461/0.9804, allocations: 4.798 MB / 0.6777 GB, free: 163.8 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005603/0.986, allocations: 1.336 MB / 0.679 GB, free: 163.4 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01802/1.004, allocations: 13.45 MB / 0.6921 GB, free: 152 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003686/1.008, allocations: 4.484 MB / 0.6965 GB, free: 147.4 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.00305/1.011, allocations: 1.046 MB / 0.6975 GB, free: 146.4 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007194/1.012, allocations: 279.4 kB / 0.6978 GB, free: 146.1 MB / 0.5137 GB Notification: Performance of SimCode: time 1.192e-06/1.012, allocations: 0 / 0.6978 GB, free: 146.1 MB / 0.5137 GB Notification: Performance of Templates: time 0.09472/1.106, allocations: 71.38 MB / 0.7675 GB, free: 74.71 MB / 0.5137 GB make -j1 -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.makefile (rm -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.sim & ./Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe 2>&1)