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.001002/0.001002, allocations: 92.31 kB / 15.06 MB, free: 1.098 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.001242/0.001242, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.405/1.405, allocations: 205.4 MB / 222.1 MB, free: 5.52 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.0004382/0.0004383, allocations: 8 kB / 278.9 MB, free: 12.69 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1981/0.1986, allocations: 47.58 MB / 326.5 MB, free: 1.418 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize): time 0.01099/0.2096, allocations: 11.28 MB / 337.8 MB, free: 8.168 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0065/0.2161, allocations: 3.976 MB / 341.7 MB, free: 4.184 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001264/0.2174, allocations: 59.75 kB / 341.8 MB, free: 4.125 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001899/0.2193, allocations: 0.7263 MB / 342.5 MB, free: 3.395 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002674/0.222, allocations: 1.057 MB / 343.6 MB, free: 2.332 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001476/0.2235, allocations: 0.5847 MB / 344.2 MB, free: 1.746 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.004584/0.2281, allocations: 4.055 MB / 348.2 MB, free: 13.67 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002538/0.2307, allocations: 2.177 MB / 350.4 MB, free: 11.46 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001817/0.2325, allocations: 1.28 MB / 351.7 MB, free: 10.17 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001965/0.2345, allocations: 1.646 MB / 353.3 MB, free: 8.52 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003336/0.2348, allocations: 208 kB / 353.5 MB, free: 8.316 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00086/0.2357, allocations: 391.8 kB / 353.9 MB, free: 7.934 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006745/0.2364, allocations: 0.7784 MB / 354.7 MB, free: 7.152 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006924/0.2371, allocations: 0.7421 MB / 355.4 MB, free: 6.402 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004927/0.242, allocations: 5.516 MB / 360.9 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.541e-06/0.242, allocations: 0 / 360.9 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.546e-06/0.242, allocations: 0 / 360.9 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of Transformations before backend: time 0.0001262/0.2422, allocations: 3.938 kB / 360.9 MB, free: 0.8672 MB / 286.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.008669/0.2508, allocations: 3.755 MB / 364.7 MB, free: 13.04 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.87e-05/0.2509, allocations: 16.02 kB / 364.7 MB, free: 13.02 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004359/0.2553, allocations: 0.8154 MB / 365.5 MB, free: 12.2 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003917/0.2592, allocations: 2.198 MB / 367.7 MB, free: 9.949 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001682/0.2594, allocations: 238.2 kB / 368 MB, free: 9.715 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000534/0.2599, allocations: 311.9 kB / 368.3 MB, free: 9.41 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006995/0.2669, allocations: 4.234 MB / 372.5 MB, free: 5.125 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.936e-05/0.267, allocations: 7.984 kB / 372.5 MB, free: 5.117 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002796/0.2673, allocations: 128 kB / 372.6 MB, free: 4.992 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001367/0.2674, allocations: 146.2 kB / 372.8 MB, free: 4.848 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006069/0.2735, allocations: 3.647 MB / 376.4 MB, free: 1.191 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01872/0.2922, allocations: 13.56 MB / 390 MB, free: 3.277 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006411/0.2987, allocations: 6.873 MB / 396.9 MB, free: 11.5 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002348/0.3011, allocations: 1.43 MB / 398.3 MB, free: 10.07 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005723/0.3068, allocations: 3.647 MB / 401.9 MB, free: 6.34 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.497e-05/0.3069, allocations: 47.56 kB / 402 MB, free: 6.285 MB / 334.1 MB Notification: Performance of pre-optimization done (n=124): time 3.887e-06/0.3069, allocations: 3.984 kB / 402 MB, free: 6.281 MB / 334.1 MB Notification: Performance of matching and sorting (n=144): time 0.01316/0.32, allocations: 6.716 MB / 408.7 MB, free: 15.36 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.378e-05/0.3201, allocations: 68.72 kB / 408.8 MB, free: 15.29 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002663/0.3228, allocations: 1.843 MB / 410.6 MB, free: 13.44 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001051/0.3229, allocations: 53.7 kB / 410.7 MB, free: 13.38 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009955/0.3239, allocations: 1.412 MB / 412.1 MB, free: 11.95 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000404/0.3243, allocations: 0.4968 MB / 412.6 MB, free: 11.45 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.964e-05/0.3244, allocations: 28 kB / 412.6 MB, free: 11.42 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001602/0.3246, allocations: 377.9 kB / 413 MB, free: 11.05 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001253/0.3259, allocations: 0.7652 MB / 413.7 MB, free: 10.28 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001535/0.3274, allocations: 1.228 MB / 415 MB, free: 8.859 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001488/0.3289, allocations: 0.9785 MB / 415.9 MB, free: 7.879 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.554e-06/0.3289, allocations: 4 kB / 415.9 MB, free: 7.875 MB / 350.1 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.004464/0.3334, allocations: 2.659 MB / 418.6 MB, free: 5.199 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.805e-05/0.3334, allocations: 15.95 kB / 418.6 MB, free: 5.184 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.175e-05/0.3335, allocations: 15.98 kB / 418.6 MB, free: 5.168 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001317/0.3348, allocations: 0.5095 MB / 419.1 MB, free: 4.652 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00152/0.3363, allocations: 391.5 kB / 419.5 MB, free: 4.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008007/0.3443, allocations: 6.378 MB / 425.9 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001294/0.3456, allocations: 87.97 kB / 426 MB, free: 13.53 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001419/0.3458, allocations: 83.92 kB / 426.1 MB, free: 13.45 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(8,56.2%) 30} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001724/0.3475, allocations: 1.04 MB / 427.1 MB, free: 12.4 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003149/0.3479, allocations: 193.7 kB / 427.3 MB, free: 12.21 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004183/0.352, allocations: 2.519 MB / 429.8 MB, free: 9.621 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-05/0.3521, allocations: 12 kB / 429.8 MB, free: 9.609 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.367e-06/0.3521, allocations: 8 kB / 429.8 MB, free: 9.602 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.429e-05/0.3521, allocations: 7.969 kB / 429.8 MB, free: 9.594 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008305/0.3604, allocations: 5.544 MB / 435.4 MB, free: 3.922 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.881e-06/0.3605, allocations: 0 / 435.4 MB, free: 3.922 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009798/0.3614, allocations: 223.9 kB / 435.6 MB, free: 3.703 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001224/0.3627, allocations: 0.4998 MB / 436.1 MB, free: 3.188 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.2e-05/0.3628, allocations: 35.98 kB / 436.1 MB, free: 3.152 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01045/0.3733, allocations: 10.45 MB / 446.6 MB, free: 8.027 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.418e-06/0.3733, allocations: 4.031 kB / 446.6 MB, free: 8.023 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005519/0.3788, allocations: 3.572 MB / 450.2 MB, free: 4.363 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009326/0.3798, allocations: 466.5 kB / 450.6 MB, free: 3.887 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002354/0.38, allocations: 35.95 kB / 450.7 MB, free: 3.852 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008272/0.3809, allocations: 71.95 kB / 450.7 MB, free: 3.781 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00024/0.3811, allocations: 113.1 kB / 450.8 MB, free: 3.668 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.379e-05/0.3812, allocations: 39.98 kB / 450.9 MB, free: 3.629 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001956/0.3832, allocations: 1.27 MB / 452.1 MB, free: 2.367 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.91e-07/0.3832, allocations: 0 / 452.1 MB, free: 2.367 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002001/0.3852, allocations: 0.5859 MB / 452.7 MB, free: 1.781 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 (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(2,100.0%) 12,(1,100.0%) 1,(1,100.0%) 12,(1,100.0%) 8,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002854/0.3855, allocations: 155.2 kB / 452.9 MB, free: 1.621 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.1499/0.5354, allocations: 2.397 MB / 455.3 MB, free: 111.9 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.823e-06/0.5355, allocations: 1.188 kB / 455.3 MB, free: 111.9 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002626/0.5381, allocations: 1.717 MB / 457 MB, free: 111.3 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002246/0.5404, allocations: 0.5029 MB / 457.5 MB, free: 111.3 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00907/0.5494, allocations: 7.12 MB / 464.6 MB, free: 107.9 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001653/0.5511, allocations: 2.367 MB / 467 MB, free: 106.8 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001281/0.5524, allocations: 418.9 kB / 467.4 MB, free: 106.7 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003108/0.5527, allocations: 129.7 kB / 467.5 MB, free: 106.7 MB / 382.1 MB Notification: Performance of SimCode: time 6.71e-07/0.5527, allocations: 6.438 kB / 467.5 MB, free: 106.7 MB / 382.1 MB Notification: Performance of Templates: time 0.04057/0.5933, allocations: 28.73 MB / 496.3 MB, free: 80.31 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)