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.001375/0.001375, allocations: 89.52 kB / 16.65 MB, free: 6.586 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.001834/0.001834, allocations: 181.6 kB / 17.56 MB, free: 6.203 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.557/1.557, allocations: 205.4 MB / 223.7 MB, free: 13.08 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.000536/0.0005363, allocations: 19.98 kB / 280.8 MB, free: 3.406 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1055/0.1061, allocations: 47.58 MB / 328.3 MB, free: 3.762 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter): time 0.01079/0.1169, allocations: 9.656 MB / 338 MB, free: 10.06 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00681/0.1238, allocations: 3.421 MB / 341.4 MB, free: 6.621 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001595/0.1254, allocations: 43.75 kB / 341.4 MB, free: 6.578 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002162/0.1276, allocations: 0.6759 MB / 342.1 MB, free: 5.898 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002825/0.1304, allocations: 0.742 MB / 342.9 MB, free: 5.152 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001018/0.1315, allocations: 379.6 kB / 343.2 MB, free: 4.781 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003551/0.135, allocations: 3.082 MB / 346.3 MB, free: 1.688 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002272/0.1373, allocations: 1.981 MB / 348.3 MB, free: 15.64 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001656/0.139, allocations: 0.949 MB / 349.2 MB, free: 14.69 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001839/0.1408, allocations: 1.342 MB / 350.6 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002823/0.1411, allocations: 140 kB / 350.7 MB, free: 13.21 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006417/0.1418, allocations: 251.8 kB / 351 MB, free: 12.96 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007077/0.1425, allocations: 0.7163 MB / 351.7 MB, free: 12.24 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001278/0.1438, allocations: 1.272 MB / 353 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004233/0.148, allocations: 4.087 MB / 357 MB, free: 6.855 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.121e-06/0.1481, allocations: 4 kB / 357.1 MB, free: 6.852 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.479e-06/0.1481, allocations: 0 / 357.1 MB, free: 6.852 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001441/0.1483, allocations: 3.938 kB / 357.1 MB, free: 6.848 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.006416/0.1547, allocations: 2.593 MB / 359.7 MB, free: 4.191 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.462e-05/0.1548, allocations: 12.03 kB / 359.7 MB, free: 4.18 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00121/0.156, allocations: 309.4 kB / 360 MB, free: 3.875 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003176/0.1592, allocations: 1.513 MB / 361.5 MB, free: 2.305 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001785/0.1594, allocations: 184.5 kB / 361.7 MB, free: 2.121 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004317/0.1598, allocations: 223.9 kB / 361.9 MB, free: 1.902 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006271/0.1661, allocations: 2.929 MB / 364.8 MB, free: 14.89 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.671e-05/0.1662, allocations: 0 / 364.8 MB, free: 14.89 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002268/0.1664, allocations: 88 kB / 364.9 MB, free: 14.8 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001464/0.1666, allocations: 120.3 kB / 365 MB, free: 14.68 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006351/0.173, allocations: 2.453 MB / 367.5 MB, free: 12.21 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02532/0.1983, allocations: 9.16 MB / 376.6 MB, free: 2.766 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003206/0.2016, allocations: 1.722 MB / 378.3 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.1863/0.388, allocations: 0.9931 MB / 379.3 MB, free: 51.07 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004026/0.3884, allocations: 205.2 kB / 379.5 MB, free: 50.89 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.543e-05/0.3885, allocations: 45.06 kB / 379.6 MB, free: 50.85 MB / 318.1 MB Notification: Performance of pre-optimization done (n=105): time 3.877e-06/0.3885, allocations: 0 / 379.6 MB, free: 50.85 MB / 318.1 MB Notification: Performance of matching and sorting (n=122): time 0.01618/0.4047, allocations: 6.664 MB / 386.2 MB, free: 48.86 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.985e-05/0.4047, allocations: 64.69 kB / 386.3 MB, free: 48.8 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00254/0.4073, allocations: 1.563 MB / 387.9 MB, free: 48.2 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.586e-05/0.4074, allocations: 46.05 kB / 387.9 MB, free: 48.15 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000718/0.4081, allocations: 1.105 MB / 389 MB, free: 47.29 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002904/0.4084, allocations: 429.6 kB / 389.4 MB, free: 46.97 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000177/0.4086, allocations: 122.4 kB / 389.6 MB, free: 46.91 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.694e-05/0.4086, allocations: 302 kB / 389.9 MB, free: 46.61 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001194/0.4098, allocations: 0.7202 MB / 390.6 MB, free: 46.36 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001228/0.4111, allocations: 1.15 MB / 391.7 MB, free: 45.58 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002448/0.4135, allocations: 1.992 MB / 393.7 MB, free: 44.4 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.337e-05/0.4136, allocations: 8.75 kB / 393.7 MB, free: 44.4 MB / 318.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.003786/0.4174, allocations: 2.549 MB / 396.3 MB, free: 43.33 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.476e-05/0.4174, allocations: 11.84 kB / 396.3 MB, free: 43.33 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.535e-05/0.4174, allocations: 11.78 kB / 396.3 MB, free: 43.33 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008572/0.4183, allocations: 422.9 kB / 396.7 MB, free: 43.2 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001095/0.4194, allocations: 348.8 kB / 397 MB, free: 43.17 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005077/0.4245, allocations: 6.557 MB / 403.6 MB, free: 37.82 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001221/0.4257, allocations: 116.2 kB / 403.7 MB, free: 37.77 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.611e-05/0.4258, allocations: 65.64 kB / 403.8 MB, free: 37.75 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.00108/0.4269, allocations: 0.7139 MB / 404.5 MB, free: 37.27 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002148/0.4271, allocations: 174.2 kB / 404.7 MB, free: 37.18 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0031/0.4302, allocations: 2.2 MB / 406.9 MB, free: 35.01 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.915e-06/0.4302, allocations: 15 kB / 406.9 MB, free: 35 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.103e-06/0.4303, allocations: 4 kB / 406.9 MB, free: 34.99 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.065e-05/0.4303, allocations: 11.97 kB / 406.9 MB, free: 34.98 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00595/0.4362, allocations: 4.82 MB / 411.7 MB, free: 30.04 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.343e-06/0.4363, allocations: 4 kB / 411.7 MB, free: 30.04 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000816/0.4371, allocations: 228.2 kB / 411.9 MB, free: 29.81 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009357/0.438, allocations: 455.8 kB / 412.4 MB, free: 29.36 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.38e-05/0.4381, allocations: 36.64 kB / 412.4 MB, free: 29.32 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005557/0.4437, allocations: 7.979 MB / 420.4 MB, free: 20.83 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.821e-06/0.4437, allocations: 11.88 kB / 420.4 MB, free: 20.82 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004304/0.448, allocations: 3.246 MB / 423.7 MB, free: 17.48 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000807/0.4488, allocations: 402.8 kB / 424.1 MB, free: 17.06 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001934/0.449, allocations: 28 kB / 424.1 MB, free: 17.04 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009399/0.45, allocations: 99.84 kB / 424.2 MB, free: 16.94 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002147/0.4502, allocations: 104.7 kB / 424.3 MB, free: 16.84 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.615e-05/0.4503, allocations: 39.98 kB / 424.3 MB, free: 16.8 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001349/0.4516, allocations: 1.07 MB / 425.4 MB, free: 15.73 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.173e-06/0.4516, allocations: 0 / 425.4 MB, free: 15.73 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001753/0.4534, allocations: 497.1 kB / 425.9 MB, free: 15.25 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.0003725/0.4538, allocations: 186.2 kB / 426.1 MB, free: 15.06 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003068/0.4569, allocations: 2.298 MB / 428.4 MB, free: 12.71 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.979e-06/0.4569, allocations: 4 kB / 428.4 MB, free: 12.7 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001924/0.4588, allocations: 1.494 MB / 429.9 MB, free: 11.16 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002666/0.4615, allocations: 461.5 kB / 430.3 MB, free: 10.72 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006568/0.4681, allocations: 5.844 MB / 436.2 MB, free: 4.801 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001196/0.4693, allocations: 1.864 MB / 438 MB, free: 2.898 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.001009/0.4703, allocations: 386.9 kB / 438.4 MB, free: 2.516 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002962/0.4706, allocations: 123.4 kB / 438.5 MB, free: 2.395 MB / 318.1 MB Notification: Performance of SimCode: time 8.32e-07/0.4706, allocations: 0 / 438.5 MB, free: 2.395 MB / 318.1 MB Notification: Performance of Templates: time 0.04415/0.5148, allocations: 24.95 MB / 463.5 MB, free: 9.43 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)