Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.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.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.001167/0.001167, allocations: 108 kB / 15.61 MB, free: 152 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.001309/0.001309, allocations: 194.3 kB / 16.53 MB, free: 6.664 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.461/1.461, allocations: 205.1 MB / 222.4 MB, free: 4.59 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.001191/0.001191, allocations: 59.91 kB / 278.7 MB, free: 12.33 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2311/0.2323, allocations: 46.64 MB / 325.3 MB, free: 1.828 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter): time 0.01422/0.2465, allocations: 12.76 MB / 338.1 MB, free: 7.109 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.008854/0.2554, allocations: 4.273 MB / 342.4 MB, free: 2.824 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002265/0.2578, allocations: 63.75 kB / 342.4 MB, free: 2.762 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002432/0.2602, allocations: 0.9668 MB / 343.4 MB, free: 1.789 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003711/0.2639, allocations: 1.262 MB / 344.6 MB, free: 0.5195 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002017/0.266, allocations: 0.8612 MB / 345.5 MB, free: 15.66 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0046/0.2706, allocations: 3.857 MB / 349.4 MB, free: 11.78 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004554/0.2752, allocations: 3.188 MB / 352.6 MB, free: 8.52 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002838/0.278, allocations: 1.815 MB / 354.4 MB, free: 6.699 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003345/0.2814, allocations: 2.059 MB / 356.4 MB, free: 4.633 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001275/0.2827, allocations: 0.5 MB / 356.9 MB, free: 4.133 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002134/0.2848, allocations: 0.7107 MB / 357.6 MB, free: 3.422 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001134/0.286, allocations: 1.106 MB / 358.7 MB, free: 2.312 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002528/0.2885, allocations: 2.07 MB / 360.8 MB, free: 240 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006033/0.2945, allocations: 6.539 MB / 367.4 MB, free: 9.676 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.2946, allocations: 0 / 367.4 MB, free: 9.676 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.2946, allocations: 4 kB / 367.4 MB, free: 9.672 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001448/0.2947, 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.01079/0.3055, allocations: 4.308 MB / 371.7 MB, free: 5.293 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.177e-05/0.3056, allocations: 8.031 kB / 371.7 MB, free: 5.285 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004199/0.3098, allocations: 0.8046 MB / 372.5 MB, free: 4.477 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003645/0.3135, allocations: 2.22 MB / 374.7 MB, free: 2.199 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001649/0.3136, allocations: 234.6 kB / 374.9 MB, free: 1.969 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004753/0.3141, allocations: 319.8 kB / 375.2 MB, free: 1.656 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006714/0.3208, allocations: 4.219 MB / 379.5 MB, free: 13.38 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.388e-05/0.3209, allocations: 7.938 kB / 379.5 MB, free: 13.38 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002802/0.3212, allocations: 124 kB / 379.6 MB, free: 13.25 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001342/0.3214, allocations: 150.3 kB / 379.7 MB, free: 13.11 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005683/0.3271, allocations: 3.597 MB / 383.3 MB, free: 9.5 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01804/0.3451, allocations: 13.19 MB / 396.5 MB, free: 11.99 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006297/0.3514, allocations: 6.895 MB / 403.4 MB, free: 4.184 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002144/0.3536, allocations: 1.372 MB / 404.8 MB, free: 2.809 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00591/0.3595, allocations: 3.723 MB / 408.5 MB, free: 14.99 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.703e-05/0.3596, allocations: 51.55 kB / 408.6 MB, free: 14.93 MB / 350.1 MB Notification: Performance of pre-optimization done (n=119): time 3.006e-06/0.3596, allocations: 4 kB / 408.6 MB, free: 14.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=122): time 0.009847/0.3695, allocations: 5.361 MB / 413.9 MB, free: 9.375 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.877e-05/0.3695, allocations: 68.41 kB / 414 MB, free: 9.293 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002243/0.3718, allocations: 1.709 MB / 415.7 MB, free: 7.578 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.376e-05/0.3718, allocations: 45.7 kB / 415.7 MB, free: 7.527 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000825/0.3727, allocations: 1.395 MB / 417.1 MB, free: 6.113 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002871/0.373, allocations: 429.8 kB / 417.6 MB, free: 5.688 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003861/0.3734, allocations: 287.3 kB / 417.8 MB, free: 5.402 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.345e-05/0.3735, allocations: 313 kB / 418.1 MB, free: 5.094 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001/0.3745, allocations: 0.6364 MB / 418.8 MB, free: 4.457 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001298/0.3758, allocations: 1.114 MB / 419.9 MB, free: 3.137 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002351/0.3781, allocations: 1.871 MB / 421.8 MB, free: 1.059 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.213e-06/0.3782, allocations: 4 kB / 421.8 MB, free: 1.055 MB / 350.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.003531/0.3817, allocations: 2.323 MB / 424.1 MB, free: 14.69 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.331e-05/0.3817, allocations: 12 kB / 424.1 MB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2e-05/0.3818, allocations: 12 kB / 424.1 MB, free: 14.67 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006502/0.3824, allocations: 275.5 kB / 424.4 MB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001306/0.3837, allocations: 363.4 kB / 424.7 MB, free: 14.03 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005191/0.3889, allocations: 6.202 MB / 430.9 MB, free: 7.41 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001224/0.3902, allocations: 75.95 kB / 431 MB, free: 7.336 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001036/0.3903, allocations: 67.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.001609/0.3919, allocations: 1.005 MB / 432.1 MB, free: 6.254 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00027/0.3922, allocations: 177.8 kB / 432.3 MB, free: 6.078 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003517/0.3957, allocations: 2.119 MB / 434.4 MB, free: 3.902 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.291e-05/0.3957, allocations: 12 kB / 434.4 MB, free: 3.891 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.024e-05/0.3958, allocations: 4 kB / 434.4 MB, free: 3.887 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.572e-05/0.3958, allocations: 7.969 kB / 434.4 MB, free: 3.879 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007785/0.4036, allocations: 4.823 MB / 439.2 MB, free: 14.91 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.751e-06/0.4036, allocations: 0 / 439.2 MB, free: 14.91 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000711/0.4043, allocations: 175.9 kB / 439.4 MB, free: 14.74 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001034/0.4054, allocations: 448.1 kB / 439.8 MB, free: 14.29 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.704e-05/0.4054, allocations: 35.98 kB / 439.9 MB, free: 14.25 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009355/0.4148, allocations: 11.03 MB / 450.9 MB, free: 2.535 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.759e-06/0.4148, allocations: 7.969 kB / 450.9 MB, free: 2.527 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.168/0.5828, allocations: 2.991 MB / 453.9 MB, free: 109.9 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001325/0.5842, allocations: 403.3 kB / 454.3 MB, free: 109.8 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006792/0.5849, allocations: 35.3 kB / 454.3 MB, free: 109.8 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001091/0.586, allocations: 65.05 kB / 454.4 MB, free: 109.8 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003342/0.5863, allocations: 95.62 kB / 454.5 MB, free: 109.8 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001053/0.5864, allocations: 37.64 kB / 454.5 MB, free: 109.8 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002047/0.5885, allocations: 1.177 MB / 455.7 MB, free: 109.7 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5885, allocations: 1.094 kB / 455.7 MB, free: 109.7 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002122/0.5906, allocations: 0.5364 MB / 456.2 MB, free: 109.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.000305/0.5909, allocations: 161.7 kB / 456.4 MB, free: 109.6 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004358/0.5953, allocations: 2.403 MB / 458.8 MB, free: 108.9 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.384e-06/0.5953, allocations: 1.062 kB / 458.8 MB, free: 108.9 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002054/0.5974, allocations: 1.532 MB / 460.3 MB, free: 108 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002138/0.5995, allocations: 0.5027 MB / 460.8 MB, free: 107.8 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007823/0.6074, allocations: 5.554 MB / 466.4 MB, free: 105.1 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001528/0.6089, allocations: 2.278 MB / 468.7 MB, free: 104.1 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001231/0.6102, allocations: 385.9 kB / 469 MB, free: 104 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002641/0.6104, allocations: 129.3 kB / 469.2 MB, free: 104 MB / 382.1 MB Notification: Performance of SimCode: time 8.01e-07/0.6104, allocations: 0 / 469.2 MB, free: 104 MB / 382.1 MB Notification: Performance of Templates: time 0.03912/0.6496, allocations: 27.5 MB / 496.7 MB, free: 78.17 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.makefile (rm -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.sim & ./Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.pipe 2>&1)