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.001043/0.001043, allocations: 100.2 kB / 15.05 MB, free: 1.105 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.001205/0.001205, allocations: 177.3 kB / 15.94 MB, free: 228 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.422/1.422, allocations: 205.4 MB / 222.1 MB, free: 5.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.0004362/0.0004362, allocations: 8 kB / 278.9 MB, free: 12.73 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2545/0.2549, allocations: 47.59 MB / 326.5 MB, free: 1.477 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter): time 0.0119/0.2669, allocations: 10.26 MB / 336.7 MB, free: 9.219 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.008565/0.2755, allocations: 4.07 MB / 340.8 MB, free: 5.141 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001846/0.2774, allocations: 63.75 kB / 340.9 MB, free: 5.078 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002294/0.2797, allocations: 0.7462 MB / 341.6 MB, free: 4.328 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003637/0.2833, allocations: 1.098 MB / 342.7 MB, free: 3.227 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001652/0.285, allocations: 0.5886 MB / 343.3 MB, free: 2.637 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.004629/0.2896, allocations: 2.663 MB / 345.9 MB, free: 15.96 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002568/0.2922, allocations: 2.185 MB / 348.1 MB, free: 13.74 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001886/0.2941, allocations: 1.203 MB / 349.3 MB, free: 12.54 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001725/0.2959, allocations: 1.443 MB / 350.8 MB, free: 11.09 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003037/0.2962, allocations: 200 kB / 351 MB, free: 10.89 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008846/0.2971, allocations: 367.7 kB / 351.3 MB, free: 10.53 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006411/0.2977, allocations: 0.7086 MB / 352 MB, free: 9.82 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006927/0.2984, allocations: 0.7227 MB / 352.8 MB, free: 9.09 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004915/0.3033, allocations: 5.352 MB / 358.1 MB, free: 3.723 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.575e-06/0.3034, allocations: 0 / 358.1 MB, free: 3.723 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.3034, allocations: 0 / 358.1 MB, free: 3.723 MB / 286.1 MB Notification: Performance of Transformations before backend: time 0.0001331/0.3035, allocations: 0 / 358.1 MB, free: 3.723 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: 822 * Number of variables: 822 Notification: Performance of Generate backend data structure: time 0.009209/0.3127, allocations: 3.669 MB / 361.8 MB, free: 15.98 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.871e-05/0.3128, allocations: 15.97 kB / 361.8 MB, free: 15.97 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004269/0.3171, allocations: 0.8038 MB / 362.6 MB, free: 15.16 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004618/0.3217, allocations: 2.138 MB / 364.7 MB, free: 12.96 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001856/0.3219, allocations: 238.2 kB / 365 MB, free: 12.73 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004789/0.3224, allocations: 311.9 kB / 365.3 MB, free: 12.43 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007222/0.3296, allocations: 4.176 MB / 369.5 MB, free: 8.199 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.285e-05/0.3297, allocations: 3.953 kB / 369.5 MB, free: 8.195 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002927/0.33, allocations: 132 kB / 369.6 MB, free: 8.066 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001508/0.3302, allocations: 158.1 kB / 369.7 MB, free: 7.91 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006223/0.3364, allocations: 3.593 MB / 373.3 MB, free: 4.309 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02031/0.3567, allocations: 13.2 MB / 386.5 MB, free: 6.777 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006793/0.3636, allocations: 6.893 MB / 393.4 MB, free: 14.99 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005459/0.3691, allocations: 3.183 MB / 396.6 MB, free: 11.72 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.239e-05/0.3691, allocations: 43.88 kB / 396.7 MB, free: 11.67 MB / 334.1 MB Notification: Performance of pre-optimization done (n=131): time 3.046e-06/0.3691, allocations: 7.938 kB / 396.7 MB, free: 11.66 MB / 334.1 MB Notification: Performance of matching and sorting (n=135): time 0.01234/0.3815, allocations: 5.779 MB / 402.4 MB, free: 5.711 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.661e-05/0.3816, allocations: 68.72 kB / 402.5 MB, free: 5.629 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002507/0.3841, allocations: 1.646 MB / 404.2 MB, free: 3.977 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001004/0.3842, allocations: 45.7 kB / 404.2 MB, free: 3.926 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009956/0.3852, allocations: 1.372 MB / 405.6 MB, free: 2.535 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000387/0.3856, allocations: 477.1 kB / 406 MB, free: 2.062 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.723e-05/0.3857, allocations: 39.94 kB / 406.1 MB, free: 2.023 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001846/0.3859, allocations: 365.9 kB / 406.4 MB, free: 1.66 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001162/0.3871, allocations: 0.6949 MB / 407.1 MB, free: 0.9648 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001395/0.3885, allocations: 1.125 MB / 408.3 MB, free: 15.65 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001459/0.3899, allocations: 0.8965 MB / 409.1 MB, free: 14.75 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.696e-06/0.39, allocations: 4 kB / 409.2 MB, free: 14.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=208) (initialization): time 0.004083/0.3941, allocations: 2.405 MB / 411.6 MB, free: 12.3 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.49e-05/0.3941, allocations: 12.28 kB / 411.6 MB, free: 12.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.869e-05/0.3941, allocations: 16 kB / 411.6 MB, free: 12.28 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006814/0.3948, allocations: 267.2 kB / 411.8 MB, free: 12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0014/0.3962, allocations: 379.5 kB / 412.2 MB, free: 11.63 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005684/0.4019, allocations: 5.761 MB / 418 MB, free: 5.473 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001384/0.4033, allocations: 75.88 kB / 418.1 MB, free: 5.398 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001165/0.4035, allocations: 67.98 kB / 418.1 MB, free: 5.332 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * 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 (188): * Single equations (assignments): 184 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001835/0.4053, allocations: 1.005 MB / 419.1 MB, free: 4.316 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003759/0.4057, allocations: 177.8 kB / 419.3 MB, free: 4.141 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004118/0.4098, allocations: 2.279 MB / 421.6 MB, free: 1.797 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.656e-05/0.4098, allocations: 15.95 kB / 421.6 MB, free: 1.781 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.728e-06/0.4099, allocations: 8 kB / 421.6 MB, free: 1.773 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.428e-05/0.4099, allocations: 3.984 kB / 421.6 MB, free: 1.77 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008505/0.4184, allocations: 5.097 MB / 426.7 MB, free: 12.52 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.233e-06/0.4184, allocations: 0 / 426.7 MB, free: 12.52 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008404/0.4193, allocations: 204 kB / 426.9 MB, free: 12.32 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001119/0.4204, allocations: 447.8 kB / 427.3 MB, free: 11.87 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.238e-05/0.4205, allocations: 35.98 kB / 427.4 MB, free: 11.83 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009643/0.4302, allocations: 10.2 MB / 437.6 MB, free: 0.9609 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.769e-06/0.4302, allocations: 4.031 kB / 437.6 MB, free: 0.957 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005114/0.4353, allocations: 3.337 MB / 440.9 MB, free: 13.46 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009836/0.4363, allocations: 414.7 kB / 441.3 MB, free: 13.04 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002515/0.4366, allocations: 32 kB / 441.3 MB, free: 13.01 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008011/0.4374, allocations: 75.94 kB / 441.4 MB, free: 12.93 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000264/0.4377, allocations: 109.6 kB / 441.5 MB, free: 12.83 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.746e-05/0.4378, allocations: 39.98 kB / 441.6 MB, free: 12.79 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001677/0.4395, allocations: 1.123 MB / 442.7 MB, free: 11.67 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4395, allocations: 0 / 442.7 MB, free: 11.67 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002108/0.4416, allocations: 0.5469 MB / 443.2 MB, free: 11.12 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 (98): * Single equations (assignments): 93 * 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 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 13,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003858/0.442, allocations: 170.8 kB / 443.4 MB, free: 10.95 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003825/0.4458, allocations: 2.187 MB / 445.6 MB, free: 8.703 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.739e-06/0.4459, allocations: 384 / 445.6 MB, free: 8.703 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002581/0.4485, allocations: 1.6 MB / 447.2 MB, free: 7.039 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002348/0.4508, allocations: 478.4 kB / 447.7 MB, free: 6.57 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1667/0.6176, allocations: 6.735 MB / 454.4 MB, free: 109.7 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002996/0.6206, allocations: 2.344 MB / 456.7 MB, free: 109 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0014/0.622, allocations: 395.4 kB / 457.1 MB, free: 109 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002926/0.6223, allocations: 120.7 kB / 457.2 MB, free: 109 MB / 382.1 MB Notification: Performance of SimCode: time 7.71e-07/0.6223, allocations: 1.422 kB / 457.2 MB, free: 109 MB / 382.1 MB Notification: Performance of Templates: time 0.03702/0.6594, allocations: 25.39 MB / 482.6 MB, free: 91.34 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: