Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_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.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter") translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001156/0.001156, allocations: 100.3 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.001179/0.001179, 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.637/1.637, allocations: 205.4 MB / 222.1 MB, free: 5.512 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.000518/0.000518, allocations: 14.81 kB / 278.9 MB, free: 12.71 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2409/0.2414, allocations: 47.58 MB / 326.5 MB, free: 1.414 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter): time 0.01002/0.2515, allocations: 8.33 MB / 334.8 MB, free: 11.01 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.006741/0.2583, allocations: 3.363 MB / 338.1 MB, free: 7.766 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001276/0.2596, allocations: 43.75 kB / 338.2 MB, free: 7.723 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001658/0.2613, allocations: 0.6336 MB / 338.8 MB, free: 7.086 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002261/0.2635, allocations: 0.7282 MB / 339.6 MB, free: 6.355 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007244/0.2643, allocations: 271.6 kB / 339.8 MB, free: 6.09 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.002244/0.2665, allocations: 1.813 MB / 341.6 MB, free: 4.273 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00177/0.2683, allocations: 1.54 MB / 343.2 MB, free: 2.699 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009462/0.2693, allocations: 0.8757 MB / 344 MB, free: 1.82 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001286/0.2706, allocations: 1.121 MB / 345.2 MB, free: 0.6953 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002221/0.2708, allocations: 136 kB / 345.3 MB, free: 0.5625 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005005/0.2713, allocations: 215.8 kB / 345.5 MB, free: 360 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006589/0.272, allocations: 0.6698 MB / 346.2 MB, free: 15.68 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004302/0.2724, allocations: 0.516 MB / 346.7 MB, free: 15.16 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002908/0.2753, allocations: 3.463 MB / 350.2 MB, free: 11.68 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.2754, allocations: 4 kB / 350.2 MB, free: 11.68 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.564e-06/0.2754, allocations: 0 / 350.2 MB, free: 11.68 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.238e-05/0.2754, allocations: 4 kB / 350.2 MB, free: 11.68 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: 581 * Number of variables: 581 Notification: Performance of Generate backend data structure: time 0.004892/0.2803, allocations: 2.605 MB / 352.8 MB, free: 9.008 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.141e-05/0.2804, allocations: 8.031 kB / 352.8 MB, free: 9 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007909/0.2812, allocations: 304.6 kB / 353.1 MB, free: 8.699 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002714/0.2839, allocations: 1.481 MB / 354.6 MB, free: 7.16 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001666/0.2841, allocations: 176.4 kB / 354.7 MB, free: 6.984 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003404/0.2844, allocations: 220 kB / 354.9 MB, free: 6.77 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005077/0.2895, allocations: 2.893 MB / 357.8 MB, free: 3.789 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.299e-05/0.2896, allocations: 7.906 kB / 357.8 MB, free: 3.781 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001983/0.2898, allocations: 91.94 kB / 357.9 MB, free: 3.691 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001284/0.2899, allocations: 116.3 kB / 358 MB, free: 3.574 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004493/0.2944, allocations: 2.433 MB / 360.5 MB, free: 1.125 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01533/0.3098, allocations: 9.098 MB / 369.6 MB, free: 7.742 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002266/0.3121, allocations: 1.713 MB / 371.3 MB, free: 5.914 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003196/0.3125, allocations: 199.2 kB / 371.5 MB, free: 5.684 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.304e-05/0.3125, allocations: 51.56 kB / 371.5 MB, free: 5.625 MB / 302.1 MB Notification: Performance of pre-optimization done (n=105): time 4.709e-06/0.3126, allocations: 0 / 371.5 MB, free: 5.625 MB / 302.1 MB Notification: Performance of matching and sorting (n=125): time 0.01591/0.3285, allocations: 7.494 MB / 379 MB, free: 13.99 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.04e-05/0.3286, allocations: 64.41 kB / 379.1 MB, free: 13.91 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001977/0.3305, allocations: 1.51 MB / 380.6 MB, free: 12.39 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.257e-05/0.3306, allocations: 45.7 kB / 380.7 MB, free: 12.34 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007411/0.3314, allocations: 1.096 MB / 381.7 MB, free: 11.23 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00033/0.3317, allocations: 441.6 kB / 382.2 MB, free: 10.79 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.518e-05/0.3318, allocations: 35.94 kB / 382.2 MB, free: 10.75 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001571/0.332, allocations: 369.9 kB / 382.6 MB, free: 10.39 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001159/0.3331, allocations: 0.7612 MB / 383.3 MB, free: 9.625 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00143/0.3346, allocations: 1.177 MB / 384.5 MB, free: 8.273 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001427/0.336, allocations: 0.9432 MB / 385.5 MB, free: 7.328 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.404e-06/0.336, allocations: 4 kB / 385.5 MB, free: 7.324 MB / 318.1 MB Notification: Performance of matching and sorting (n=194) (initialization): time 0.004278/0.3403, allocations: 2.629 MB / 388.1 MB, free: 4.676 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.127e-05/0.3404, allocations: 15.89 kB / 388.1 MB, free: 4.66 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.239e-05/0.3404, allocations: 16 kB / 388.1 MB, free: 4.645 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00129/0.3417, allocations: 0.5491 MB / 388.7 MB, free: 4.086 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001249/0.343, allocations: 351.5 kB / 389 MB, free: 3.742 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00737/0.3503, allocations: 6.502 MB / 395.5 MB, free: 12.97 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001394/0.3518, allocations: 119.8 kB / 395.6 MB, free: 12.85 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001131/0.3519, allocations: 60 kB / 395.7 MB, free: 12.79 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 58 * 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 (167): * Single equations (assignments): 164 * 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: 2 * 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: 2 {(6,72.2%) 20,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001354/0.3532, allocations: 0.7198 MB / 396.4 MB, free: 12.06 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002992/0.3536, allocations: 173.8 kB / 396.6 MB, free: 11.89 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004046/0.3576, allocations: 2.333 MB / 398.9 MB, free: 9.539 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.343e-05/0.3576, allocations: 12 kB / 398.9 MB, free: 9.527 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.044e-05/0.3577, allocations: 12.12 kB / 398.9 MB, free: 9.516 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.429e-05/0.3577, allocations: 7.984 kB / 398.9 MB, free: 9.508 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009027/0.3667, allocations: 4.842 MB / 403.8 MB, free: 4.551 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.084e-05/0.3668, allocations: 4 kB / 403.8 MB, free: 4.547 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009356/0.3677, allocations: 219.9 kB / 404 MB, free: 4.332 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001476/0.3692, allocations: 0.5761 MB / 404.6 MB, free: 3.746 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.863e-05/0.3693, allocations: 35.98 kB / 404.6 MB, free: 3.711 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009328/0.3786, allocations: 8.003 MB / 412.6 MB, free: 11.3 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.547e-06/0.3787, allocations: 0 / 412.6 MB, free: 11.3 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00575/0.3844, allocations: 3.505 MB / 416.1 MB, free: 7.684 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009723/0.3854, allocations: 402.8 kB / 416.5 MB, free: 7.27 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002132/0.3856, allocations: 39.92 kB / 416.6 MB, free: 7.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000863/0.3865, allocations: 87.91 kB / 416.6 MB, free: 7.145 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002461/0.3868, allocations: 100.8 kB / 416.7 MB, free: 7.047 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.797e-05/0.3869, allocations: 39.98 kB / 416.8 MB, free: 7.008 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001608/0.3885, allocations: 1.016 MB / 417.8 MB, free: 5.996 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.3885, allocations: 0 / 417.8 MB, free: 5.996 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001739/0.3902, allocations: 0.4921 MB / 418.3 MB, free: 5.504 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],smpm.idq_rr[2],smpm.idq_dr[1],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 (102): * Single equations (assignments): 99 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(6,72.2%) 20,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003327/0.3906, allocations: 159 kB / 418.4 MB, free: 5.34 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003843/0.3944, allocations: 2.36 MB / 420.8 MB, free: 2.93 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.529e-06/0.3944, allocations: 0 / 420.8 MB, free: 2.93 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002455/0.3969, allocations: 1.494 MB / 422.3 MB, free: 1.398 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001765/0.3987, allocations: 437.3 kB / 422.7 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007636/0.4063, allocations: 5.613 MB / 428.3 MB, free: 11.3 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001619/0.408, allocations: 1.927 MB / 430.3 MB, free: 9.34 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001188/0.4092, allocations: 374.8 kB / 430.6 MB, free: 8.969 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003206/0.4095, allocations: 119.4 kB / 430.7 MB, free: 8.852 MB / 366.1 MB Notification: Performance of SimCode: time 1.062e-06/0.4095, allocations: 3.938 kB / 430.8 MB, free: 8.848 MB / 366.1 MB Notification: Performance of Templates: time 0.2182/0.6277, allocations: 25.18 MB / 455.9 MB, free: 113.1 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.sim & ./Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe 2>&1) Environment - environmentSimulation: