Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.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_withLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=100000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=100000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001133/0.001133, allocations: 85.94 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.001421/0.001422, 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.429/1.429, allocations: 205.4 MB / 222.1 MB, free: 5.648 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.0004393/0.0004393, allocations: 14.81 kB / 278.9 MB, free: 12.82 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2082/0.2087, allocations: 47.59 MB / 326.5 MB, free: 1.391 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses): time 0.01223/0.2209, allocations: 11.93 MB / 338.4 MB, free: 7.531 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.008922/0.2299, allocations: 4.521 MB / 342.9 MB, free: 3 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001832/0.2318, allocations: 59.75 kB / 343 MB, free: 2.941 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002632/0.2344, allocations: 0.7769 MB / 343.8 MB, free: 2.16 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00365/0.2381, allocations: 1.15 MB / 344.9 MB, free: 1.004 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002394/0.2405, allocations: 0.6899 MB / 345.6 MB, free: 320 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.005985/0.2465, allocations: 4.312 MB / 349.9 MB, free: 11.98 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003824/0.2504, allocations: 2.258 MB / 352.2 MB, free: 9.688 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00237/0.2527, allocations: 1.393 MB / 353.6 MB, free: 8.289 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002904/0.2557, allocations: 1.848 MB / 355.4 MB, free: 6.434 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007766/0.2564, allocations: 224 kB / 355.6 MB, free: 6.215 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001812/0.2583, allocations: 0.5308 MB / 356.2 MB, free: 5.684 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001211/0.2595, allocations: 0.9498 MB / 357.1 MB, free: 4.73 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00125/0.2608, allocations: 0.8082 MB / 357.9 MB, free: 3.914 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006009/0.2668, allocations: 5.937 MB / 363.9 MB, free: 13.96 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.404e-06/0.2668, allocations: 0 / 363.9 MB, free: 13.96 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.574e-06/0.2668, allocations: 3.938 kB / 363.9 MB, free: 13.96 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001821/0.267, allocations: 0 / 363.9 MB, free: 13.96 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: 877 * Number of variables: 877 Notification: Performance of Generate backend data structure: time 0.01091/0.2779, allocations: 4.256 MB / 368.1 MB, free: 9.625 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.589e-05/0.278, allocations: 8.031 kB / 368.1 MB, free: 9.617 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004875/0.2829, allocations: 0.8926 MB / 369 MB, free: 8.719 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005378/0.2883, allocations: 2.472 MB / 371.5 MB, free: 6.172 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002787/0.2886, allocations: 246.7 kB / 371.7 MB, free: 5.93 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009947/0.2896, allocations: 335.9 kB / 372.1 MB, free: 5.602 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01046/0.3001, allocations: 4.535 MB / 376.6 MB, free: 1.02 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.798e-05/0.3002, allocations: 11.84 kB / 376.6 MB, free: 1.008 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003943/0.3006, allocations: 140 kB / 376.8 MB, free: 0.8711 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001626/0.3008, allocations: 154.7 kB / 376.9 MB, free: 0.7188 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00711/0.3079, allocations: 3.911 MB / 380.8 MB, free: 12.8 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02244/0.3304, allocations: 14.25 MB / 395.1 MB, free: 14.25 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007324/0.3377, allocations: 6.979 MB / 402 MB, free: 6.469 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002982/0.3407, allocations: 1.704 MB / 403.8 MB, free: 4.766 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007737/0.3485, allocations: 4.253 MB / 408 MB, free: 436 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.496e-05/0.3486, allocations: 51.88 kB / 408.1 MB, free: 372 kB / 334.1 MB Notification: Performance of pre-optimization done (n=165): time 5.621e-06/0.3486, allocations: 0 / 408.1 MB, free: 372 kB / 334.1 MB Notification: Performance of matching and sorting (n=185): time 0.01817/0.3668, allocations: 7.952 MB / 416 MB, free: 8.273 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.313e-05/0.3669, allocations: 77.41 kB / 416.1 MB, free: 8.184 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005113/0.372, allocations: 2.604 MB / 418.7 MB, free: 5.555 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002925/0.3723, allocations: 57.7 kB / 418.7 MB, free: 5.492 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001474/0.3738, allocations: 1.611 MB / 420.4 MB, free: 3.859 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006618/0.3745, allocations: 0.6237 MB / 421 MB, free: 3.227 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001666/0.3746, allocations: 47.92 kB / 421 MB, free: 3.18 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002073/0.3749, allocations: 373.9 kB / 421.4 MB, free: 2.809 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002094/0.377, allocations: 0.9213 MB / 422.3 MB, free: 1.887 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002064/0.379, allocations: 1.31 MB / 423.6 MB, free: 432 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002117/0.3812, allocations: 1.134 MB / 424.8 MB, free: 15.29 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.063e-05/0.3812, allocations: 4 kB / 424.8 MB, free: 15.29 MB / 366.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.006358/0.3876, allocations: 3.073 MB / 427.8 MB, free: 12.2 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.423e-05/0.3877, allocations: 11.98 kB / 427.8 MB, free: 12.18 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.882e-05/0.3877, allocations: 12 kB / 427.9 MB, free: 12.17 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001629/0.3893, allocations: 0.5558 MB / 428.4 MB, free: 11.61 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002047/0.3914, allocations: 439.3 kB / 428.8 MB, free: 11.18 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009476/0.4009, allocations: 6.941 MB / 435.8 MB, free: 3.969 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001672/0.4026, allocations: 92 kB / 435.9 MB, free: 3.879 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002924/0.4029, allocations: 75.98 kB / 435.9 MB, free: 3.805 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * 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 (198): * Single equations (assignments): 194 * Array equations: 2 * 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%) 6,(7,75.5%) 34} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002297/0.4052, allocations: 1.165 MB / 437.1 MB, free: 2.629 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006906/0.4059, allocations: 252.9 kB / 437.4 MB, free: 2.379 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005964/0.4119, allocations: 2.917 MB / 440.3 MB, free: 15.44 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-05/0.412, allocations: 19.98 kB / 440.3 MB, free: 15.42 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.62e-05/0.412, allocations: 12 kB / 440.3 MB, free: 15.41 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.107e-05/0.412, allocations: 7.969 kB / 440.3 MB, free: 15.4 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01167/0.4237, allocations: 6.35 MB / 446.7 MB, free: 8.957 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.386e-05/0.4238, allocations: 4 kB / 446.7 MB, free: 8.953 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001349/0.4251, allocations: 283.7 kB / 446.9 MB, free: 8.676 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001734/0.4269, allocations: 0.6122 MB / 447.6 MB, free: 8.051 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002021/0.4271, allocations: 51.92 kB / 447.6 MB, free: 8 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1664/0.5935, allocations: 10.47 MB / 458.1 MB, free: 106.3 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.5935, allocations: 4.969 kB / 458.1 MB, free: 106.3 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006532/0.6001, allocations: 4.178 MB / 462.3 MB, free: 105.2 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00107/0.6012, allocations: 0.5418 MB / 462.8 MB, free: 105 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003215/0.6015, allocations: 39.19 kB / 462.8 MB, free: 104.9 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001021/0.6025, allocations: 95.62 kB / 462.9 MB, free: 104.9 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003113/0.6029, allocations: 148.2 kB / 463.1 MB, free: 104.9 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001162/0.603, allocations: 52.2 kB / 463.1 MB, free: 104.9 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002259/0.6053, allocations: 1.829 MB / 465 MB, free: 104.2 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6053, allocations: 0 / 465 MB, free: 104.2 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002366/0.6076, allocations: 0.6938 MB / 465.7 MB, free: 104.2 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 8 (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,PI.x) * 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 (126): * Single equations (assignments): 120 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 12,(1,100.0%) 6,(1,100.0%) 12,(2,100.0%) 25} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009902/0.6087, allocations: 435.3 kB / 466.1 MB, free: 103.9 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004466/0.6131, allocations: 2.847 MB / 468.9 MB, free: 102.7 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.421e-06/0.6132, allocations: 0 / 468.9 MB, free: 102.7 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002663/0.6158, allocations: 1.941 MB / 470.9 MB, free: 101.6 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002592/0.6184, allocations: 0.5632 MB / 471.4 MB, free: 101.4 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01006/0.6285, allocations: 8.374 MB / 479.8 MB, free: 95 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001762/0.6303, allocations: 2.635 MB / 482.4 MB, free: 92.65 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001775/0.6321, allocations: 0.4928 MB / 482.9 MB, free: 92.15 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004542/0.6326, allocations: 167.4 kB / 483.1 MB, free: 91.99 MB / 382.1 MB Notification: Performance of SimCode: time 9.51e-07/0.6326, allocations: 0 / 483.1 MB, free: 91.99 MB / 382.1 MB Notification: Performance of Templates: time 0.04691/0.6795, allocations: 34.36 MB / 0.5053 GB, free: 57.6 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.sim & ./Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.pipe 2>&1)