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.001054/0.001054, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.00992/0.009921, allocations: 169.9 kB / 16.26 MB, free: 6.613 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.636/1.636, allocations: 205.4 MB / 222.4 MB, free: 5.57 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.0004393/0.0004396, allocations: 12 kB / 279.5 MB, free: 12.51 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.257/0.2575, allocations: 47.59 MB / 327 MB, free: 1.438 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter): time 0.01089/0.2684, allocations: 9.659 MB / 336.7 MB, free: 9.68 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00872/0.2772, allocations: 3.41 MB / 340.1 MB, free: 6.258 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003302/0.2805, allocations: 43.81 kB / 340.2 MB, free: 6.215 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003327/0.2839, allocations: 0.6798 MB / 340.8 MB, free: 5.531 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004594/0.2885, allocations: 0.742 MB / 341.6 MB, free: 4.785 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001732/0.2903, allocations: 375.6 kB / 341.9 MB, free: 4.418 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.004723/0.295, allocations: 3.094 MB / 345 MB, free: 1.312 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003164/0.2982, allocations: 1.978 MB / 347 MB, free: 15.27 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002055/0.3003, allocations: 0.9529 MB / 348 MB, free: 14.32 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00254/0.3028, allocations: 1.334 MB / 349.3 MB, free: 12.98 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000636/0.3035, allocations: 144 kB / 349.4 MB, free: 12.84 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001035/0.3045, allocations: 251.8 kB / 349.7 MB, free: 12.59 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001161/0.3057, allocations: 0.7124 MB / 350.4 MB, free: 11.88 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002331/0.3081, allocations: 1.276 MB / 351.7 MB, free: 10.59 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00435/0.3124, allocations: 4.091 MB / 355.8 MB, free: 6.48 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.021e-06/0.3124, allocations: 0 / 355.8 MB, free: 6.48 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.946e-06/0.3125, allocations: 4 kB / 355.8 MB, free: 6.477 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.246e-05/0.3126, allocations: 0 / 355.8 MB, free: 6.477 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.005781/0.3183, allocations: 2.597 MB / 358.4 MB, free: 3.816 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.642e-05/0.3184, allocations: 8.031 kB / 358.4 MB, free: 3.809 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009696/0.3194, allocations: 309.5 kB / 358.7 MB, free: 3.504 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002667/0.3221, allocations: 1.516 MB / 360.2 MB, free: 1.93 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001956/0.3223, allocations: 184.5 kB / 360.4 MB, free: 1.746 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003804/0.3227, allocations: 219.9 kB / 360.6 MB, free: 1.531 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005406/0.3281, allocations: 2.925 MB / 363.5 MB, free: 14.52 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.889e-05/0.3282, allocations: 4 kB / 363.5 MB, free: 14.52 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00022/0.3284, allocations: 91.92 kB / 363.6 MB, free: 14.43 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001278/0.3285, allocations: 116.3 kB / 363.7 MB, free: 14.31 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004441/0.333, allocations: 2.453 MB / 366.2 MB, free: 11.84 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01514/0.3481, allocations: 9.16 MB / 375.3 MB, free: 2.391 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002509/0.3507, allocations: 1.717 MB / 377 MB, free: 0.5625 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001817/0.3525, allocations: 1.003 MB / 378.1 MB, free: 15.55 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003315/0.3529, allocations: 207.2 kB / 378.3 MB, free: 15.31 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.349e-05/0.3529, allocations: 43.56 kB / 378.3 MB, free: 15.26 MB / 318.1 MB Notification: Performance of pre-optimization done (n=105): time 2.886e-06/0.353, allocations: 0 / 378.3 MB, free: 15.26 MB / 318.1 MB Notification: Performance of matching and sorting (n=122): time 0.01516/0.3681, allocations: 6.66 MB / 385 MB, free: 8.438 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.475e-05/0.3682, allocations: 68.39 kB / 385 MB, free: 8.359 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002599/0.3708, allocations: 1.565 MB / 386.6 MB, free: 6.785 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001085/0.3709, allocations: 45.7 kB / 386.6 MB, free: 6.734 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008628/0.3718, allocations: 1.108 MB / 387.7 MB, free: 5.609 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003763/0.3722, allocations: 429.8 kB / 388.2 MB, free: 5.184 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001775/0.3724, allocations: 121.6 kB / 388.3 MB, free: 5.059 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.274e-05/0.3725, allocations: 309.1 kB / 388.6 MB, free: 4.754 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001141/0.3736, allocations: 0.7183 MB / 389.3 MB, free: 4.035 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001483/0.3751, allocations: 1.143 MB / 390.4 MB, free: 2.711 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002777/0.3779, allocations: 1.995 MB / 392.4 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.875e-06/0.3779, allocations: 4 kB / 392.4 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.00455/0.3825, allocations: 2.542 MB / 395 MB, free: 13.94 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.363e-05/0.3826, allocations: 12 kB / 395 MB, free: 13.93 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.66e-05/0.3826, allocations: 12 kB / 395 MB, free: 13.92 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001019/0.3836, allocations: 431.3 kB / 395.4 MB, free: 13.48 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00125/0.3849, allocations: 355.5 kB / 395.8 MB, free: 13.14 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006859/0.3918, allocations: 6.546 MB / 402.3 MB, free: 6.188 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001707/0.3935, allocations: 115.8 kB / 402.4 MB, free: 6.074 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001496/0.3937, allocations: 63.98 kB / 402.5 MB, free: 6.012 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 60 * 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 (169): * Single equations (assignments): 165 * 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 {(3,12,100.0%), (1,6,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001558/0.3952, allocations: 0.7168 MB / 403.2 MB, free: 5.285 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003817/0.3956, allocations: 178 kB / 403.4 MB, free: 5.109 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003953/0.3996, allocations: 2.21 MB / 405.6 MB, free: 2.852 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.517e-05/0.3996, allocations: 20 kB / 405.6 MB, free: 2.832 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.35e-05/0.3996, allocations: 4 kB / 405.6 MB, free: 2.828 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.564e-05/0.3997, allocations: 7.969 kB / 405.6 MB, free: 2.82 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008478/0.4082, allocations: 4.801 MB / 410.4 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.133e-05/0.4082, allocations: 4 kB / 410.4 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009426/0.4092, allocations: 232.2 kB / 410.7 MB, free: 13.63 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001154/0.4103, allocations: 462.8 kB / 411.1 MB, free: 13.17 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000113/0.4105, allocations: 31.98 kB / 411.1 MB, free: 13.14 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007904/0.4184, allocations: 7.978 MB / 419.1 MB, free: 4.621 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.235e-06/0.4184, allocations: 4 kB / 419.1 MB, free: 4.617 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005656/0.4241, allocations: 3.255 MB / 422.4 MB, free: 1.262 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001105/0.4252, allocations: 398.9 kB / 422.8 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002583/0.4255, allocations: 32 kB / 422.8 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001115/0.4266, allocations: 95.84 kB / 422.9 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002895/0.4269, allocations: 96.8 kB / 423 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.019e-05/0.427, allocations: 43.92 kB / 423 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001774/0.4288, allocations: 1.074 MB / 424.1 MB, free: 15.52 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4288, allocations: 0 / 424.1 MB, free: 15.52 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001931/0.4307, allocations: 488 kB / 424.6 MB, free: 15.04 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * 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 (108): * Single equations (assignments): 104 * Array equations: 0 * 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 {(3,12,100.0%), (1,6,100.0%), (1,1,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004424/0.4312, allocations: 191.5 kB / 424.8 MB, free: 14.85 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004195/0.4354, allocations: 2.306 MB / 427.1 MB, free: 12.48 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.087e-05/0.4354, allocations: 11.88 kB / 427.1 MB, free: 12.47 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002616/0.4381, allocations: 1.486 MB / 428.6 MB, free: 10.93 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004013/0.4421, allocations: 453.5 kB / 429 MB, free: 10.49 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01008/0.4522, allocations: 5.867 MB / 434.9 MB, free: 4.539 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001685/0.4539, allocations: 1.864 MB / 436.7 MB, free: 2.641 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001562/0.4555, allocations: 386.9 kB / 437.1 MB, free: 2.258 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003878/0.4559, allocations: 127.4 kB / 437.2 MB, free: 2.133 MB / 366.1 MB Notification: Performance of SimCode: time 1.513e-06/0.4559, allocations: 0 / 437.2 MB, free: 2.133 MB / 366.1 MB Notification: Performance of Templates: time 0.262/0.7179, allocations: 24.91 MB / 462.2 MB, free: 103.1 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.makefile (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)