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.001072/0.001072, allocations: 86.88 kB / 15.06 MB, free: 1.09 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.001119/0.001119, allocations: 168.7 kB / 15.95 MB, free: 204 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.629/1.629, allocations: 205.4 MB / 222.1 MB, free: 5.645 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.0004671/0.0004671, allocations: 12 kB / 278.9 MB, free: 12.81 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2493/0.2498, allocations: 47.59 MB / 326.5 MB, free: 1.398 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize): time 0.01462/0.2645, allocations: 11.27 MB / 337.8 MB, free: 8.199 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0101/0.2746, allocations: 3.979 MB / 341.7 MB, free: 4.211 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003039/0.2777, allocations: 63.75 kB / 341.8 MB, free: 4.148 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003931/0.2817, allocations: 0.7186 MB / 342.5 MB, free: 3.426 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004459/0.2861, allocations: 1.053 MB / 343.6 MB, free: 2.367 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002276/0.2884, allocations: 0.5924 MB / 344.2 MB, free: 1.773 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.007385/0.2958, allocations: 4.055 MB / 348.2 MB, free: 13.7 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004539/0.3004, allocations: 2.169 MB / 350.4 MB, free: 11.49 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002721/0.3031, allocations: 1.284 MB / 351.7 MB, free: 10.2 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003418/0.3066, allocations: 1.638 MB / 353.3 MB, free: 8.555 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009373/0.3075, allocations: 212 kB / 353.5 MB, free: 8.348 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001888/0.3094, allocations: 399.7 kB / 353.9 MB, free: 7.957 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001138/0.3106, allocations: 0.7668 MB / 354.7 MB, free: 7.188 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001308/0.3119, allocations: 0.7382 MB / 355.4 MB, free: 6.441 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006132/0.3181, allocations: 5.528 MB / 360.9 MB, free: 0.9023 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.3181, allocations: 4 kB / 360.9 MB, free: 0.8984 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.3181, allocations: 0 / 360.9 MB, free: 0.8984 MB / 286.1 MB Notification: Performance of Transformations before backend: time 0.0001007/0.3182, allocations: 0 / 360.9 MB, free: 0.8984 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.008311/0.3265, allocations: 3.755 MB / 364.7 MB, free: 13.07 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.954e-05/0.3266, allocations: 8.031 kB / 364.7 MB, free: 13.06 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003998/0.3306, allocations: 0.8154 MB / 365.5 MB, free: 12.24 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003746/0.3343, allocations: 2.202 MB / 367.7 MB, free: 9.984 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002025/0.3345, allocations: 230.2 kB / 367.9 MB, free: 9.758 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000439/0.335, allocations: 315.9 kB / 368.3 MB, free: 9.449 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007219/0.3422, allocations: 4.238 MB / 372.5 MB, free: 5.16 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.854e-05/0.3423, allocations: 7.875 kB / 372.5 MB, free: 5.152 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002821/0.3426, allocations: 139.9 kB / 372.6 MB, free: 5.016 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001389/0.3427, allocations: 150.2 kB / 372.8 MB, free: 4.867 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006077/0.3488, allocations: 3.64 MB / 376.4 MB, free: 1.219 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02049/0.3693, allocations: 13.56 MB / 390 MB, free: 3.301 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006174/0.3755, allocations: 6.865 MB / 396.9 MB, free: 11.54 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002319/0.3779, allocations: 1.426 MB / 398.3 MB, free: 10.11 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006455/0.3844, allocations: 3.647 MB / 401.9 MB, free: 6.375 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.877e-05/0.3844, allocations: 51.55 kB / 402 MB, free: 6.316 MB / 334.1 MB Notification: Performance of pre-optimization done (n=124): time 3.567e-06/0.3844, allocations: 0 / 402 MB, free: 6.316 MB / 334.1 MB Notification: Performance of matching and sorting (n=144): time 0.01369/0.3981, allocations: 6.712 MB / 408.7 MB, free: 15.4 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.976e-05/0.3982, allocations: 68.72 kB / 408.8 MB, free: 15.32 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002803/0.401, allocations: 1.839 MB / 410.6 MB, free: 13.48 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001102/0.4012, allocations: 57.64 kB / 410.7 MB, free: 13.42 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001104/0.4023, allocations: 1.423 MB / 412.1 MB, free: 11.98 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003963/0.4027, allocations: 0.489 MB / 412.6 MB, free: 11.49 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.186e-05/0.4028, allocations: 36 kB / 412.6 MB, free: 11.45 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001742/0.403, allocations: 377.8 kB / 413 MB, free: 11.08 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001221/0.4042, allocations: 0.7652 MB / 413.7 MB, free: 10.31 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001565/0.4058, allocations: 1.228 MB / 415 MB, free: 8.891 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001527/0.4073, allocations: 0.9785 MB / 415.9 MB, free: 7.91 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.944e-06/0.4073, allocations: 4 kB / 415.9 MB, free: 7.906 MB / 350.1 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.004648/0.412, allocations: 2.663 MB / 418.6 MB, free: 5.227 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.583e-05/0.412, allocations: 19.94 kB / 418.6 MB, free: 5.207 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.941e-05/0.4121, allocations: 12 kB / 418.6 MB, free: 5.195 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001342/0.4134, allocations: 0.5015 MB / 419.1 MB, free: 4.688 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001485/0.4149, allocations: 399.4 kB / 419.5 MB, free: 4.297 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00884/0.4238, allocations: 6.378 MB / 425.9 MB, free: 13.65 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001989/0.4258, allocations: 83.81 kB / 426 MB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003122/0.4261, allocations: 72 kB / 426.1 MB, free: 13.5 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.002852/0.429, allocations: 1.048 MB / 427.1 MB, free: 12.44 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006231/0.4296, allocations: 193.7 kB / 427.3 MB, free: 12.25 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004431/0.4341, allocations: 2.508 MB / 429.8 MB, free: 9.668 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.347e-05/0.4341, allocations: 16 kB / 429.8 MB, free: 9.652 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.029e-05/0.4341, allocations: 4 kB / 429.8 MB, free: 9.648 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.401e-05/0.4341, allocations: 7.969 kB / 429.8 MB, free: 9.641 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008902/0.443, allocations: 5.555 MB / 435.4 MB, free: 3.953 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.144e-06/0.4431, allocations: 0 / 435.4 MB, free: 3.953 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009777/0.4441, allocations: 223.9 kB / 435.6 MB, free: 3.734 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001268/0.4454, allocations: 0.492 MB / 436.1 MB, free: 3.227 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000106/0.4455, allocations: 35.98 kB / 436.1 MB, free: 3.191 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01082/0.4563, allocations: 10.45 MB / 446.6 MB, free: 8.066 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.599e-06/0.4563, allocations: 4.406 kB / 446.6 MB, free: 8.062 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005716/0.4621, allocations: 3.584 MB / 450.2 MB, free: 4.391 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001135/0.4632, allocations: 458.6 kB / 450.6 MB, free: 3.922 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004008/0.4636, allocations: 31.95 kB / 450.7 MB, free: 3.891 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009284/0.4646, allocations: 83.88 kB / 450.7 MB, free: 3.809 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002429/0.4648, allocations: 105.1 kB / 450.8 MB, free: 3.703 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.936e-05/0.4649, allocations: 39.98 kB / 450.9 MB, free: 3.664 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002254/0.4672, allocations: 1.278 MB / 452.2 MB, free: 2.395 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.4672, allocations: 0 / 452.2 MB, free: 2.395 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002267/0.4695, allocations: 0.5859 MB / 452.7 MB, free: 1.809 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.0003599/0.4698, allocations: 163.2 kB / 452.9 MB, free: 1.641 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.183/0.6529, allocations: 2.392 MB / 455.3 MB, free: 110.6 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.152e-05/0.6529, allocations: 3.766 kB / 455.3 MB, free: 110.6 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003417/0.6564, allocations: 1.723 MB / 457 MB, free: 110 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002764/0.6592, allocations: 498.6 kB / 457.5 MB, free: 109.9 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01063/0.6698, allocations: 7.116 MB / 464.6 MB, free: 106.5 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001816/0.6717, allocations: 2.375 MB / 467 MB, free: 105.4 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001585/0.6733, allocations: 418.1 kB / 467.4 MB, free: 105.4 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000364/0.6736, allocations: 127.8 kB / 467.5 MB, free: 105.4 MB / 382.1 MB Notification: Performance of SimCode: time 1.693e-06/0.6736, allocations: 0 / 467.5 MB, free: 105.4 MB / 382.1 MB Notification: Performance of Templates: time 0.04476/0.7184, allocations: 28.73 MB / 496.3 MB, free: 79.61 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)