Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.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.AIMC_Steinmetz,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008397/0.0008398, allocations: 98.19 kB / 15.36 MB, free: 0.7344 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.005776/0.005777, allocations: 170.2 kB / 16.27 MB, free: 6.652 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.459/1.459, allocations: 205.4 MB / 222.4 MB, free: 5.562 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.0004423/0.0004425, allocations: 8 kB / 279.4 MB, free: 12.51 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.223/0.2234, allocations: 47.6 MB / 327 MB, free: 1.395 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz): time 0.01381/0.2373, allocations: 12.76 MB / 339.8 MB, free: 6.535 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.008605/0.2459, allocations: 4.339 MB / 344.1 MB, free: 2.184 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002592/0.2486, allocations: 63.75 kB / 344.2 MB, free: 2.121 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003205/0.2518, allocations: 0.8628 MB / 345.1 MB, free: 1.254 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005071/0.2569, allocations: 1.173 MB / 346.2 MB, free: 76 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00302/0.2599, allocations: 0.8304 MB / 347.1 MB, free: 15.24 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.00622/0.2662, allocations: 4.324 MB / 351.4 MB, free: 10.9 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003916/0.2701, allocations: 2.627 MB / 354 MB, free: 8.203 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00224/0.2724, allocations: 1.319 MB / 355.3 MB, free: 6.879 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002595/0.275, allocations: 1.684 MB / 357 MB, free: 5.188 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007398/0.2757, allocations: 208 kB / 357.2 MB, free: 4.984 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001682/0.2774, allocations: 419.7 kB / 357.6 MB, free: 4.574 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008762/0.2783, allocations: 0.7587 MB / 358.4 MB, free: 3.812 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002158/0.2805, allocations: 1.774 MB / 360.2 MB, free: 2.023 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006627/0.2871, allocations: 6.264 MB / 366.4 MB, free: 11.74 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.2872, allocations: 0 / 366.4 MB, free: 11.74 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.655e-06/0.2872, allocations: 4 kB / 366.4 MB, free: 11.73 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001517/0.2873, allocations: 0 / 366.4 MB, free: 11.73 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 844 * Number of variables: 844 Notification: Performance of Generate backend data structure: time 0.009764/0.2971, allocations: 3.704 MB / 370.1 MB, free: 7.961 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.456e-05/0.2972, allocations: 12.02 kB / 370.2 MB, free: 7.949 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004455/0.3016, allocations: 0.8202 MB / 371 MB, free: 7.125 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003732/0.3054, allocations: 2.213 MB / 373.2 MB, free: 4.855 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001816/0.3056, allocations: 242.8 kB / 373.4 MB, free: 4.617 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005468/0.3061, allocations: 328 kB / 373.7 MB, free: 4.297 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007215/0.3134, allocations: 4.27 MB / 378 MB, free: 15.97 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.429e-05/0.3135, allocations: 3.984 kB / 378 MB, free: 15.97 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002962/0.3138, allocations: 132 kB / 378.2 MB, free: 15.84 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001302/0.3139, allocations: 150.4 kB / 378.3 MB, free: 15.69 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006231/0.3201, allocations: 3.601 MB / 381.9 MB, free: 12.08 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02014/0.3403, allocations: 13.94 MB / 395.8 MB, free: 13.76 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006286/0.3466, allocations: 6.567 MB / 402.4 MB, free: 6.359 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00237/0.349, allocations: 1.394 MB / 403.8 MB, free: 4.965 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005869/0.3549, allocations: 3.651 MB / 407.5 MB, free: 1.227 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.336e-05/0.355, allocations: 55.88 kB / 407.5 MB, free: 1.164 MB / 334.1 MB Notification: Performance of pre-optimization done (n=134): time 2.685e-06/0.355, allocations: 0 / 407.5 MB, free: 1.164 MB / 334.1 MB Notification: Performance of matching and sorting (n=137): time 0.01181/0.3668, allocations: 5.921 MB / 413.4 MB, free: 11.02 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.311e-05/0.3669, allocations: 64.72 kB / 413.5 MB, free: 10.95 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002517/0.3694, allocations: 1.78 MB / 415.3 MB, free: 9.164 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.898e-05/0.3696, allocations: 49.7 kB / 415.3 MB, free: 9.109 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009158/0.3705, allocations: 1.438 MB / 416.8 MB, free: 7.652 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003406/0.3708, allocations: 473.1 kB / 417.2 MB, free: 7.184 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002023/0.371, allocations: 153.6 kB / 417.4 MB, free: 7.027 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.696e-05/0.3711, allocations: 305.1 kB / 417.7 MB, free: 6.727 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00107/0.3722, allocations: 0.6832 MB / 418.4 MB, free: 6.047 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001384/0.3736, allocations: 1.205 MB / 419.6 MB, free: 4.617 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002553/0.3762, allocations: 2.003 MB / 421.6 MB, free: 2.395 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.494e-06/0.3762, allocations: 4 kB / 421.6 MB, free: 2.391 MB / 350.1 MB Notification: Performance of matching and sorting (n=223) (initialization): time 0.004088/0.3803, allocations: 2.551 MB / 424.1 MB, free: 15.79 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.557e-05/0.3803, allocations: 16.03 kB / 424.1 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.163e-05/0.3804, allocations: 16 kB / 424.1 MB, free: 15.76 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009272/0.3813, allocations: 368 kB / 424.5 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001354/0.3827, allocations: 375.4 kB / 424.9 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007039/0.3897, allocations: 7.701 MB / 432.6 MB, free: 6.781 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001361/0.3911, allocations: 75.95 kB / 432.7 MB, free: 6.707 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001101/0.3912, allocations: 72 kB / 432.7 MB, free: 6.637 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 72 * Number of states: 0 () * Number of discrete variables: 2 (idealOpener.control,idealCloser.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (192): * Single equations (assignments): 187 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * 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): 4 systems {(1,7,100.0%), (2,8,100.0%), (1,1,100.0%), (1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001867/0.3931, allocations: 1.016 MB / 433.7 MB, free: 5.609 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002845/0.3934, allocations: 197.6 kB / 433.9 MB, free: 5.414 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003834/0.3972, allocations: 2.293 MB / 436.2 MB, free: 3.051 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.068e-05/0.3972, allocations: 12 kB / 436.2 MB, free: 3.039 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.133e-05/0.3973, allocations: 8 kB / 436.2 MB, free: 3.031 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.445e-05/0.3973, allocations: 8.156 kB / 436.3 MB, free: 3.023 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007355/0.4046, allocations: 5.083 MB / 441.3 MB, free: 13.8 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.841e-06/0.4047, allocations: 8.125 kB / 441.3 MB, free: 13.79 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007726/0.4055, allocations: 175.8 kB / 441.5 MB, free: 13.62 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001353/0.4068, allocations: 0.5319 MB / 442 MB, free: 13.07 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.789e-05/0.4069, allocations: 39.98 kB / 442.1 MB, free: 13.03 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01117/0.4181, allocations: 12.09 MB / 454.2 MB, free: 132 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/0.4181, allocations: 4.094 kB / 454.2 MB, free: 128 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1751/0.5932, allocations: 3.222 MB / 457.4 MB, free: 107.5 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008424/0.5941, allocations: 428.7 kB / 457.8 MB, free: 107.4 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002157/0.5943, allocations: 37.25 kB / 457.9 MB, free: 107.4 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008582/0.5952, allocations: 73.03 kB / 457.9 MB, free: 107.4 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002679/0.5955, allocations: 108.9 kB / 458 MB, free: 107.4 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.004e-05/0.5956, allocations: 38.22 kB / 458.1 MB, free: 107.4 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001748/0.5973, allocations: 1.221 MB / 459.3 MB, free: 107 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5973, allocations: 4.125 kB / 459.3 MB, free: 107 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002074/0.5994, allocations: 0.5794 MB / 459.9 MB, free: 107 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 9 (aimc.inertiaRotor.w,aimc.stator.zeroInductor.i0,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,quadraticLoadTorque.phi,cRun.v,cStart.v) * Number of discrete variables: 2 (idealCloser.control,idealOpener.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (86): * Single equations (assignments): 80 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(1,7,100.0%), (2,8,100.0%), (1,1,100.0%), (1,13,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.0002974/0.5997, allocations: 165 kB / 460 MB, free: 106.9 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002953/0.6027, allocations: 2.372 MB / 462.4 MB, free: 105.6 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.6027, allocations: 0 / 462.4 MB, free: 105.6 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002071/0.6048, allocations: 1.746 MB / 464.2 MB, free: 104.5 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002396/0.6072, allocations: 0.5073 MB / 464.7 MB, free: 104.4 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008441/0.6156, allocations: 7.387 MB / 472.1 MB, free: 100.1 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001639/0.6173, allocations: 2.319 MB / 474.4 MB, free: 99.01 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001173/0.6185, allocations: 400.4 kB / 474.8 MB, free: 98.74 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002633/0.6187, allocations: 123.4 kB / 474.9 MB, free: 98.63 MB / 382.1 MB Notification: Performance of SimCode: time 6.02e-07/0.6187, allocations: 0 / 474.9 MB, free: 98.63 MB / 382.1 MB Notification: Performance of Templates: time 0.03986/0.6586, allocations: 28.25 MB / 0.4913 GB, free: 70.8 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.makefile (rm -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.sim & ./Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.pipe 2>&1)