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.00133/0.00133, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00135/0.00135, allocations: 193.9 kB / 16.53 MB, free: 6.391 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.325/1.325, allocations: 205.1 MB / 222.4 MB, free: 4.551 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.001159/0.001159, allocations: 51.92 kB / 278.7 MB, free: 12.38 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2082/0.2093, allocations: 46.63 MB / 325.3 MB, free: 1.871 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start): time 0.02272/0.2321, allocations: 23.56 MB / 348.9 MB, free: 12.3 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01237/0.2445, allocations: 6.921 MB / 355.8 MB, free: 5.355 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003709/0.2483, allocations: 139.4 kB / 355.9 MB, free: 5.219 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004433/0.2527, allocations: 1.614 MB / 357.6 MB, free: 3.594 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006283/0.259, allocations: 2.369 MB / 359.9 MB, free: 1.211 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002816/0.2618, allocations: 1.442 MB / 361.4 MB, free: 15.77 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.008485/0.2703, allocations: 8.882 MB / 370.2 MB, free: 6.844 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007295/0.2777, allocations: 7 MB / 377.2 MB, free: 15.75 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006174/0.2838, allocations: 4.035 MB / 381.3 MB, free: 11.71 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006952/0.2908, allocations: 4.729 MB / 386 MB, free: 6.961 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002937/0.2938, allocations: 1.102 MB / 387.1 MB, free: 5.859 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004029/0.2978, allocations: 1.382 MB / 388.5 MB, free: 4.477 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002987/0.3008, allocations: 2.723 MB / 391.2 MB, free: 1.746 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006349/0.3072, allocations: 4.676 MB / 395.9 MB, free: 13.05 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01463/0.3218, allocations: 14.34 MB / 410.2 MB, free: 14.66 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.542e-06/0.3219, allocations: 0 / 410.2 MB, free: 14.66 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.414e-06/0.3219, allocations: 0 / 410.2 MB, free: 14.66 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0003867/0.3223, allocations: 0 / 410.2 MB, free: 14.66 MB / 350.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.02152/0.3438, allocations: 8.9 MB / 419.1 MB, free: 5.672 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.79e-05/0.3439, allocations: 8.031 kB / 419.1 MB, free: 5.664 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005487/0.3494, allocations: 1.315 MB / 420.5 MB, free: 4.34 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009418/0.3588, allocations: 5.028 MB / 425.5 MB, free: 15.24 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003646/0.3592, allocations: 0.4941 MB / 426 MB, free: 14.74 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00143/0.3606, allocations: 0.6717 MB / 426.7 MB, free: 14.07 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01495/0.3756, allocations: 9.449 MB / 436.1 MB, free: 4.504 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001305/0.3758, allocations: 15.84 kB / 436.1 MB, free: 4.488 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006149/0.3764, allocations: 272 kB / 436.4 MB, free: 4.223 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002482/0.3766, allocations: 305.4 kB / 436.7 MB, free: 3.922 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01296/0.3896, allocations: 8.071 MB / 444.8 MB, free: 11.84 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3191/0.7087, allocations: 29.4 MB / 474.2 MB, free: 89.47 MB / 382.2 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009665/0.7184, allocations: 11.97 MB / 486.1 MB, free: 78.91 MB / 382.2 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004908/0.7234, allocations: 3.384 MB / 489.5 MB, free: 77.25 MB / 382.2 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01217/0.7356, allocations: 7.988 MB / 497.5 MB, free: 72.18 MB / 382.2 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.321e-05/0.7357, allocations: 68.28 kB / 497.6 MB, free: 72.11 MB / 382.2 MB Notification: Performance of pre-optimization done (n=305): time 4.829e-06/0.7357, allocations: 0 / 497.6 MB, free: 72.11 MB / 382.2 MB Notification: Performance of matching and sorting (n=324): time 0.02623/0.7619, allocations: 15.84 MB / 0.5014 GB, free: 56.21 MB / 382.2 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.656e-05/0.762, allocations: 85.95 kB / 0.5015 GB, free: 56.11 MB / 382.2 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004753/0.7667, allocations: 4.004 MB / 0.5054 GB, free: 52.08 MB / 382.2 MB Notification: Performance of collectPreVariables (initialization): time 0.000389/0.7672, allocations: 81.7 kB / 0.5054 GB, free: 52 MB / 382.2 MB Notification: Performance of collectInitialEqns (initialization): time 0.00129/0.7685, allocations: 3.09 MB / 0.5085 GB, free: 48.89 MB / 382.2 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006701/0.7691, allocations: 1.088 MB / 0.5095 GB, free: 47.81 MB / 382.2 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008621/0.77, allocations: 0.6767 MB / 0.5102 GB, free: 47.13 MB / 382.2 MB Notification: Performance of setup shared object (initialization): time 3.79e-05/0.77, allocations: 301.1 kB / 0.5105 GB, free: 46.83 MB / 382.2 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002333/0.7724, allocations: 1.866 MB / 0.5123 GB, free: 44.96 MB / 382.2 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002668/0.7751, allocations: 2.839 MB / 0.5151 GB, free: 41.73 MB / 382.2 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005114/0.7802, allocations: 4.9 MB / 0.5198 GB, free: 36.41 MB / 382.2 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.857e-05/0.7802, allocations: 12 kB / 0.5199 GB, free: 36.4 MB / 382.2 MB Notification: Performance of matching and sorting (n=487) (initialization): time 0.008913/0.7892, allocations: 6.406 MB / 0.5261 GB, free: 29.87 MB / 382.2 MB Notification: Performance of prepare postOptimizeDAE: time 3.605e-05/0.7892, allocations: 20 kB / 0.5261 GB, free: 29.85 MB / 382.2 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.54e-05/0.7893, allocations: 28 kB / 0.5262 GB, free: 29.82 MB / 382.2 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002435/0.7917, allocations: 1.288 MB / 0.5274 GB, free: 28.5 MB / 382.2 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002679/0.7944, allocations: 0.8151 MB / 0.5282 GB, free: 27.68 MB / 382.2 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01333/0.8078, allocations: 22.54 MB / 0.5502 GB, free: 3.598 MB / 382.2 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003081/0.8109, allocations: 187.8 kB / 0.5504 GB, free: 3.414 MB / 382.2 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003575/0.8112, allocations: 152 kB / 0.5506 GB, free: 3.266 MB / 382.2 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.003001/0.8142, allocations: 2.187 MB / 0.5527 GB, free: 1.066 MB / 382.2 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008352/0.8151, allocations: 446.6 kB / 0.5531 GB, free: 0.625 MB / 382.2 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009528/0.8246, allocations: 6.05 MB / 0.559 GB, free: 10.39 MB / 398.2 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.431e-05/0.8247, allocations: 32 kB / 0.5591 GB, free: 10.36 MB / 398.2 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.538e-05/0.8247, allocations: 16 kB / 0.5591 GB, free: 10.35 MB / 398.2 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.83e-05/0.8247, allocations: 15.94 kB / 0.5591 GB, free: 10.33 MB / 398.2 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01981/0.8446, allocations: 12.37 MB / 0.5712 GB, free: 13.74 MB / 414.2 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-05/0.8446, allocations: 4 kB / 0.5712 GB, free: 13.73 MB / 414.2 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001952/0.8466, allocations: 451.8 kB / 0.5716 GB, free: 13.29 MB / 414.2 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003881/0.8505, allocations: 1.628 MB / 0.5732 GB, free: 11.61 MB / 414.2 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002939/0.8508, allocations: 71.97 kB / 0.5733 GB, free: 11.54 MB / 414.2 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02847/0.8792, allocations: 32.92 MB / 0.6054 GB, free: 8.426 MB / 446.2 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.458e-06/0.8793, allocations: 4 kB / 0.6054 GB, free: 8.422 MB / 446.2 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1714/1.051, allocations: 8.637 MB / 0.6138 GB, free: 148.3 MB / 446.2 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00283/1.054, allocations: 0.9105 MB / 0.6147 GB, free: 148.2 MB / 446.2 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001232/1.055, allocations: 66.09 kB / 0.6148 GB, free: 148.2 MB / 446.2 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002559/1.057, allocations: 182.4 kB / 0.615 GB, free: 148.2 MB / 446.2 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007066/1.058, allocations: 280 kB / 0.6152 GB, free: 148.2 MB / 446.2 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002175/1.058, allocations: 85.88 kB / 0.6153 GB, free: 148.2 MB / 446.2 MB Notification: Performance of sorting global known variables: time 0.005265/1.064, allocations: 2.721 MB / 0.618 GB, free: 148 MB / 446.2 MB Notification: Performance of sort global known variables: time 1.112e-06/1.064, allocations: 0 / 0.618 GB, free: 148 MB / 446.2 MB Notification: Performance of remove unused functions: time 0.00651/1.07, allocations: 1.336 MB / 0.6193 GB, free: 148 MB / 446.2 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.0009158/1.071, allocations: 260.5 kB / 0.6195 GB, free: 147.9 MB / 446.2 MB Notification: Performance of simCode: created initialization part: time 0.0161/1.087, allocations: 9.433 MB / 0.6287 GB, free: 145.8 MB / 446.2 MB Notification: Performance of simCode: created event and clocks part: time 8.766e-06/1.087, allocations: 8.094 kB / 0.6288 GB, free: 145.8 MB / 446.2 MB Notification: Performance of simCode: created simulation system equations: time 0.005503/1.093, allocations: 4.776 MB / 0.6334 GB, free: 142.9 MB / 446.2 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005229/1.098, allocations: 1.329 MB / 0.6347 GB, free: 142.5 MB / 446.2 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01798/1.116, allocations: 13.4 MB / 0.6478 GB, free: 133 MB / 446.2 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003693/1.12, allocations: 4.487 MB / 0.6522 GB, free: 129.6 MB / 446.2 MB Notification: Performance of simCode: alias equations: time 0.003428/1.123, allocations: 1.057 MB / 0.6532 GB, free: 128.8 MB / 446.2 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006686/1.124, allocations: 274.8 kB / 0.6535 GB, free: 128.6 MB / 446.2 MB Notification: Performance of SimCode: time 7.81e-07/1.124, allocations: 0 / 0.6535 GB, free: 128.6 MB / 446.2 MB Notification: Performance of Templates: time 0.1014/1.225, allocations: 73.86 MB / 0.7256 GB, free: 54.71 MB / 446.2 MB 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)