Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.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_YD,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007158/0.007158, allocations: 100.1 kB / 15.73 MB, free: 6.445 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.001561/0.001561, allocations: 190.8 kB / 16.67 MB, free: 6.348 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.37/1.37, allocations: 205.1 MB / 222.5 MB, free: 4.539 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.001137/0.001137, allocations: 51.2 kB / 326.6 MB, free: 14.5 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08975/0.0909, allocations: 46.62 MB / 373.2 MB, free: 1.422 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD): time 0.01542/0.1064, allocations: 13.68 MB / 386.9 MB, free: 3.68 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009346/0.1158, allocations: 4.498 MB / 391.4 MB, free: 15.17 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002515/0.1184, allocations: 71.69 kB / 391.4 MB, free: 15.1 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003152/0.1215, allocations: 1.041 MB / 392.5 MB, free: 14.05 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004485/0.126, allocations: 1.386 MB / 393.9 MB, free: 12.66 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002463/0.1285, allocations: 0.9159 MB / 394.8 MB, free: 11.74 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005685/0.1342, allocations: 4.748 MB / 399.5 MB, free: 6.973 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004831/0.1391, allocations: 3.625 MB / 403.1 MB, free: 3.281 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003326/0.1424, allocations: 2.185 MB / 405.3 MB, free: 1.09 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00426/0.1467, allocations: 2.467 MB / 407.8 MB, free: 14.61 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001553/0.1483, allocations: 0.5938 MB / 408.4 MB, free: 14.02 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002465/0.1507, allocations: 0.7849 MB / 409.2 MB, free: 13.23 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001812/0.1526, allocations: 1.34 MB / 410.5 MB, free: 11.89 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003163/0.1557, allocations: 2.47 MB / 413 MB, free: 9.41 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007187/0.1629, allocations: 7.787 MB / 420.8 MB, free: 1.598 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.001e-06/0.1629, allocations: 0 / 420.8 MB, free: 1.598 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.163, allocations: 0 / 420.8 MB, free: 1.598 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001094/0.1631, allocations: 0 / 420.8 MB, free: 1.598 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: 945 * Number of variables: 945 Notification: Performance of Generate backend data structure: time 0.01198/0.1751, allocations: 5.15 MB / 425.9 MB, free: 12.37 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.565e-05/0.1751, allocations: 8.031 kB / 425.9 MB, free: 12.36 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00424/0.1794, allocations: 0.8921 MB / 426.8 MB, free: 11.46 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004268/0.1837, allocations: 2.676 MB / 429.5 MB, free: 8.738 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002137/0.1839, allocations: 273.5 kB / 429.8 MB, free: 8.473 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005359/0.1844, allocations: 359.9 kB / 430.1 MB, free: 8.121 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008462/0.1929, allocations: 5.036 MB / 435.2 MB, free: 3.031 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.036e-05/0.193, allocations: 4 kB / 435.2 MB, free: 3.027 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003477/0.1934, allocations: 148 kB / 435.3 MB, free: 2.883 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001441/0.1935, allocations: 163.2 kB / 435.5 MB, free: 2.723 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007211/0.2007, allocations: 4.381 MB / 439.8 MB, free: 14.34 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2482/0.4489, allocations: 15.74 MB / 455.6 MB, free: 62.27 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007662/0.4567, allocations: 7.782 MB / 463.4 MB, free: 56.78 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002929/0.4596, allocations: 1.713 MB / 465.1 MB, free: 56.76 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007901/0.4675, allocations: 4.648 MB / 469.7 MB, free: 54.84 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.257e-05/0.4676, allocations: 48.36 kB / 469.8 MB, free: 54.79 MB / 382.1 MB Notification: Performance of pre-optimization done (n=161): time 3.727e-06/0.4676, allocations: 2.5 kB / 469.8 MB, free: 54.79 MB / 382.1 MB Notification: Performance of matching and sorting (n=164): time 0.01554/0.4832, allocations: 8.181 MB / 478 MB, free: 51.17 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.378e-05/0.4832, allocations: 68.5 kB / 478 MB, free: 51.11 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00252/0.4857, allocations: 2.163 MB / 480.2 MB, free: 50.04 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.836e-05/0.4859, allocations: 53.64 kB / 480.2 MB, free: 49.98 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009089/0.4868, allocations: 1.657 MB / 481.9 MB, free: 48.75 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004036/0.4872, allocations: 0.5854 MB / 482.5 MB, free: 48.31 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005905/0.4878, allocations: 359.8 kB / 482.8 MB, free: 48.1 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.447e-05/0.4879, allocations: 305.1 kB / 483.1 MB, free: 47.8 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001275/0.4891, allocations: 0.941 MB / 484.1 MB, free: 47.3 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001458/0.4906, allocations: 1.457 MB / 485.5 MB, free: 46.15 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002702/0.4933, allocations: 2.5 MB / 488 MB, free: 44.41 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.534e-06/0.4933, allocations: 3.906 kB / 488 MB, free: 44.41 MB / 382.1 MB Notification: Performance of matching and sorting (n=245) (initialization): time 0.004503/0.4978, allocations: 3.369 MB / 491.4 MB, free: 42.53 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.978e-05/0.4979, allocations: 16.84 kB / 491.4 MB, free: 42.52 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.104e-05/0.4979, allocations: 21.16 kB / 491.4 MB, free: 42.52 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001587/0.4995, allocations: 0.7366 MB / 492.2 MB, free: 42.12 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001246/0.5008, allocations: 371.4 kB / 492.5 MB, free: 41.76 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008958/0.5097, allocations: 11.36 MB / 0.4921 GB, free: 29.86 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001731/0.5115, allocations: 79.95 kB / 0.4922 GB, free: 29.79 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001298/0.5116, allocations: 79.98 kB / 0.4922 GB, free: 29.71 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 69 * Number of states: 0 () * Number of discrete variables: 6 (booleanStepYD[3].y,booleanStepYD[2].y,booleanStepYD[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 (195): * Single equations (assignments): 190 * 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,8,100.0%), (9,19,33.3%), (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.002205/0.5138, allocations: 1.216 MB / 0.4934 GB, free: 28.48 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003411/0.5142, allocations: 238.5 kB / 0.4937 GB, free: 28.25 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004463/0.5187, allocations: 3.166 MB / 0.4967 GB, free: 25.02 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.527e-06/0.5187, allocations: 19.98 kB / 0.4968 GB, free: 25 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.001e-05/0.5187, allocations: 8 kB / 0.4968 GB, free: 25 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.274e-05/0.5187, allocations: 15.81 kB / 0.4968 GB, free: 24.98 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008175/0.5269, allocations: 6.565 MB / 0.5032 GB, free: 18.3 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.212e-06/0.5269, allocations: 3.984 kB / 0.5032 GB, free: 18.3 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000739/0.5277, allocations: 171.8 kB / 0.5034 GB, free: 18.13 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001873/0.5296, allocations: 0.9076 MB / 0.5043 GB, free: 17.21 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001011/0.5297, allocations: 43.98 kB / 0.5043 GB, free: 17.16 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01246/0.5421, allocations: 16.18 MB / 0.5201 GB, free: 180 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.26e-06/0.5422, allocations: 4.031 kB / 0.5201 GB, free: 176 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007199/0.5494, allocations: 4.514 MB / 0.5245 GB, free: 11.57 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001187/0.5506, allocations: 0.5307 MB / 0.525 GB, free: 11.02 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002905/0.5509, allocations: 36 kB / 0.5251 GB, free: 10.98 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001001/0.5519, allocations: 76.03 kB / 0.5251 GB, free: 10.91 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004132/0.5523, allocations: 172.9 kB / 0.5253 GB, free: 10.74 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001103/0.5524, allocations: 43.98 kB / 0.5253 GB, free: 10.7 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002194/0.5547, allocations: 1.485 MB / 0.5268 GB, free: 9.191 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5547, allocations: 0 / 0.5268 GB, free: 9.191 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002539/0.5572, allocations: 0.7031 MB / 0.5275 GB, free: 8.488 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (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) * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (94): * Single equations (assignments): 88 * 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,1,100.0%), (1,8,100.0%), (9,19,33.3%), (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.000356/0.5576, allocations: 177.4 kB / 0.5276 GB, free: 8.309 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004947/0.5625, allocations: 3.133 MB / 0.5307 GB, free: 5.102 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5e-06/0.5625, allocations: 5.875 kB / 0.5307 GB, free: 5.098 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003359/0.5659, allocations: 2.265 MB / 0.5329 GB, free: 2.758 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002598/0.5685, allocations: 0.6356 MB / 0.5335 GB, free: 2.117 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01187/0.5804, allocations: 6.922 MB / 0.5403 GB, free: 11.14 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002492/0.5829, allocations: 2.678 MB / 0.5429 GB, free: 8.434 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001616/0.5846, allocations: 479.4 kB / 0.5434 GB, free: 7.961 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003841/0.585, allocations: 139.4 kB / 0.5435 GB, free: 7.824 MB / 414.1 MB Notification: Performance of SimCode: time 1.192e-06/0.585, allocations: 0 / 0.5435 GB, free: 7.824 MB / 414.1 MB Notification: Performance of Templates: time 0.06196/0.6469, allocations: 36.94 MB / 0.5796 GB, free: 2.879 MB / 446.1 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.sim & ./Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe 2>&1)