Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.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_Initialize,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000958/0.0009581, allocations: 98.11 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.00836/0.00836, allocations: 170.4 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.388/1.388, 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.0005225/0.0005227, allocations: 12.47 kB / 279.5 MB, free: 12.5 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2263/0.2268, allocations: 47.59 MB / 327 MB, free: 1.402 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize): time 0.01354/0.2404, allocations: 12.04 MB / 339.1 MB, free: 7.297 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.008494/0.2489, allocations: 4.204 MB / 343.3 MB, free: 3.082 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002061/0.251, allocations: 59.75 kB / 343.3 MB, free: 3.023 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002777/0.2538, allocations: 0.8474 MB / 344.2 MB, free: 2.172 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004031/0.2579, allocations: 1.15 MB / 345.3 MB, free: 1.016 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00209/0.26, allocations: 0.7798 MB / 346.1 MB, free: 240 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.005309/0.2653, allocations: 4.343 MB / 350.5 MB, free: 11.87 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00352/0.2688, allocations: 2.63 MB / 353.1 MB, free: 9.172 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001951/0.2708, allocations: 1.307 MB / 354.4 MB, free: 7.859 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002767/0.2736, allocations: 1.707 MB / 356.1 MB, free: 6.145 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005084/0.2741, allocations: 216 kB / 356.3 MB, free: 5.934 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001129/0.2753, allocations: 419.7 kB / 356.7 MB, free: 5.523 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006418/0.2759, allocations: 0.7743 MB / 357.5 MB, free: 4.746 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001837/0.2778, allocations: 1.755 MB / 359.3 MB, free: 2.977 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005326/0.2831, allocations: 6.318 MB / 365.6 MB, free: 12.64 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.2831, allocations: 0 / 365.6 MB, free: 12.64 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.2831, allocations: 0 / 365.6 MB, free: 12.64 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.00012/0.2832, allocations: 0 / 365.6 MB, free: 12.64 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: 819 * Number of variables: 819 Notification: Performance of Generate backend data structure: time 0.008702/0.292, allocations: 3.712 MB / 369.3 MB, free: 8.852 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.558e-05/0.292, allocations: 12.03 kB / 369.3 MB, free: 8.84 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00426/0.2963, allocations: 0.8163 MB / 370.1 MB, free: 8.02 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003739/0.3, allocations: 2.268 MB / 372.4 MB, free: 5.695 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000173/0.3002, allocations: 226.6 kB / 372.6 MB, free: 5.473 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005084/0.3007, allocations: 324 kB / 372.9 MB, free: 5.156 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007169/0.3079, allocations: 4.258 MB / 377.2 MB, free: 0.8477 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.017e-05/0.308, allocations: 7.938 kB / 377.2 MB, free: 0.8398 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003035/0.3083, allocations: 124 kB / 377.3 MB, free: 0.7188 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001571/0.3085, allocations: 150.2 kB / 377.5 MB, free: 0.5703 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007448/0.3159, allocations: 3.671 MB / 381.1 MB, free: 12.89 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01993/0.3359, allocations: 13.58 MB / 394.7 MB, free: 14.97 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006311/0.3422, allocations: 6.877 MB / 401.6 MB, free: 7.184 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002282/0.3446, allocations: 1.426 MB / 403 MB, free: 5.758 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005772/0.3503, allocations: 3.647 MB / 406.7 MB, free: 2.023 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.688e-05/0.3504, allocations: 47.56 kB / 406.7 MB, free: 1.969 MB / 334.1 MB Notification: Performance of pre-optimization done (n=124): time 3.397e-06/0.3504, allocations: 0 / 406.7 MB, free: 1.969 MB / 334.1 MB Notification: Performance of matching and sorting (n=144): time 0.0134/0.3638, allocations: 6.696 MB / 413.4 MB, free: 11.07 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.873e-05/0.3639, allocations: 68.72 kB / 413.5 MB, free: 10.99 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00281/0.3667, allocations: 1.851 MB / 415.3 MB, free: 9.141 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001146/0.3669, allocations: 49.7 kB / 415.4 MB, free: 9.086 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009332/0.3678, allocations: 1.419 MB / 416.8 MB, free: 7.648 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003812/0.3682, allocations: 496.8 kB / 417.3 MB, free: 7.156 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001876/0.3684, allocations: 141.6 kB / 417.4 MB, free: 7.012 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.034e-05/0.3685, allocations: 301.1 kB / 417.7 MB, free: 6.715 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00118/0.3697, allocations: 0.7769 MB / 418.5 MB, free: 5.941 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001616/0.3713, allocations: 1.224 MB / 419.7 MB, free: 4.527 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002871/0.3742, allocations: 2.123 MB / 421.8 MB, free: 2.211 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.544e-06/0.3742, allocations: 4 kB / 421.8 MB, free: 2.207 MB / 350.1 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.004387/0.3786, allocations: 2.682 MB / 424.5 MB, free: 15.51 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.521e-05/0.3786, allocations: 12.22 kB / 424.5 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.416e-05/0.3787, allocations: 20 kB / 424.5 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001286/0.38, allocations: 0.4975 MB / 425 MB, free: 14.97 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001404/0.3814, allocations: 391.4 kB / 425.4 MB, free: 14.59 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007497/0.3889, allocations: 6.41 MB / 431.8 MB, free: 7.902 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001376/0.3903, allocations: 79.95 kB / 431.9 MB, free: 7.824 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001162/0.3904, allocations: 72 kB / 432 MB, free: 7.754 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (180): * Single equations (assignments): 178 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (7,31,61.2%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001743/0.3922, allocations: 1.048 MB / 433 MB, free: 6.695 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002925/0.3925, allocations: 197.6 kB / 433.2 MB, free: 6.5 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004061/0.3965, allocations: 2.519 MB / 435.7 MB, free: 3.914 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.286e-05/0.3966, allocations: 16 kB / 435.8 MB, free: 3.898 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.489e-05/0.3966, allocations: 8 kB / 435.8 MB, free: 3.891 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.517e-05/0.3966, allocations: 7.969 kB / 435.8 MB, free: 3.883 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007995/0.4046, allocations: 5.544 MB / 441.3 MB, free: 14.2 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.366e-06/0.4046, allocations: 4 kB / 441.3 MB, free: 14.2 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00096/0.4056, allocations: 223.9 kB / 441.5 MB, free: 13.98 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00127/0.4069, allocations: 0.492 MB / 442 MB, free: 13.47 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.805e-05/0.407, allocations: 35.98 kB / 442.1 MB, free: 13.44 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009971/0.417, allocations: 10.48 MB / 452.5 MB, free: 2.281 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.829e-06/0.417, allocations: 4.031 kB / 452.5 MB, free: 2.277 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1805/0.5975, allocations: 3.586 MB / 456.1 MB, free: 108.1 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009949/0.5985, allocations: 460.9 kB / 456.6 MB, free: 108 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002404/0.5988, allocations: 31.06 kB / 456.6 MB, free: 108 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009097/0.5997, allocations: 70.22 kB / 456.7 MB, free: 108 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002707/0.6, allocations: 113.9 kB / 456.8 MB, free: 108 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.98e-05/0.6001, allocations: 42.2 kB / 456.8 MB, free: 108 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001792/0.6019, allocations: 1.284 MB / 458.1 MB, free: 107.9 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.6019, allocations: 0 / 458.1 MB, free: 107.9 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002086/0.604, allocations: 0.5855 MB / 458.7 MB, free: 107.9 MB / 382.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.stator.strayReluctance.Phi.re,aimc.stator.strayReluctance.Phi.im,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (102): * Single equations (assignments): 97 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(2,12,100.0%), (1,1,100.0%), (1,12,100.0%), (1,8,100.0%), (1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000326/0.6043, allocations: 159.9 kB / 458.9 MB, free: 107.8 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003879/0.6082, allocations: 2.406 MB / 461.3 MB, free: 106.9 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.54e-06/0.6082, allocations: 4 kB / 461.3 MB, free: 106.9 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002054/0.6103, allocations: 1.727 MB / 463 MB, free: 105.9 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002696/0.613, allocations: 0.4977 MB / 463.5 MB, free: 105.7 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009422/0.6224, allocations: 7.457 MB / 471 MB, free: 101.5 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001811/0.6243, allocations: 2.366 MB / 473.3 MB, free: 100.4 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001367/0.6257, allocations: 421.4 kB / 473.7 MB, free: 100.3 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003164/0.626, allocations: 125.7 kB / 473.9 MB, free: 100.3 MB / 382.1 MB Notification: Performance of SimCode: time 7.82e-07/0.626, allocations: 0 / 473.9 MB, free: 100.3 MB / 382.1 MB Notification: Performance of Templates: time 0.04313/0.6691, allocations: 29.36 MB / 0.4914 GB, free: 71.87 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.makefile (rm -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.sim & ./Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe 2>&1)