Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.00622/0.00622, allocations: 104.7 kB / 15.74 MB, free: 6.492 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.001266/0.001266, allocations: 191.7 kB / 16.68 MB, free: 6.375 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.425/1.425, allocations: 205.1 MB / 222.5 MB, free: 4.512 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.001188/0.001189, allocations: 55.12 kB / 326.6 MB, free: 14.35 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08611/0.0873, allocations: 46.61 MB / 373.2 MB, free: 1.297 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start): time 0.0258/0.1131, allocations: 23.57 MB / 396.8 MB, free: 9.617 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01331/0.1265, allocations: 6.91 MB / 403.7 MB, free: 2.688 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003949/0.1305, allocations: 139.4 kB / 403.8 MB, free: 2.551 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004896/0.1354, allocations: 1.685 MB / 405.5 MB, free: 0.8555 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007679/0.1431, allocations: 2.462 MB / 408 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004108/0.1473, allocations: 1.444 MB / 409.4 MB, free: 12.93 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01111/0.1584, allocations: 8.921 MB / 418.3 MB, free: 3.98 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01107/0.1695, allocations: 7.003 MB / 425.3 MB, free: 12.88 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007661/0.1772, allocations: 4.077 MB / 429.4 MB, free: 8.789 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01263/0.1899, allocations: 4.713 MB / 434.1 MB, free: 4.059 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004923/0.1949, allocations: 1.105 MB / 435.2 MB, free: 2.953 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006305/0.2012, allocations: 1.382 MB / 436.6 MB, free: 1.57 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0061/0.2073, allocations: 2.727 MB / 439.3 MB, free: 14.84 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01237/0.2198, allocations: 4.68 MB / 444 MB, free: 10.14 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2332/0.4531, allocations: 14.44 MB / 458.4 MB, free: 29.1 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.384e-06/0.4531, allocations: 0 / 458.4 MB, free: 29.1 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.4531, allocations: 0 / 458.4 MB, free: 29.1 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0006371/0.4538, allocations: 2.125 kB / 458.4 MB, free: 29.1 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.03075/0.4845, allocations: 8.9 MB / 467.4 MB, free: 26.2 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.76e-05/0.4846, allocations: 10.19 kB / 467.4 MB, free: 26.2 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007837/0.4924, allocations: 1.302 MB / 468.7 MB, free: 25.79 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01376/0.5062, allocations: 5.084 MB / 473.7 MB, free: 24.81 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000608/0.5069, allocations: 0.4975 MB / 474.2 MB, free: 24.79 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003462/0.5104, allocations: 0.6631 MB / 474.9 MB, free: 24.79 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02384/0.5342, allocations: 9.449 MB / 484.4 MB, free: 21.63 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001978/0.5345, allocations: 21.27 kB / 484.4 MB, free: 21.62 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00111/0.5356, allocations: 280.7 kB / 484.7 MB, free: 21.41 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000196/0.5358, allocations: 294.3 kB / 484.9 MB, free: 21.37 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01325/0.549, allocations: 8.075 MB / 493 MB, free: 17.11 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04894/0.598, allocations: 29.02 MB / 0.5098 GB, free: 4.922 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01202/0.6101, allocations: 11.97 MB / 0.5215 GB, free: 7.82 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00598/0.6161, allocations: 3.37 MB / 0.5248 GB, free: 4.441 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0146/0.6307, allocations: 7.971 MB / 0.5326 GB, free: 12.48 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.793e-05/0.6309, allocations: 73.72 kB / 0.5326 GB, free: 12.4 MB / 430.1 MB Notification: Performance of pre-optimization done (n=305): time 5.38e-06/0.6309, allocations: 0 / 0.5326 GB, free: 12.4 MB / 430.1 MB Notification: Performance of matching and sorting (n=324): time 0.03404/0.6649, allocations: 15.84 MB / 0.5481 GB, free: 12.11 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.399e-05/0.665, allocations: 85.95 kB / 0.5482 GB, free: 12.01 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00737/0.6724, allocations: 4 MB / 0.5521 GB, free: 7.984 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00063/0.6731, allocations: 84.11 kB / 0.5522 GB, free: 7.898 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002428/0.6755, allocations: 3.091 MB / 0.5552 GB, free: 4.793 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00134/0.6769, allocations: 1.09 MB / 0.5563 GB, free: 3.711 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001196/0.6781, allocations: 0.6778 MB / 0.5569 GB, free: 3.027 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.304e-05/0.6782, allocations: 301.1 kB / 0.5572 GB, free: 2.73 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003/0.6812, allocations: 1.866 MB / 0.559 GB, free: 0.8633 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003721/0.6849, allocations: 2.845 MB / 0.5618 GB, free: 13.64 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00689/0.6918, allocations: 4.893 MB / 0.5666 GB, free: 8.438 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.441e-05/0.6919, allocations: 15.98 kB / 0.5666 GB, free: 8.422 MB / 462.1 MB Notification: Performance of matching and sorting (n=487) (initialization): time 0.01167/0.7036, allocations: 6.4 MB / 0.5729 GB, free: 2.105 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.173e-05/0.7036, allocations: 16 kB / 0.5729 GB, free: 2.09 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.198e-05/0.7037, allocations: 32 kB / 0.5729 GB, free: 2.059 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002934/0.7066, allocations: 1.272 MB / 0.5741 GB, free: 0.7578 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003563/0.7102, allocations: 0.8175 MB / 0.5749 GB, free: 15.98 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0214/0.7316, allocations: 22.53 MB / 0.5969 GB, free: 8.031 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004886/0.7366, allocations: 195.8 kB / 0.5971 GB, free: 7.84 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001146/0.7377, allocations: 156 kB / 0.5973 GB, free: 7.688 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.00738/0.7451, allocations: 2.188 MB / 0.5994 GB, free: 5.539 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002441/0.7476, allocations: 442.7 kB / 0.5998 GB, free: 5.102 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01288/0.7605, allocations: 6.057 MB / 0.6057 GB, free: 14.92 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.391e-05/0.7606, allocations: 32 kB / 0.6058 GB, free: 14.89 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.575e-05/0.7606, allocations: 19.28 kB / 0.6058 GB, free: 14.88 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.506e-05/0.7607, allocations: 19.78 kB / 0.6058 GB, free: 14.86 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02108/0.7817, allocations: 12.35 MB / 0.6179 GB, free: 2.371 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.319e-05/0.7818, allocations: 4 kB / 0.6179 GB, free: 2.367 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002014/0.7838, allocations: 453.1 kB / 0.6183 GB, free: 1.945 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003905/0.7877, allocations: 1.61 MB / 0.6199 GB, free: 300 kB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002589/0.788, allocations: 79.97 kB / 0.62 GB, free: 220 kB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2344/1.022, allocations: 32.87 MB / 0.6521 GB, free: 176.1 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.997e-06/1.022, allocations: 2.688 kB / 0.6521 GB, free: 176.1 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01301/1.035, allocations: 8.652 MB / 0.6605 GB, free: 172.4 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002049/1.038, allocations: 0.9136 MB / 0.6614 GB, free: 172 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006516/1.038, allocations: 65.44 kB / 0.6615 GB, free: 172 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001994/1.04, allocations: 184.7 kB / 0.6616 GB, free: 171.9 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006446/1.041, allocations: 275.3 kB / 0.6619 GB, free: 171.9 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001833/1.041, allocations: 86.86 kB / 0.662 GB, free: 171.9 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.003271/1.044, allocations: 2.721 MB / 0.6646 GB, free: 170.9 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.51e-07/1.044, allocations: 3.125 kB / 0.6646 GB, free: 170.9 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.003763/1.048, allocations: 1.327 MB / 0.6659 GB, free: 170.8 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.0005482/1.049, allocations: 276.5 kB / 0.6662 GB, free: 170.6 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.007635/1.056, allocations: 6.339 MB / 0.6724 GB, free: 167.3 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 7.485e-06/1.056, allocations: 5.969 kB / 0.6724 GB, free: 167.3 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.00556/1.062, allocations: 4.777 MB / 0.6771 GB, free: 164.3 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006297/1.068, allocations: 1.334 MB / 0.6784 GB, free: 163.9 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02085/1.089, allocations: 13.25 MB / 0.6913 GB, free: 152.9 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004726/1.094, allocations: 4.48 MB / 0.6957 GB, free: 148.4 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.003229/1.097, allocations: 1.05 MB / 0.6967 GB, free: 147.4 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007657/1.098, allocations: 279.4 kB / 0.697 GB, free: 147.1 MB / 0.5137 GB Notification: Performance of SimCode: time 7.21e-07/1.098, allocations: 4 kB / 0.697 GB, free: 147.1 MB / 0.5137 GB Notification: Performance of Templates: time 0.1001/1.198, allocations: 71.37 MB / 0.7667 GB, free: 75.7 MB / 0.5137 GB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.sim & ./Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe 2>&1)