Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.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.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.001502/0.001502, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001668/0.001668, allocations: 194.7 kB / 16.53 MB, free: 6.391 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.415/1.415, allocations: 205.1 MB / 222.4 MB, free: 4.574 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.001384/0.001384, allocations: 51.92 kB / 278.7 MB, free: 12.38 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2229/0.2243, allocations: 46.63 MB / 325.3 MB, free: 1.867 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses): time 0.01397/0.2383, allocations: 13.57 MB / 338.9 MB, free: 6.324 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.009089/0.2474, allocations: 4.845 MB / 343.7 MB, free: 1.465 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002118/0.2496, allocations: 75.62 kB / 343.8 MB, free: 1.391 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002383/0.252, allocations: 1.033 MB / 344.8 MB, free: 360 kB / 270.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.003355/0.2554, allocations: 1.406 MB / 346.2 MB, free: 14.94 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002006/0.2574, allocations: 0.9665 MB / 347.2 MB, free: 13.97 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.004582/0.262, allocations: 4.297 MB / 351.5 MB, free: 9.652 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003469/0.2655, allocations: 3.308 MB / 354.8 MB, free: 6.273 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002702/0.2682, allocations: 1.994 MB / 356.8 MB, free: 4.273 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003269/0.2715, allocations: 2.32 MB / 359.1 MB, free: 1.945 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008709/0.2723, allocations: 0.5312 MB / 359.7 MB, free: 1.414 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002301/0.2747, allocations: 0.9057 MB / 360.6 MB, free: 0.5078 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001344/0.276, allocations: 1.332 MB / 361.9 MB, free: 15.17 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003517/0.2795, allocations: 2.349 MB / 364.2 MB, free: 12.81 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009253/0.2888, allocations: 7.275 MB / 371.5 MB, free: 5.516 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.764e-06/0.2889, allocations: 0 / 371.5 MB, free: 5.516 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.645e-06/0.2889, allocations: 0 / 371.5 MB, free: 5.516 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001784/0.2891, allocations: 4 kB / 371.5 MB, free: 5.512 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.01246/0.3015, allocations: 4.984 MB / 376.5 MB, free: 460 kB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.454e-05/0.3016, allocations: 8.031 kB / 376.5 MB, free: 452 kB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004257/0.3058, allocations: 0.8781 MB / 377.4 MB, free: 15.55 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004278/0.3101, allocations: 2.6 MB / 380 MB, free: 12.88 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002038/0.3104, allocations: 258.6 kB / 380.3 MB, free: 12.62 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004999/0.3109, allocations: 335.8 kB / 380.6 MB, free: 12.3 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007328/0.3182, allocations: 4.547 MB / 385.1 MB, free: 7.703 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.082e-05/0.3183, allocations: 0 / 385.1 MB, free: 7.703 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003022/0.3186, allocations: 136 kB / 385.3 MB, free: 7.57 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001653/0.3188, allocations: 154.7 kB / 385.4 MB, free: 7.418 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006495/0.3253, allocations: 3.907 MB / 389.3 MB, free: 3.504 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02234/0.3476, allocations: 14.18 MB / 403.5 MB, free: 5.027 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007867/0.3555, allocations: 6.978 MB / 410.5 MB, free: 13.24 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002832/0.3584, allocations: 1.689 MB / 412.2 MB, free: 11.55 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007373/0.3658, allocations: 4.253 MB / 416.4 MB, free: 7.215 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.834e-05/0.3659, allocations: 55.86 kB / 416.5 MB, free: 7.148 MB / 350.1 MB Notification: Performance of pre-optimization done (n=165): time 3.998e-06/0.3659, allocations: 4 kB / 416.5 MB, free: 7.145 MB / 350.1 MB Notification: Performance of matching and sorting (n=185): time 0.01747/0.3834, allocations: 7.823 MB / 424.3 MB, free: 15.18 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.08e-05/0.3835, allocations: 73.41 kB / 424.4 MB, free: 15.1 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003828/0.3873, allocations: 2.624 MB / 427 MB, free: 12.45 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001603/0.3875, allocations: 57.7 kB / 427 MB, free: 12.39 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001228/0.3887, allocations: 1.619 MB / 428.7 MB, free: 10.75 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006461/0.3894, allocations: 0.6198 MB / 429.3 MB, free: 10.12 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005811/0.39, allocations: 339.3 kB / 429.6 MB, free: 9.781 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001109/0.3901, allocations: 305.1 kB / 429.9 MB, free: 9.48 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001569/0.3917, allocations: 0.9097 MB / 430.8 MB, free: 8.57 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001836/0.3935, allocations: 1.302 MB / 432.1 MB, free: 7.113 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003606/0.3971, allocations: 2.355 MB / 434.5 MB, free: 4.613 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.965e-06/0.3971, allocations: 4 kB / 434.5 MB, free: 4.609 MB / 366.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.005606/0.4028, allocations: 3.061 MB / 437.5 MB, free: 1.531 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.476e-05/0.4028, allocations: 12 kB / 437.6 MB, free: 1.52 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.008e-05/0.4028, allocations: 15.94 kB / 437.6 MB, free: 1.504 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001525/0.4044, allocations: 0.5594 MB / 438.1 MB, free: 0.9375 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001775/0.4061, allocations: 435.3 kB / 438.6 MB, free: 0.5117 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009237/0.4154, allocations: 7.577 MB / 446.1 MB, free: 8.656 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001812/0.4172, allocations: 91.88 kB / 446.2 MB, free: 8.566 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001616/0.4174, allocations: 71.98 kB / 446.3 MB, free: 8.496 MB / 382.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 (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,6,100.0%), (8,33,56.2%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00228/0.4197, allocations: 1.161 MB / 447.5 MB, free: 7.324 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006885/0.4204, allocations: 256.8 kB / 447.7 MB, free: 7.07 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005331/0.4257, allocations: 2.874 MB / 450.6 MB, free: 4.172 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.807e-05/0.4258, allocations: 20 kB / 450.6 MB, free: 4.152 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.237e-05/0.4258, allocations: 8 kB / 450.6 MB, free: 4.145 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.192e-05/0.4258, allocations: 11.95 kB / 450.6 MB, free: 4.133 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.17/0.5958, allocations: 6.347 MB / 457 MB, free: 109.6 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.638e-06/0.5959, allocations: 5.094 kB / 457 MB, free: 109.6 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001259/0.5971, allocations: 275 kB / 457.2 MB, free: 109.6 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001578/0.5987, allocations: 0.6266 MB / 457.9 MB, free: 109.6 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001224/0.5989, allocations: 48.53 kB / 457.9 MB, free: 109.6 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009809/0.6087, allocations: 11.45 MB / 469.4 MB, free: 101 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.6087, allocations: 0 / 469.4 MB, free: 101 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006532/0.6153, allocations: 4.153 MB / 473.5 MB, free: 99.26 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00106/0.6164, allocations: 0.54 MB / 474.1 MB, free: 99.02 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002898/0.6167, allocations: 43.47 kB / 474.1 MB, free: 98.99 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001071/0.6177, allocations: 79.25 kB / 474.2 MB, free: 98.97 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003406/0.6181, allocations: 142.5 kB / 474.3 MB, free: 98.95 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001042/0.6182, allocations: 55.25 kB / 474.4 MB, free: 98.94 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002196/0.6204, allocations: 1.84 MB / 476.2 MB, free: 98.27 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.6204, allocations: 3.75 kB / 476.2 MB, free: 98.27 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002075/0.6225, allocations: 0.6895 MB / 476.9 MB, free: 98.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 (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,12,100.0%), (1,6,100.0%), (1,12,100.0%), (2,25,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00107/0.6236, allocations: 439.5 kB / 477.3 MB, free: 97.89 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006668/0.6302, allocations: 3.459 MB / 480.8 MB, free: 94.97 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.322e-06/0.6303, allocations: 0 / 480.8 MB, free: 94.97 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00266/0.6329, allocations: 1.952 MB / 482.7 MB, free: 93.01 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002679/0.6356, allocations: 0.581 MB / 483.3 MB, free: 92.43 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009241/0.6449, allocations: 7.135 MB / 490.5 MB, free: 85.32 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001714/0.6467, allocations: 2.628 MB / 493.1 MB, free: 82.66 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001628/0.6483, allocations: 0.4889 MB / 493.6 MB, free: 82.16 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004082/0.6487, allocations: 175.4 kB / 493.7 MB, free: 81.99 MB / 382.1 MB Notification: Performance of SimCode: time 6.01e-07/0.6487, allocations: 0 / 493.7 MB, free: 81.99 MB / 382.1 MB Notification: Performance of Templates: time 0.05062/0.6993, allocations: 37.16 MB / 0.5185 GB, free: 44.8 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.makefile (rm -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.sim & ./Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.pipe 2>&1)