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.001622/0.001622, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001879/0.00188, allocations: 194.8 kB / 16.25 MB, free: 6.621 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.475/1.475, allocations: 205.1 MB / 222.1 MB, free: 4.746 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.00133/0.00133, allocations: 55.92 kB / 278.2 MB, free: 12.66 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2141/0.2155, allocations: 46.62 MB / 324.9 MB, free: 1.918 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start): time 0.02447/0.24, allocations: 23.25 MB / 348.1 MB, free: 12.76 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01406/0.2541, allocations: 6.801 MB / 354.9 MB, free: 5.938 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004301/0.2585, allocations: 127.4 kB / 355 MB, free: 5.812 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005072/0.2636, allocations: 1.407 MB / 356.4 MB, free: 4.398 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007723/0.2713, allocations: 2.157 MB / 358.6 MB, free: 2.23 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004009/0.2754, allocations: 1.303 MB / 359.9 MB, free: 0.9258 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.01129/0.2867, allocations: 9.03 MB / 368.9 MB, free: 7.855 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01014/0.2968, allocations: 7.007 MB / 375.9 MB, free: 0.7617 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006011/0.3029, allocations: 3.952 MB / 379.9 MB, free: 12.8 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00755/0.3105, allocations: 4.772 MB / 384.7 MB, free: 8.008 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003235/0.3137, allocations: 1.098 MB / 385.8 MB, free: 6.91 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004936/0.3187, allocations: 1.39 MB / 387.1 MB, free: 5.52 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00556/0.3243, allocations: 2.719 MB / 389.9 MB, free: 2.793 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01165/0.336, allocations: 4.676 MB / 394.5 MB, free: 14.09 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01797/0.354, allocations: 14.31 MB / 408.9 MB, free: 15.74 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.343e-06/0.354, allocations: 7.938 kB / 408.9 MB, free: 15.73 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.354, allocations: 3.938 kB / 408.9 MB, free: 15.73 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.000419/0.3545, allocations: 0 / 408.9 MB, free: 15.73 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.02574/0.3802, allocations: 8.88 MB / 417.7 MB, free: 6.758 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.646e-05/0.3803, allocations: 8.031 kB / 417.8 MB, free: 6.75 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008611/0.3889, allocations: 1.315 MB / 419.1 MB, free: 5.426 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01373/0.4027, allocations: 4.989 MB / 424.1 MB, free: 376 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000612/0.4033, allocations: 0.4981 MB / 424.6 MB, free: 15.86 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002635/0.406, allocations: 0.6717 MB / 425.2 MB, free: 15.2 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02417/0.4302, allocations: 9.442 MB / 434.7 MB, free: 5.633 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003286/0.4306, allocations: 11.84 kB / 434.7 MB, free: 5.621 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002231/0.4328, allocations: 280 kB / 435 MB, free: 5.348 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003302/0.4331, allocations: 305.4 kB / 435.3 MB, free: 5.047 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01851/0.4517, allocations: 8.067 MB / 443.3 MB, free: 12.96 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3341/0.7858, allocations: 29.4 MB / 472.7 MB, free: 89.91 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00953/0.7954, allocations: 11.97 MB / 484.7 MB, free: 79.34 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005132/0.8006, allocations: 3.387 MB / 488.1 MB, free: 77.68 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01532/0.8159, allocations: 8.001 MB / 496.1 MB, free: 72.65 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.113e-05/0.816, allocations: 71.12 kB / 496.1 MB, free: 72.59 MB / 382.1 MB Notification: Performance of pre-optimization done (n=305): time 6.001e-06/0.8161, allocations: 0 / 496.1 MB, free: 72.59 MB / 382.1 MB Notification: Performance of matching and sorting (n=324): time 0.03001/0.8461, allocations: 15.83 MB / 0.5 GB, free: 57.3 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.696e-05/0.8462, allocations: 85.95 kB / 0.5001 GB, free: 57.21 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007666/0.8538, allocations: 3.996 MB / 0.504 GB, free: 53.19 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006286/0.8545, allocations: 81.7 kB / 0.504 GB, free: 53.1 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001897/0.8564, allocations: 3.086 MB / 0.507 GB, free: 50 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001098/0.8575, allocations: 1.091 MB / 0.5081 GB, free: 48.92 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00189/0.8594, allocations: 0.6767 MB / 0.5088 GB, free: 48.23 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.835e-05/0.8595, allocations: 305.1 kB / 0.5091 GB, free: 47.93 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002673/0.8622, allocations: 1.866 MB / 0.5109 GB, free: 46.07 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002926/0.8651, allocations: 2.839 MB / 0.5137 GB, free: 42.83 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005651/0.8708, allocations: 4.904 MB / 0.5184 GB, free: 37.5 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.598e-05/0.8708, allocations: 8 kB / 0.5185 GB, free: 37.5 MB / 382.1 MB Notification: Performance of matching and sorting (n=487) (initialization): time 0.009621/0.8804, allocations: 6.402 MB / 0.5247 GB, free: 30.98 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.75e-05/0.8805, allocations: 24.12 kB / 0.5247 GB, free: 30.95 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.664e-05/0.8805, allocations: 28 kB / 0.5248 GB, free: 30.93 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002412/0.883, allocations: 1.28 MB / 0.526 GB, free: 29.61 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002979/0.886, allocations: 0.8112 MB / 0.5268 GB, free: 28.79 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0147/0.9007, allocations: 22.55 MB / 0.5488 GB, free: 4.711 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003592/0.9043, allocations: 191.8 kB / 0.549 GB, free: 4.523 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006791/0.905, allocations: 152 kB / 0.5492 GB, free: 4.375 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.003994/0.909, allocations: 2.179 MB / 0.5513 GB, free: 2.184 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001456/0.9105, allocations: 446.5 kB / 0.5517 GB, free: 1.742 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0115/0.922, allocations: 6.067 MB / 0.5576 GB, free: 11.49 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.141e-05/0.9221, allocations: 28 kB / 0.5577 GB, free: 11.46 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.191e-05/0.9221, allocations: 16 kB / 0.5577 GB, free: 11.45 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.369e-05/0.9222, allocations: 19.88 kB / 0.5577 GB, free: 11.43 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02718/0.9494, allocations: 12.38 MB / 0.5698 GB, free: 14.84 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.501e-05/0.9495, allocations: 0 / 0.5698 GB, free: 14.84 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002215/0.9517, allocations: 451.3 kB / 0.5702 GB, free: 14.4 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004247/0.9559, allocations: 1.633 MB / 0.5718 GB, free: 12.71 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004619/0.9564, allocations: 75.98 kB / 0.5719 GB, free: 12.64 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02914/0.9856, allocations: 32.9 MB / 0.604 GB, free: 9.531 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.753e-06/0.9856, allocations: 7.969 kB / 0.604 GB, free: 9.523 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01487/1, allocations: 8.631 MB / 0.6124 GB, free: 0.6367 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.1794/1.18, allocations: 0.9104 MB / 0.6133 GB, free: 149.9 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001586/1.182, allocations: 68.89 kB / 0.6134 GB, free: 149.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003147/1.185, allocations: 184.9 kB / 0.6136 GB, free: 149.9 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001181/1.186, allocations: 274.4 kB / 0.6138 GB, free: 149.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005417/1.186, allocations: 91.47 kB / 0.6139 GB, free: 149.9 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004796/1.191, allocations: 2.721 MB / 0.6166 GB, free: 149.8 MB / 446.1 MB Notification: Performance of sort global known variables: time 5.41e-07/1.191, allocations: 0 / 0.6166 GB, free: 149.8 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005333/1.197, allocations: 1.332 MB / 0.6179 GB, free: 149.8 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.0007324/1.197, allocations: 271.7 kB / 0.6181 GB, free: 149.7 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01699/1.214, allocations: 9.431 MB / 0.6273 GB, free: 147.8 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.575e-06/1.214, allocations: 4.656 kB / 0.6274 GB, free: 147.8 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006194/1.221, allocations: 4.78 MB / 0.632 GB, free: 144.8 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009248/1.23, allocations: 1.336 MB / 0.6333 GB, free: 144.4 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02539/1.255, allocations: 16.27 MB / 0.6492 GB, free: 131.2 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005668/1.261, allocations: 4.479 MB / 0.6536 GB, free: 127.8 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003949/1.265, allocations: 1.051 MB / 0.6546 GB, free: 127 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009935/1.266, allocations: 279.2 kB / 0.6549 GB, free: 126.8 MB / 446.1 MB Notification: Performance of SimCode: time 6.72e-07/1.266, allocations: 1.75 kB / 0.6549 GB, free: 126.8 MB / 446.1 MB Notification: Performance of Templates: time 0.1095/1.376, allocations: 73.76 MB / 0.7269 GB, free: 52.96 MB / 446.1 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)