Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.0009156/0.0009156, allocations: 98.03 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.007/0.007, allocations: 168.9 kB / 16.26 MB, free: 6.648 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.485/1.485, allocations: 205.4 MB / 222.4 MB, free: 5.57 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.0004505/0.0004506, allocations: 8 kB / 279.5 MB, free: 12.51 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2272/0.2276, allocations: 47.58 MB / 327 MB, free: 1.406 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize): time 0.01123/0.2389, allocations: 12.06 MB / 339.1 MB, free: 7.273 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.007659/0.2466, allocations: 4.184 MB / 343.3 MB, free: 3.078 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002039/0.2487, allocations: 67.69 kB / 343.3 MB, free: 3.012 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002278/0.251, allocations: 0.8474 MB / 344.2 MB, free: 2.16 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003439/0.2544, allocations: 1.162 MB / 345.3 MB, free: 0.9922 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001648/0.2561, allocations: 0.7798 MB / 346.1 MB, free: 216 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.004746/0.2608, allocations: 4.343 MB / 350.5 MB, free: 11.85 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00299/0.2638, allocations: 2.615 MB / 353.1 MB, free: 9.164 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001493/0.2653, allocations: 1.303 MB / 354.4 MB, free: 7.855 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001937/0.2673, allocations: 1.715 MB / 356.1 MB, free: 6.133 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003057/0.2676, allocations: 208 kB / 356.3 MB, free: 5.93 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008463/0.2685, allocations: 419.7 kB / 356.7 MB, free: 5.52 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007137/0.2692, allocations: 0.7938 MB / 357.5 MB, free: 4.723 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001598/0.2708, allocations: 1.751 MB / 359.3 MB, free: 2.957 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005002/0.2758, allocations: 6.314 MB / 365.6 MB, free: 12.62 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.2758, allocations: 0 / 365.6 MB, free: 12.62 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.2758, allocations: 0 / 365.6 MB, free: 12.62 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.205e-05/0.2759, allocations: 0 / 365.6 MB, free: 12.62 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.008287/0.2842, allocations: 3.716 MB / 369.3 MB, free: 8.832 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.258e-05/0.2843, allocations: 12.03 kB / 369.3 MB, free: 8.82 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004149/0.2884, allocations: 0.8164 MB / 370.1 MB, free: 8 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003424/0.2919, allocations: 2.264 MB / 372.4 MB, free: 5.68 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001639/0.292, allocations: 234.6 kB / 372.6 MB, free: 5.449 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004607/0.2925, allocations: 316 kB / 372.9 MB, free: 5.141 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006831/0.2993, allocations: 4.266 MB / 377.2 MB, free: 0.8203 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.583e-05/0.2994, allocations: 7.938 kB / 377.2 MB, free: 0.8125 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002999/0.2997, allocations: 128 kB / 377.3 MB, free: 0.6875 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001298/0.2999, allocations: 146.2 kB / 377.5 MB, free: 0.543 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005969/0.3058, allocations: 3.667 MB / 381.1 MB, free: 12.87 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0188/0.3247, allocations: 13.58 MB / 394.7 MB, free: 14.95 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006543/0.3312, allocations: 6.878 MB / 401.6 MB, free: 7.16 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002351/0.3336, allocations: 1.421 MB / 403 MB, free: 5.738 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005712/0.3393, allocations: 3.647 MB / 406.7 MB, free: 2.004 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.465e-05/0.3394, allocations: 47.55 kB / 406.7 MB, free: 1.949 MB / 334.1 MB Notification: Performance of pre-optimization done (n=124): time 4.017e-06/0.3394, allocations: 0 / 406.7 MB, free: 1.949 MB / 334.1 MB Notification: Performance of matching and sorting (n=144): time 0.01298/0.3524, allocations: 6.692 MB / 413.4 MB, free: 11.05 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.54e-05/0.3525, allocations: 72.72 kB / 413.5 MB, free: 10.97 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002615/0.3551, allocations: 1.859 MB / 415.3 MB, free: 9.113 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001105/0.3552, allocations: 45.7 kB / 415.4 MB, free: 9.062 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009689/0.3562, allocations: 1.416 MB / 416.8 MB, free: 7.629 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003854/0.3566, allocations: 0.489 MB / 417.3 MB, free: 7.133 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000194/0.3568, allocations: 137.6 kB / 417.4 MB, free: 6.992 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.828e-05/0.3569, allocations: 301.1 kB / 417.7 MB, free: 6.695 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001231/0.3581, allocations: 0.773 MB / 418.5 MB, free: 5.926 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001506/0.3596, allocations: 1.228 MB / 419.7 MB, free: 4.508 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002855/0.3625, allocations: 2.127 MB / 421.8 MB, free: 2.188 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.546e-06/0.3625, allocations: 4 kB / 421.8 MB, free: 2.184 MB / 350.1 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.004517/0.367, allocations: 2.682 MB / 424.5 MB, free: 15.48 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.488e-05/0.3671, allocations: 15.94 kB / 424.5 MB, free: 15.47 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.986e-05/0.3671, allocations: 16 kB / 424.5 MB, free: 15.45 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001333/0.3685, allocations: 0.49 MB / 425 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001484/0.3699, allocations: 399.4 kB / 425.4 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007887/0.3778, allocations: 6.398 MB / 431.8 MB, free: 7.891 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001289/0.3792, allocations: 75.95 kB / 431.9 MB, free: 7.816 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000128/0.3793, allocations: 75.98 kB / 432 MB, free: 7.742 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.00178/0.3811, allocations: 1.044 MB / 433 MB, free: 6.688 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004376/0.3815, allocations: 197.6 kB / 433.2 MB, free: 6.492 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0046/0.3861, allocations: 2.531 MB / 435.7 MB, free: 3.895 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.81e-05/0.3862, allocations: 16 kB / 435.8 MB, free: 3.879 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.912e-05/0.3862, allocations: 4 kB / 435.8 MB, free: 3.875 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.601e-05/0.3862, allocations: 7.969 kB / 435.8 MB, free: 3.867 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00933/0.3956, allocations: 5.552 MB / 441.3 MB, free: 14.18 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.582e-06/0.3956, allocations: 0 / 441.3 MB, free: 14.18 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001001/0.3966, allocations: 223.9 kB / 441.5 MB, free: 13.96 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001281/0.3979, allocations: 0.4959 MB / 442 MB, free: 13.45 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.36e-05/0.398, allocations: 35.98 kB / 442.1 MB, free: 13.41 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0106/0.4086, allocations: 10.48 MB / 452.5 MB, free: 2.262 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.4087, allocations: 4.094 kB / 452.5 MB, free: 2.258 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1668/0.5754, allocations: 3.581 MB / 456.1 MB, free: 108.2 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001815/0.5773, allocations: 458.4 kB / 456.6 MB, free: 108.1 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006454/0.578, allocations: 29.59 kB / 456.6 MB, free: 108.1 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001285/0.5793, allocations: 77.06 kB / 456.7 MB, free: 108.1 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004372/0.5797, allocations: 114 kB / 456.8 MB, free: 108.1 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001095/0.5799, allocations: 40.33 kB / 456.8 MB, free: 108.1 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002151/0.582, allocations: 1.289 MB / 458.1 MB, free: 108 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.582, allocations: 0 / 458.1 MB, free: 108 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002268/0.5843, allocations: 0.5841 MB / 458.7 MB, free: 108 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.000329/0.5846, allocations: 163.5 kB / 458.9 MB, free: 107.9 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003905/0.5885, allocations: 2.404 MB / 461.3 MB, free: 107 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/0.5886, allocations: 0 / 461.3 MB, free: 107 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002013/0.5906, allocations: 1.733 MB / 463 MB, free: 106 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00282/0.5934, allocations: 493.7 kB / 463.5 MB, free: 105.9 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0094/0.6028, allocations: 7.463 MB / 470.9 MB, free: 101.6 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001624/0.6045, allocations: 2.365 MB / 473.3 MB, free: 100.5 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001343/0.6059, allocations: 421.4 kB / 473.7 MB, free: 100.4 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003187/0.6062, allocations: 132.5 kB / 473.9 MB, free: 100.4 MB / 382.1 MB Notification: Performance of SimCode: time 5.81e-07/0.6062, allocations: 0 / 473.9 MB, free: 100.4 MB / 382.1 MB Notification: Performance of Templates: time 0.04463/0.6508, allocations: 29.36 MB / 0.4914 GB, free: 71.87 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.sim & ./Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe 2>&1)