Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.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_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001217/0.001217, 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.001395/0.001395, allocations: 193.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.372/1.372, allocations: 205.1 MB / 222.4 MB, free: 4.555 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.001188/0.001188, allocations: 55.92 kB / 278.7 MB, free: 12.36 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2352/0.2364, allocations: 46.64 MB / 325.3 MB, free: 1.852 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter): time 0.01588/0.2523, allocations: 12.77 MB / 338.1 MB, free: 7.102 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.008695/0.261, allocations: 4.262 MB / 342.4 MB, free: 2.828 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00259/0.2637, allocations: 71.69 kB / 342.4 MB, free: 2.758 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002737/0.2664, allocations: 0.9746 MB / 343.4 MB, free: 1.777 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00443/0.2709, allocations: 1.258 MB / 344.7 MB, free: 0.5117 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002157/0.2731, allocations: 0.8534 MB / 345.5 MB, free: 15.66 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.004769/0.2778, allocations: 3.86 MB / 349.4 MB, free: 11.78 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003469/0.2813, allocations: 3.177 MB / 352.5 MB, free: 8.527 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002832/0.2842, allocations: 1.827 MB / 354.4 MB, free: 6.695 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002899/0.2871, allocations: 2.051 MB / 356.4 MB, free: 4.637 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007343/0.2878, allocations: 0.5038 MB / 356.9 MB, free: 4.133 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001465/0.2893, allocations: 0.7068 MB / 357.6 MB, free: 3.426 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008821/0.2902, allocations: 1.102 MB / 358.7 MB, free: 2.32 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002393/0.2926, allocations: 2.077 MB / 360.8 MB, free: 240 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005773/0.2984, allocations: 6.539 MB / 367.4 MB, free: 9.676 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.2984, allocations: 4 kB / 367.4 MB, free: 9.672 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.2984, allocations: 0 / 367.4 MB, free: 9.672 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.309e-05/0.2985, allocations: 0 / 367.4 MB, free: 9.672 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: 822 * Number of variables: 822 Notification: Performance of Generate backend data structure: time 0.009866/0.3084, allocations: 4.3 MB / 371.7 MB, free: 5.301 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.977e-05/0.3085, allocations: 15.97 kB / 371.7 MB, free: 5.285 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00414/0.3126, allocations: 0.8046 MB / 372.5 MB, free: 4.477 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003808/0.3165, allocations: 2.22 MB / 374.7 MB, free: 2.199 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000169/0.3166, allocations: 234.6 kB / 374.9 MB, free: 1.969 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004844/0.3171, allocations: 315.8 kB / 375.2 MB, free: 1.66 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007233/0.3244, allocations: 4.227 MB / 379.5 MB, free: 13.38 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.461e-05/0.3245, allocations: 0 / 379.5 MB, free: 13.38 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002928/0.3248, allocations: 128 kB / 379.6 MB, free: 13.25 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001519/0.3249, allocations: 146.3 kB / 379.7 MB, free: 13.11 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00626/0.3312, allocations: 3.601 MB / 383.3 MB, free: 9.5 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02074/0.352, allocations: 13.19 MB / 396.5 MB, free: 11.99 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00665/0.3587, allocations: 6.9 MB / 403.4 MB, free: 4.18 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002104/0.3608, allocations: 1.367 MB / 404.8 MB, free: 2.809 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005509/0.3663, allocations: 3.723 MB / 408.5 MB, free: 14.99 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.763e-05/0.3664, allocations: 47.56 kB / 408.6 MB, free: 14.94 MB / 350.1 MB Notification: Performance of pre-optimization done (n=119): time 2.595e-06/0.3664, allocations: 0 / 408.6 MB, free: 14.94 MB / 350.1 MB Notification: Performance of matching and sorting (n=122): time 0.01153/0.3779, allocations: 5.364 MB / 413.9 MB, free: 9.379 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.99e-05/0.378, allocations: 64.41 kB / 414 MB, free: 9.301 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003932/0.382, allocations: 1.705 MB / 415.7 MB, free: 7.59 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002352/0.3822, allocations: 53.7 kB / 415.7 MB, free: 7.531 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001476/0.3837, allocations: 1.395 MB / 417.1 MB, free: 6.117 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006183/0.3843, allocations: 433.8 kB / 417.6 MB, free: 5.688 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006293/0.385, allocations: 283.3 kB / 417.8 MB, free: 5.406 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000164/0.3852, allocations: 305.1 kB / 418.1 MB, free: 5.105 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001833/0.387, allocations: 0.6481 MB / 418.8 MB, free: 4.457 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002195/0.3892, allocations: 1.114 MB / 419.9 MB, free: 3.137 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004109/0.3933, allocations: 1.868 MB / 421.8 MB, free: 1.062 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.257e-05/0.3934, allocations: 4 kB / 421.8 MB, free: 1.059 MB / 350.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.006552/0.3999, allocations: 2.315 MB / 424.1 MB, free: 14.7 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.478e-05/0.4, allocations: 12 kB / 424.1 MB, free: 14.69 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.1e-05/0.4001, allocations: 16 kB / 424.1 MB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001283/0.4014, allocations: 275.5 kB / 424.4 MB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002554/0.4039, allocations: 359.4 kB / 424.7 MB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01116/0.4151, allocations: 6.214 MB / 430.9 MB, free: 7.41 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002675/0.4179, allocations: 67.95 kB / 431 MB, free: 7.344 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003496/0.4182, allocations: 75.98 kB / 431.1 MB, free: 7.27 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 66 * 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): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,5,100.0%), (1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003575/0.4218, allocations: 1.001 MB / 432.1 MB, free: 6.258 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000857/0.4227, allocations: 181.8 kB / 432.3 MB, free: 6.078 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007287/0.43, allocations: 2.111 MB / 434.4 MB, free: 3.91 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.199e-05/0.4301, allocations: 12 kB / 434.4 MB, free: 3.898 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.057e-05/0.4301, allocations: 11.94 kB / 434.4 MB, free: 3.887 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.518e-05/0.4302, allocations: 7.969 kB / 434.4 MB, free: 3.879 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01485/0.445, allocations: 4.823 MB / 439.2 MB, free: 14.92 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.478e-05/0.4451, allocations: 4 kB / 439.2 MB, free: 14.91 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001526/0.4466, allocations: 168 kB / 439.4 MB, free: 14.75 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002278/0.4489, allocations: 452 kB / 439.8 MB, free: 14.29 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001554/0.4491, allocations: 31.98 kB / 439.9 MB, free: 14.26 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01912/0.4683, allocations: 11.03 MB / 450.9 MB, free: 2.539 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.948e-06/0.4683, allocations: 8.031 kB / 450.9 MB, free: 2.531 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2074/0.6758, allocations: 2.99 MB / 453.9 MB, free: 108.9 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00124/0.677, allocations: 403.7 kB / 454.3 MB, free: 108.8 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006527/0.6777, allocations: 31.95 kB / 454.3 MB, free: 108.8 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001345/0.6791, allocations: 64.67 kB / 454.4 MB, free: 108.8 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003659/0.6794, allocations: 103 kB / 454.5 MB, free: 108.8 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001436/0.6796, allocations: 39.34 kB / 454.5 MB, free: 108.8 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002499/0.6821, allocations: 1.173 MB / 455.7 MB, free: 108.7 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.6821, allocations: 0 / 455.7 MB, free: 108.7 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002384/0.6845, allocations: 0.5365 MB / 456.2 MB, free: 108.7 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 7 (aimc.inertiaRotor.w,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,vfController.x,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 (86): * Single equations (assignments): 81 * 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 {(1,5,100.0%), (1,1,100.0%), (1,13,100.0%), (1,8,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003271/0.6848, allocations: 161.3 kB / 456.4 MB, free: 108.6 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004407/0.6893, allocations: 2.412 MB / 458.8 MB, free: 107.9 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.53e-06/0.6893, allocations: 0 / 458.8 MB, free: 107.9 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001973/0.6913, allocations: 1.525 MB / 460.3 MB, free: 107 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002227/0.6935, allocations: 0.5049 MB / 460.8 MB, free: 106.8 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007149/0.7007, allocations: 5.544 MB / 466.4 MB, free: 104.1 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001381/0.7021, allocations: 2.286 MB / 468.7 MB, free: 103 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001072/0.7031, allocations: 380.6 kB / 469 MB, free: 103 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002609/0.7034, allocations: 119.6 kB / 469.1 MB, free: 103 MB / 382.1 MB Notification: Performance of SimCode: time 5.71e-07/0.7034, allocations: 3.5 kB / 469.1 MB, free: 103 MB / 382.1 MB Notification: Performance of Templates: time 0.03895/0.7424, allocations: 27.51 MB / 496.7 MB, free: 77.32 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.sim & ./Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.pipe 2>&1)