Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2_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.2_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.001563/0.001563, allocations: 105.4 kB / 16.62 MB, free: 6.809 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.001491/0.001492, allocations: 193.9 kB / 17.55 MB, free: 5.953 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.574/1.574, allocations: 205.1 MB / 223.4 MB, free: 12.45 MB / 190.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.001207/0.001207, allocations: 47.94 kB / 279.5 MB, free: 3.492 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09621/0.09743, allocations: 46.63 MB / 326.1 MB, free: 4.797 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter): time 0.01229/0.1098, allocations: 10.2 MB / 336.3 MB, free: 10.54 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.007716/0.1176, allocations: 3.425 MB / 339.8 MB, free: 7.102 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001914/0.1195, allocations: 47.75 kB / 339.8 MB, free: 7.055 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002777/0.1224, allocations: 0.6837 MB / 340.5 MB, free: 6.367 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004207/0.1266, allocations: 0.7382 MB / 341.2 MB, free: 5.625 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0011/0.1277, allocations: 387.5 kB / 341.6 MB, free: 5.246 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.004001/0.1317, allocations: 2.747 MB / 344.4 MB, free: 2.488 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002808/0.1345, allocations: 2.362 MB / 346.7 MB, free: 68 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002176/0.1367, allocations: 1.257 MB / 348 MB, free: 14.8 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002526/0.1393, allocations: 1.607 MB / 349.6 MB, free: 13.19 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006408/0.1399, allocations: 336 kB / 349.9 MB, free: 12.86 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001045/0.141, allocations: 443.8 kB / 350.4 MB, free: 12.43 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009727/0.142, allocations: 0.935 MB / 351.3 MB, free: 11.49 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001719/0.1437, allocations: 1.509 MB / 352.8 MB, free: 9.977 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004137/0.1479, allocations: 4.33 MB / 357.1 MB, free: 5.633 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.1479, allocations: 0 / 357.1 MB, free: 5.633 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1479, allocations: 8 kB / 357.1 MB, free: 5.625 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.572e-05/0.148, allocations: 0 / 357.1 MB, free: 5.625 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: 581 * Number of variables: 581 Notification: Performance of Generate backend data structure: time 0.006007/0.154, allocations: 3.049 MB / 360.2 MB, free: 2.512 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.516e-05/0.1541, allocations: 11.89 kB / 360.2 MB, free: 2.5 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007571/0.1548, allocations: 313.4 kB / 360.5 MB, free: 2.191 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002423/0.1573, allocations: 1.516 MB / 362 MB, free: 0.6172 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001486/0.1574, allocations: 172.5 kB / 362.2 MB, free: 456 kB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003218/0.1578, allocations: 227.9 kB / 362.4 MB, free: 228 kB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005042/0.1628, allocations: 2.913 MB / 365.3 MB, free: 13.22 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.832e-05/0.1629, allocations: 3.906 kB / 365.3 MB, free: 13.22 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002114/0.1631, allocations: 95.98 kB / 365.4 MB, free: 13.12 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001288/0.1632, allocations: 112.3 kB / 365.5 MB, free: 13.01 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004701/0.1679, allocations: 2.433 MB / 368 MB, free: 10.56 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01729/0.1853, allocations: 9.117 MB / 377.1 MB, free: 1.16 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1941/0.3794, allocations: 1.704 MB / 378.8 MB, free: 50.51 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002276/0.3817, allocations: 0.9854 MB / 379.8 MB, free: 50.5 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003332/0.3821, allocations: 210 kB / 380 MB, free: 50.31 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.803e-05/0.3821, allocations: 42.88 kB / 380 MB, free: 50.27 MB / 318.1 MB Notification: Performance of pre-optimization done (n=105): time 4.328e-06/0.3821, allocations: 0 / 380 MB, free: 50.27 MB / 318.1 MB Notification: Performance of matching and sorting (n=122): time 0.01366/0.3958, allocations: 6.529 MB / 386.5 MB, free: 48.06 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.338e-05/0.3959, allocations: 64.81 kB / 386.6 MB, free: 48 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00215/0.398, allocations: 1.563 MB / 388.2 MB, free: 47.39 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.082e-05/0.3981, allocations: 46.58 kB / 388.2 MB, free: 47.35 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007391/0.3989, allocations: 1.107 MB / 389.3 MB, free: 46.49 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003518/0.3992, allocations: 428 kB / 389.7 MB, free: 46.17 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004333/0.3997, allocations: 272.8 kB / 390 MB, free: 46.04 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.311e-05/0.3997, allocations: 301.1 kB / 390.3 MB, free: 45.74 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001051/0.4008, allocations: 0.7135 MB / 391 MB, free: 45.5 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001077/0.4019, allocations: 1.136 MB / 392.2 MB, free: 44.71 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002169/0.404, allocations: 1.967 MB / 394.1 MB, free: 43.54 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.416e-06/0.4041, allocations: 4 kB / 394.1 MB, free: 43.54 MB / 318.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.003478/0.4075, allocations: 2.518 MB / 396.6 MB, free: 42.48 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.252e-05/0.4076, allocations: 16.19 kB / 396.7 MB, free: 42.48 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.797e-05/0.4076, allocations: 18.73 kB / 396.7 MB, free: 42.48 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008392/0.4084, allocations: 420.3 kB / 397.1 MB, free: 42.35 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0011/0.4096, allocations: 351.2 kB / 397.4 MB, free: 42.31 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005021/0.4146, allocations: 7.136 MB / 404.6 MB, free: 36.36 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001207/0.4158, allocations: 108.2 kB / 404.7 MB, free: 36.3 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.387e-05/0.4159, allocations: 69.14 kB / 404.7 MB, free: 36.29 MB / 318.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.001032/0.417, allocations: 0.713 MB / 405.5 MB, free: 35.8 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002536/0.4172, allocations: 169.1 kB / 405.6 MB, free: 35.71 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002913/0.4201, allocations: 2.175 MB / 407.8 MB, free: 33.55 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.223e-06/0.4202, allocations: 15.94 kB / 407.8 MB, free: 33.54 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.241e-06/0.4202, allocations: 8 kB / 407.8 MB, free: 33.53 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.047e-05/0.4202, allocations: 11.97 kB / 407.8 MB, free: 33.52 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006053/0.4262, allocations: 4.788 MB / 412.6 MB, free: 28.61 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.284e-06/0.4263, allocations: 4 kB / 412.6 MB, free: 28.61 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007997/0.4271, allocations: 227.7 kB / 412.8 MB, free: 28.38 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009452/0.428, allocations: 451.3 kB / 413.3 MB, free: 27.93 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.904e-05/0.4281, allocations: 43.97 kB / 413.3 MB, free: 27.89 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006176/0.4343, allocations: 8.672 MB / 422 MB, free: 18.68 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.839e-06/0.4344, allocations: 12 kB / 422 MB, free: 18.67 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005372/0.4398, allocations: 3.22 MB / 425.2 MB, free: 15.35 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008918/0.4407, allocations: 394.8 kB / 425.6 MB, free: 14.95 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002179/0.4409, allocations: 40 kB / 425.7 MB, free: 14.91 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008652/0.4418, allocations: 79.91 kB / 425.7 MB, free: 14.83 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002614/0.4421, allocations: 108.7 kB / 425.8 MB, free: 14.72 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.101e-05/0.4422, allocations: 39.98 kB / 425.9 MB, free: 14.68 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001724/0.4439, allocations: 1.064 MB / 426.9 MB, free: 13.62 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4439, allocations: 0 / 426.9 MB, free: 13.62 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.002426/0.4463, allocations: 494.7 kB / 427.4 MB, free: 13.14 MB / 318.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.0004467/0.4468, allocations: 188.3 kB / 427.6 MB, free: 12.95 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.004675/0.4515, allocations: 2.787 MB / 430.4 MB, free: 10.13 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.074e-05/0.4515, allocations: 384 / 430.4 MB, free: 10.13 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001999/0.4535, allocations: 1.476 MB / 431.9 MB, free: 8.602 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002595/0.4561, allocations: 482.4 kB / 432.3 MB, free: 8.133 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006877/0.463, allocations: 5.723 MB / 438.1 MB, free: 2.348 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00118/0.4642, allocations: 1.871 MB / 439.9 MB, free: 452 kB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.00117/0.4654, allocations: 386.9 kB / 440.3 MB, free: 60 kB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003416/0.4658, allocations: 127.4 kB / 440.4 MB, free: 15.93 MB / 334.1 MB Notification: Performance of SimCode: time 1.202e-06/0.4658, allocations: 0 / 440.4 MB, free: 15.93 MB / 334.1 MB Notification: Performance of Templates: time 0.04742/0.5132, allocations: 26.3 MB / 466.7 MB, free: 5.613 MB / 350.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.sim & ./Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe 2>&1)