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.005519/0.005519, allocations: 101.9 kB / 15.73 MB, free: 6.438 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.001238/0.001238, allocations: 194.3 kB / 16.67 MB, free: 6.355 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.429/1.429, allocations: 205.1 MB / 222.6 MB, free: 4.473 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.001197/0.001197, allocations: 61.5 kB / 326.6 MB, free: 14.39 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08548/0.08668, allocations: 46.62 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.02386/0.1106, allocations: 23.57 MB / 396.8 MB, free: 9.621 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01586/0.1265, allocations: 6.91 MB / 403.7 MB, free: 2.691 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005548/0.1322, allocations: 135.4 kB / 403.8 MB, free: 2.559 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005438/0.1376, allocations: 1.685 MB / 405.5 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008224/0.1459, allocations: 2.466 MB / 408 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004229/0.1501, allocations: 1.44 MB / 409.4 MB, free: 12.94 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0123/0.1624, allocations: 8.932 MB / 418.3 MB, free: 3.977 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008291/0.1708, allocations: 7 MB / 425.3 MB, free: 12.88 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005542/0.1763, allocations: 4.07 MB / 429.4 MB, free: 8.797 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007152/0.1835, allocations: 4.721 MB / 434.1 MB, free: 4.059 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002291/0.1858, allocations: 1.105 MB / 435.2 MB, free: 2.953 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003678/0.1895, allocations: 1.371 MB / 436.6 MB, free: 1.582 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003482/0.193, allocations: 2.731 MB / 439.3 MB, free: 14.84 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009095/0.2021, allocations: 4.683 MB / 444 MB, free: 10.14 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2217/0.4238, allocations: 14.45 MB / 458.5 MB, free: 29.2 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.321e-06/0.4239, allocations: 0 / 458.5 MB, free: 29.2 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.334e-06/0.4239, allocations: 0.5 kB / 458.5 MB, free: 29.2 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003951/0.4243, allocations: 0 / 458.5 MB, free: 29.2 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.02503/0.4493, allocations: 8.901 MB / 467.4 MB, free: 26.3 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.423e-05/0.4494, allocations: 13.09 kB / 467.4 MB, free: 26.3 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006604/0.456, allocations: 1.3 MB / 468.7 MB, free: 25.89 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01118/0.4672, allocations: 5.077 MB / 473.7 MB, free: 24.91 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005197/0.4678, allocations: 0.4998 MB / 474.2 MB, free: 24.89 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002544/0.4703, allocations: 0.6722 MB / 474.9 MB, free: 24.88 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01893/0.4893, allocations: 9.448 MB / 484.4 MB, free: 21.74 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001698/0.4895, allocations: 10.66 kB / 484.4 MB, free: 21.73 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007432/0.4902, allocations: 277.4 kB / 484.6 MB, free: 21.52 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001827/0.4904, allocations: 301.1 kB / 484.9 MB, free: 21.48 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01268/0.5031, allocations: 8.072 MB / 493 MB, free: 17.23 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04998/0.5531, allocations: 29.02 MB / 0.5098 GB, free: 5.039 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01155/0.5647, allocations: 11.97 MB / 0.5215 GB, free: 7.934 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006/0.5707, allocations: 3.371 MB / 0.5248 GB, free: 4.555 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01761/0.5884, allocations: 7.964 MB / 0.5326 GB, free: 12.6 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.72e-05/0.5885, allocations: 68.97 kB / 0.5326 GB, free: 12.52 MB / 430.1 MB Notification: Performance of pre-optimization done (n=305): time 5.731e-06/0.5885, allocations: 0 / 0.5326 GB, free: 12.52 MB / 430.1 MB Notification: Performance of matching and sorting (n=324): time 0.03202/0.6206, allocations: 15.85 MB / 0.5481 GB, free: 12.23 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.713e-05/0.6207, allocations: 93.94 kB / 0.5482 GB, free: 12.12 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006672/0.6274, allocations: 4 MB / 0.5521 GB, free: 8.105 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006209/0.628, allocations: 81.7 kB / 0.5522 GB, free: 8.02 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002127/0.6301, allocations: 3.09 MB / 0.5552 GB, free: 4.914 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00127/0.6314, allocations: 1.092 MB / 0.5563 GB, free: 3.832 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001113/0.6325, allocations: 0.6767 MB / 0.5569 GB, free: 3.148 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.419e-05/0.6327, allocations: 301.1 kB / 0.5572 GB, free: 2.852 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002825/0.6355, allocations: 1.87 MB / 0.559 GB, free: 0.9805 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003522/0.639, allocations: 2.834 MB / 0.5618 GB, free: 13.77 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006576/0.6456, allocations: 4.905 MB / 0.5666 GB, free: 8.555 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-05/0.6456, allocations: 8 kB / 0.5666 GB, free: 8.547 MB / 462.1 MB Notification: Performance of matching and sorting (n=487) (initialization): time 0.01035/0.656, allocations: 6.402 MB / 0.5729 GB, free: 2.227 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.166e-05/0.6561, allocations: 23.98 kB / 0.5729 GB, free: 2.203 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.925e-05/0.6561, allocations: 28 kB / 0.5729 GB, free: 2.176 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002918/0.6591, allocations: 1.269 MB / 0.5741 GB, free: 0.875 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003254/0.6623, allocations: 0.814 MB / 0.5749 GB, free: 112 kB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02008/0.6824, allocations: 22.53 MB / 0.5969 GB, free: 8.152 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004533/0.687, allocations: 195.8 kB / 0.5971 GB, free: 7.961 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009838/0.688, allocations: 152 kB / 0.5973 GB, free: 7.812 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.004986/0.693, allocations: 2.191 MB / 0.5994 GB, free: 5.66 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001472/0.6945, allocations: 442.7 kB / 0.5998 GB, free: 5.223 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01075/0.7053, allocations: 6.06 MB / 0.6058 GB, free: 15.04 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.589e-05/0.7053, allocations: 32 kB / 0.6058 GB, free: 15.01 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.951e-05/0.7054, allocations: 12 kB / 0.6058 GB, free: 15 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.594e-05/0.7055, allocations: 15.94 kB / 0.6058 GB, free: 14.98 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02062/0.7261, allocations: 12.35 MB / 0.6179 GB, free: 2.496 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.284e-05/0.7261, allocations: 4 kB / 0.6179 GB, free: 2.492 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002028/0.7282, allocations: 454.9 kB / 0.6183 GB, free: 2.066 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003734/0.7319, allocations: 1.617 MB / 0.6199 GB, free: 420 kB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000214/0.7321, allocations: 79.97 kB / 0.62 GB, free: 340 kB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.23/0.9621, allocations: 32.86 MB / 0.6521 GB, free: 176.1 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.524e-06/0.9622, allocations: 4.125 kB / 0.6521 GB, free: 176.1 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01251/0.9747, allocations: 8.65 MB / 0.6605 GB, free: 172.4 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002312/0.9771, allocations: 0.9166 MB / 0.6614 GB, free: 172 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008433/0.9779, allocations: 67.5 kB / 0.6615 GB, free: 172 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002247/0.9802, allocations: 183.1 kB / 0.6616 GB, free: 172 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008586/0.9811, allocations: 267.8 kB / 0.6619 GB, free: 171.9 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000224/0.9813, allocations: 90.52 kB / 0.662 GB, free: 171.9 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.004132/0.9854, allocations: 2.724 MB / 0.6646 GB, free: 170.9 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.81e-07/0.9855, allocations: 0 / 0.6646 GB, free: 170.9 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.005744/0.9912, allocations: 1.326 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.0008484/0.9921, allocations: 275.4 kB / 0.6662 GB, free: 170.6 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.007743/0.9998, allocations: 6.34 MB / 0.6724 GB, free: 167.3 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 5.861e-06/0.9999, allocations: 0 / 0.6724 GB, free: 167.3 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.005536/1.005, allocations: 4.781 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.00559/1.011, allocations: 1.343 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.01957/1.031, allocations: 13.24 MB / 0.6913 GB, free: 153.1 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003689/1.034, allocations: 4.484 MB / 0.6957 GB, free: 148.6 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.003486/1.038, allocations: 1.046 MB / 0.6967 GB, free: 147.5 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000723/1.039, allocations: 283.4 kB / 0.697 GB, free: 147.3 MB / 0.5137 GB Notification: Performance of SimCode: time 1.252e-06/1.039, allocations: 0 / 0.697 GB, free: 147.3 MB / 0.5137 GB Notification: Performance of Templates: time 0.09976/1.138, allocations: 71.37 MB / 0.7667 GB, free: 75.87 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)