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.001436/0.001436, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.00113/0.00113, allocations: 192.4 kB / 16.25 MB, free: 6.625 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.342/1.342, allocations: 205.1 MB / 222.1 MB, free: 4.695 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.001215/0.001215, allocations: 55.92 kB / 278.2 MB, free: 12.68 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2031/0.2043, allocations: 46.63 MB / 324.9 MB, free: 1.945 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize): time 0.01339/0.2177, allocations: 12.68 MB / 337.5 MB, free: 7.391 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.008072/0.2258, allocations: 4.223 MB / 341.8 MB, free: 3.156 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003177/0.2291, allocations: 63.75 kB / 341.8 MB, free: 3.094 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003663/0.2328, allocations: 0.8513 MB / 342.7 MB, free: 2.238 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005739/0.2386, allocations: 1.162 MB / 343.8 MB, free: 1.07 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002907/0.2415, allocations: 0.7875 MB / 344.6 MB, free: 288 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.006957/0.2485, allocations: 4.18 MB / 348.8 MB, free: 12.08 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005228/0.2537, allocations: 3.188 MB / 352 MB, free: 8.82 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003003/0.2568, allocations: 1.76 MB / 353.8 MB, free: 7.055 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003294/0.2601, allocations: 2.098 MB / 355.9 MB, free: 4.949 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001338/0.2615, allocations: 0.5039 MB / 356.4 MB, free: 4.445 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002387/0.2639, allocations: 0.7185 MB / 357.1 MB, free: 3.727 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001572/0.2655, allocations: 1.138 MB / 358.2 MB, free: 2.586 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003638/0.2691, allocations: 2.116 MB / 360.3 MB, free: 472 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007925/0.2771, allocations: 6.664 MB / 367 MB, free: 9.777 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.462e-06/0.2771, allocations: 0 / 367 MB, free: 9.777 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.2771, allocations: 0 / 367 MB, free: 9.777 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001963/0.2773, allocations: 8 kB / 367 MB, free: 9.77 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.01221/0.2896, allocations: 4.382 MB / 371.4 MB, free: 5.312 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.663e-05/0.2896, allocations: 11.89 kB / 371.4 MB, free: 5.301 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004691/0.2943, allocations: 0.8163 MB / 372.2 MB, free: 4.48 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004626/0.299, allocations: 2.257 MB / 374.5 MB, free: 2.168 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002196/0.2993, allocations: 242.6 kB / 374.7 MB, free: 1.93 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008181/0.3001, allocations: 320 kB / 375 MB, free: 1.617 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007775/0.3079, allocations: 4.254 MB / 379.3 MB, free: 13.31 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.885e-05/0.308, allocations: 3.906 kB / 379.3 MB, free: 13.3 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003187/0.3083, allocations: 128 kB / 379.4 MB, free: 13.18 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001387/0.3084, allocations: 146.2 kB / 379.5 MB, free: 13.04 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006549/0.315, allocations: 3.651 MB / 383.2 MB, free: 9.375 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0227/0.3377, allocations: 13.5 MB / 396.7 MB, free: 11.53 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006525/0.3443, allocations: 6.886 MB / 403.6 MB, free: 3.738 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002408/0.3468, allocations: 1.406 MB / 405 MB, free: 2.332 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00622/0.353, allocations: 3.639 MB / 408.6 MB, free: 14.6 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.242e-05/0.3531, allocations: 47.56 kB / 408.7 MB, free: 14.55 MB / 350.1 MB Notification: Performance of pre-optimization done (n=124): time 3.727e-06/0.3531, allocations: 0 / 408.7 MB, free: 14.55 MB / 350.1 MB Notification: Performance of matching and sorting (n=144): time 0.01398/0.3671, allocations: 6.626 MB / 415.3 MB, free: 7.723 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.682e-05/0.3672, allocations: 68.72 kB / 415.4 MB, free: 7.645 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002624/0.3698, allocations: 1.863 MB / 417.2 MB, free: 5.781 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001467/0.37, allocations: 53.7 kB / 417.3 MB, free: 5.723 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009924/0.371, allocations: 1.412 MB / 418.7 MB, free: 4.293 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004397/0.3714, allocations: 0.493 MB / 419.2 MB, free: 3.793 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000472/0.3719, allocations: 303.3 kB / 419.5 MB, free: 3.492 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001133/0.372, allocations: 301.1 kB / 419.8 MB, free: 3.195 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001172/0.3732, allocations: 0.7613 MB / 420.5 MB, free: 2.434 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001367/0.3746, allocations: 1.228 MB / 421.8 MB, free: 1.016 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002628/0.3772, allocations: 2.111 MB / 423.9 MB, free: 14.71 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.617e-06/0.3772, allocations: 4 kB / 423.9 MB, free: 14.71 MB / 366.1 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.004487/0.3817, allocations: 2.655 MB / 426.5 MB, free: 12.04 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.307e-05/0.3818, allocations: 19.88 kB / 426.6 MB, free: 12.02 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.262e-05/0.3818, allocations: 15.94 kB / 426.6 MB, free: 12 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001345/0.3832, allocations: 0.5016 MB / 427.1 MB, free: 11.49 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001554/0.3847, allocations: 387.4 kB / 427.4 MB, free: 11.11 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008302/0.3931, allocations: 6.927 MB / 434.4 MB, free: 3.898 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001551/0.3946, allocations: 79.89 kB / 434.5 MB, free: 3.82 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001505/0.3948, allocations: 67.98 kB / 434.5 MB, free: 3.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.001779/0.3966, allocations: 1.056 MB / 435.6 MB, free: 2.688 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004267/0.397, allocations: 193.6 kB / 435.8 MB, free: 2.496 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004351/0.4014, allocations: 2.496 MB / 438.3 MB, free: 15.93 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.491e-05/0.4014, allocations: 19.94 kB / 438.3 MB, free: 15.91 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.015e-05/0.4014, allocations: 4 kB / 438.3 MB, free: 15.91 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.554e-05/0.4015, allocations: 11.97 kB / 438.3 MB, free: 15.9 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008618/0.4101, allocations: 5.54 MB / 443.8 MB, free: 10.23 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.959e-06/0.4101, allocations: 8 kB / 443.8 MB, free: 10.22 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001007/0.4112, allocations: 211.9 kB / 444 MB, free: 10.01 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001261/0.4124, allocations: 0.4998 MB / 444.5 MB, free: 9.496 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001033/0.4125, allocations: 35.98 kB / 444.6 MB, free: 9.461 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1885/0.6011, allocations: 11.41 MB / 456 MB, free: 108.5 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.232e-06/0.6011, allocations: 6.344 kB / 456 MB, free: 108.5 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005188/0.6063, allocations: 3.564 MB / 459.6 MB, free: 107.3 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008442/0.6072, allocations: 455.4 kB / 460 MB, free: 107.1 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000284/0.6075, allocations: 29.66 kB / 460 MB, free: 107.1 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009246/0.6084, allocations: 69.28 kB / 460.1 MB, free: 107.1 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002929/0.6087, allocations: 116.4 kB / 460.2 MB, free: 107.1 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.96e-05/0.6088, allocations: 37.41 kB / 460.3 MB, free: 107 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001782/0.6106, allocations: 1.292 MB / 461.5 MB, free: 106.5 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.6106, allocations: 3.656 kB / 461.6 MB, free: 106.5 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001983/0.6126, allocations: 0.5876 MB / 462.1 MB, free: 106.5 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.0002993/0.6129, allocations: 168 kB / 462.3 MB, free: 106.4 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005024/0.6179, allocations: 2.836 MB / 465.1 MB, free: 105.3 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.871e-06/0.618, allocations: 4 kB / 465.1 MB, free: 105.3 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002067/0.62, allocations: 1.722 MB / 466.9 MB, free: 104.3 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002206/0.6223, allocations: 0.5127 MB / 467.4 MB, free: 104.1 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009406/0.6317, allocations: 7.317 MB / 474.7 MB, free: 99.2 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00152/0.6332, allocations: 2.369 MB / 477.1 MB, free: 97.28 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001365/0.6346, allocations: 413.1 kB / 477.5 MB, free: 96.98 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000322/0.6349, allocations: 131.1 kB / 477.6 MB, free: 96.86 MB / 382.1 MB Notification: Performance of SimCode: time 7.41e-07/0.6349, allocations: 0 / 477.6 MB, free: 96.86 MB / 382.1 MB Notification: Performance of Templates: time 0.04574/0.6807, allocations: 30.91 MB / 0.4966 GB, free: 66.01 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)