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.001128/0.001128, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001198/0.001198, allocations: 194.1 kB / 16.14 MB, free: 6.711 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 MB, free: 4.762 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.001139/0.001139, allocations: 52.36 kB / 278.1 MB, free: 12.77 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2223/0.2235, allocations: 46.63 MB / 324.7 MB, free: 2.055 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start): time 0.02343/0.2469, allocations: 23.24 MB / 347.9 MB, free: 12.93 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01456/0.2615, allocations: 6.856 MB / 354.8 MB, free: 6.059 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005501/0.2671, allocations: 127.4 kB / 354.9 MB, free: 5.934 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005537/0.2727, allocations: 1.387 MB / 356.3 MB, free: 4.539 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008923/0.2816, allocations: 2.172 MB / 358.5 MB, free: 2.355 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004345/0.286, allocations: 1.327 MB / 359.8 MB, free: 1.027 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.01247/0.2985, allocations: 9.903 MB / 369.7 MB, free: 7.082 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007602/0.3061, allocations: 5.783 MB / 375.5 MB, free: 1.211 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005106/0.3113, allocations: 3.316 MB / 378.8 MB, free: 13.88 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006781/0.3181, allocations: 4.448 MB / 383.2 MB, free: 9.41 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002191/0.3203, allocations: 0.6406 MB / 383.9 MB, free: 8.77 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003384/0.3237, allocations: 0.933 MB / 384.8 MB, free: 7.84 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0025/0.3262, allocations: 2.227 MB / 387 MB, free: 5.605 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006362/0.3326, allocations: 4.164 MB / 391.2 MB, free: 1.422 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0139/0.3465, allocations: 13.94 MB / 405.1 MB, free: 3.441 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.552e-06/0.3466, allocations: 4 kB / 405.1 MB, free: 3.438 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3466, allocations: 0 / 405.1 MB, free: 3.438 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0003862/0.347, allocations: 4 kB / 405.2 MB, free: 3.434 MB / 334.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.02356/0.3705, allocations: 8.9 MB / 414.1 MB, free: 10.44 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.043e-05/0.3706, allocations: 8.031 kB / 414.1 MB, free: 10.43 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006318/0.3769, allocations: 1.311 MB / 415.4 MB, free: 9.113 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01068/0.3876, allocations: 4.989 MB / 420.4 MB, free: 4.055 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004494/0.3881, allocations: 0.4941 MB / 420.9 MB, free: 3.559 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001836/0.39, allocations: 0.6718 MB / 421.5 MB, free: 2.887 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0194/0.4094, allocations: 9.445 MB / 431 MB, free: 9.32 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001702/0.4096, allocations: 11.89 kB / 431 MB, free: 9.309 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001034/0.4106, allocations: 280 kB / 431.3 MB, free: 9.035 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002646/0.4109, allocations: 297.4 kB / 431.5 MB, free: 8.742 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01509/0.426, allocations: 8.079 MB / 439.6 MB, free: 0.6484 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3121/0.7381, allocations: 29.38 MB / 469 MB, free: 89.45 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01023/0.7484, allocations: 11.97 MB / 481 MB, free: 80 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004987/0.7534, allocations: 3.385 MB / 484.4 MB, free: 78.76 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01289/0.7663, allocations: 7.996 MB / 492.4 MB, free: 73.76 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.713e-05/0.7664, allocations: 68.41 kB / 492.4 MB, free: 73.7 MB / 382.1 MB Notification: Performance of pre-optimization done (n=305): time 5.791e-06/0.7664, allocations: 0 / 492.4 MB, free: 73.7 MB / 382.1 MB Notification: Performance of matching and sorting (n=324): time 0.02649/0.7929, allocations: 15.84 MB / 0.4964 GB, free: 60.93 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.999e-05/0.793, allocations: 85.95 kB / 0.4964 GB, free: 60.84 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007168/0.8002, allocations: 4 MB / 0.5003 GB, free: 56.81 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004671/0.8007, allocations: 81.7 kB / 0.5004 GB, free: 56.73 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001738/0.8024, allocations: 3.082 MB / 0.5034 GB, free: 53.63 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009059/0.8033, allocations: 1.092 MB / 0.5045 GB, free: 52.55 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001291/0.8046, allocations: 0.6806 MB / 0.5052 GB, free: 51.86 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.372e-05/0.8047, allocations: 301.1 kB / 0.5054 GB, free: 51.56 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002535/0.8072, allocations: 1.862 MB / 0.5073 GB, free: 49.7 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00291/0.8101, allocations: 2.843 MB / 0.51 GB, free: 46.46 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005437/0.8156, allocations: 4.902 MB / 0.5148 GB, free: 41.14 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.153e-05/0.8156, allocations: 8 kB / 0.5148 GB, free: 41.13 MB / 382.1 MB Notification: Performance of matching and sorting (n=487) (initialization): time 0.009189/0.8248, allocations: 6.41 MB / 0.5211 GB, free: 34.6 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.604e-05/0.8249, allocations: 16 kB / 0.5211 GB, free: 34.59 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.596e-05/0.8249, allocations: 32.12 kB / 0.5211 GB, free: 34.55 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002531/0.8275, allocations: 1.276 MB / 0.5224 GB, free: 33.23 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002819/0.8303, allocations: 0.8112 MB / 0.5232 GB, free: 32.42 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01402/0.8443, allocations: 20.73 MB / 0.5434 GB, free: 10.22 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003208/0.8476, allocations: 191.8 kB / 0.5436 GB, free: 10.04 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006254/0.8482, allocations: 156 kB / 0.5438 GB, free: 9.883 MB / 382.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.003624/0.8519, allocations: 2.181 MB / 0.5459 GB, free: 7.691 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001037/0.8529, allocations: 446.6 kB / 0.5463 GB, free: 7.25 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009539/0.8625, allocations: 6.053 MB / 0.5522 GB, free: 1.016 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.867e-05/0.8625, allocations: 32 kB / 0.5523 GB, free: 0.9844 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.929e-05/0.8626, allocations: 16 kB / 0.5523 GB, free: 0.9688 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.151e-05/0.8626, allocations: 15.94 kB / 0.5523 GB, free: 0.9531 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02323/0.8858, allocations: 12.37 MB / 0.5644 GB, free: 4.363 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-05/0.8859, allocations: 8 kB / 0.5644 GB, free: 4.355 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001938/0.8878, allocations: 451.8 kB / 0.5648 GB, free: 3.914 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003881/0.8917, allocations: 1.615 MB / 0.5664 GB, free: 2.25 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003079/0.8921, allocations: 75.97 kB / 0.5665 GB, free: 2.176 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02656/0.9186, allocations: 30.19 MB / 0.5959 GB, free: 1.871 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.949e-06/0.9187, allocations: 4 kB / 0.5959 GB, free: 1.867 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01393/0.9326, allocations: 8.653 MB / 0.6044 GB, free: 8.969 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002415/0.9351, allocations: 0.9134 MB / 0.6053 GB, free: 8.031 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00137/0.9364, allocations: 71.92 kB / 0.6054 GB, free: 7.961 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002714/0.9392, allocations: 183.8 kB / 0.6055 GB, free: 7.781 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007757/0.94, allocations: 273.9 kB / 0.6058 GB, free: 7.512 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002822/0.9403, allocations: 83.98 kB / 0.6059 GB, free: 7.43 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.005763/0.946, allocations: 2.725 MB / 0.6085 GB, free: 4.699 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.9461, allocations: 0 / 0.6085 GB, free: 4.699 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.006004/0.9521, allocations: 1.327 MB / 0.6098 GB, free: 3.375 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.0008484/0.953, allocations: 269.8 kB / 0.6101 GB, free: 3.102 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.1638/1.117, allocations: 6.316 MB / 0.6163 GB, free: 150.2 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.637e-06/1.117, allocations: 4.781 kB / 0.6163 GB, free: 150.2 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006608/1.123, allocations: 4.784 MB / 0.6209 GB, free: 148.3 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005529/1.129, allocations: 1.262 MB / 0.6222 GB, free: 148.2 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02337/1.152, allocations: 16.27 MB / 0.6381 GB, free: 139.5 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004856/1.157, allocations: 4.485 MB / 0.6424 GB, free: 137.9 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004212/1.161, allocations: 1.051 MB / 0.6435 GB, free: 137.7 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001078/1.163, allocations: 280.7 kB / 0.6437 GB, free: 137.7 MB / 446.1 MB Notification: Performance of SimCode: time 1.092e-06/1.163, allocations: 0 / 0.6437 GB, free: 137.7 MB / 446.1 MB Notification: Performance of Templates: time 0.0985/1.261, allocations: 71.19 MB / 0.7132 GB, free: 68.32 MB / 446.1 MB 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)