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.01018/0.01018, allocations: 101.8 kB / 15.73 MB, free: 6.035 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.002436/0.002437, allocations: 192.9 kB / 16.67 MB, free: 5.973 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.653/1.653, allocations: 205.1 MB / 222.6 MB, free: 4.48 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.001232/0.001232, allocations: 58.38 kB / 326.6 MB, free: 14.4 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1094/0.1107, allocations: 46.61 MB / 373.2 MB, free: 1.309 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter): time 0.01334/0.1241, allocations: 10.27 MB / 383.4 MB, free: 6.992 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008826/0.133, allocations: 3.482 MB / 386.9 MB, free: 3.496 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002272/0.1353, allocations: 47.81 kB / 387 MB, free: 3.449 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002569/0.1379, allocations: 0.8232 MB / 387.8 MB, free: 2.621 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004099/0.142, allocations: 0.8737 MB / 388.7 MB, free: 1.742 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001822/0.1439, allocations: 427.4 kB / 389.1 MB, free: 1.324 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004743/0.1486, allocations: 2.755 MB / 391.8 MB, free: 14.56 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004041/0.1527, allocations: 2.366 MB / 394.2 MB, free: 12.13 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002325/0.155, allocations: 1.261 MB / 395.5 MB, free: 10.86 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002784/0.1578, allocations: 1.572 MB / 397 MB, free: 9.285 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008328/0.1587, allocations: 336 kB / 397.4 MB, free: 8.957 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001342/0.16, allocations: 443.8 kB / 397.8 MB, free: 8.523 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00122/0.1613, allocations: 0.9388 MB / 398.7 MB, free: 7.582 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002189/0.1635, allocations: 1.505 MB / 400.2 MB, free: 6.07 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004157/0.1676, allocations: 4.389 MB / 404.6 MB, free: 1.668 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.1677, allocations: 3.938 kB / 404.6 MB, free: 1.664 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.264e-06/0.1677, allocations: 4 kB / 404.6 MB, free: 1.66 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.896e-05/0.1678, allocations: 0 / 404.6 MB, free: 1.66 MB / 334.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.005764/0.1735, allocations: 3.053 MB / 407.7 MB, free: 14.54 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.27e-05/0.1736, allocations: 11.89 kB / 407.7 MB, free: 14.53 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007514/0.1743, allocations: 309.5 kB / 408 MB, free: 14.23 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002451/0.1768, allocations: 1.528 MB / 409.5 MB, free: 12.64 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000146/0.177, allocations: 168.4 kB / 409.7 MB, free: 12.47 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003308/0.1773, allocations: 223.9 kB / 409.9 MB, free: 12.25 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004785/0.1821, allocations: 2.913 MB / 412.8 MB, free: 9.254 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.408e-05/0.1822, allocations: 8 kB / 412.8 MB, free: 9.246 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002032/0.1824, allocations: 92 kB / 412.9 MB, free: 9.156 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000139/0.1825, allocations: 108.3 kB / 413 MB, free: 9.047 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004062/0.1866, allocations: 2.43 MB / 415.5 MB, free: 6.602 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01369/0.2003, allocations: 9.023 MB / 424.5 MB, free: 13.29 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002405/0.2027, allocations: 1.693 MB / 426.2 MB, free: 11.48 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001775/0.2045, allocations: 0.9721 MB / 427.2 MB, free: 10.51 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003068/0.2049, allocations: 211.2 kB / 427.4 MB, free: 10.27 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.321e-05/0.2049, allocations: 44.03 kB / 427.4 MB, free: 10.21 MB / 366.1 MB Notification: Performance of pre-optimization done (n=105): time 5.209e-06/0.2049, allocations: 0 / 427.4 MB, free: 10.21 MB / 366.1 MB Notification: Performance of matching and sorting (n=122): time 0.01501/0.2199, allocations: 6.535 MB / 433.9 MB, free: 3.508 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.751e-05/0.22, allocations: 64.41 kB / 434 MB, free: 3.434 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002706/0.2227, allocations: 1.569 MB / 435.6 MB, free: 1.855 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000117/0.2229, allocations: 49.7 kB / 435.6 MB, free: 1.801 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008301/0.2237, allocations: 1.104 MB / 436.7 MB, free: 0.6797 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003837/0.2241, allocations: 429.8 kB / 437.1 MB, free: 260 kB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004541/0.2246, allocations: 267.5 kB / 437.4 MB, free: 15.98 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001301/0.2247, allocations: 305.1 kB / 437.7 MB, free: 15.68 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001247/0.226, allocations: 0.7066 MB / 438.4 MB, free: 14.97 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0015/0.2275, allocations: 1.151 MB / 439.6 MB, free: 13.64 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002826/0.2303, allocations: 1.968 MB / 441.5 MB, free: 11.48 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.759e-06/0.2303, allocations: 4 kB / 441.5 MB, free: 11.48 MB / 382.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.00441/0.2348, allocations: 2.518 MB / 444.1 MB, free: 8.922 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.827e-05/0.2348, allocations: 11.91 kB / 444.1 MB, free: 8.91 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.108e-05/0.2348, allocations: 16 kB / 444.1 MB, free: 8.895 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001036/0.2359, allocations: 423.3 kB / 444.5 MB, free: 8.469 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001301/0.2372, allocations: 347.4 kB / 444.8 MB, free: 8.129 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007332/0.2445, allocations: 7.127 MB / 452 MB, free: 0.5859 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001346/0.2459, allocations: 107.8 kB / 452.1 MB, free: 492 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001392/0.2461, allocations: 67.98 kB / 452.1 MB, free: 424 kB / 382.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.1874/0.4334, allocations: 0.7136 MB / 452.8 MB, free: 68.85 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007911/0.4342, allocations: 171.2 kB / 453 MB, free: 68.85 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005354/0.4396, allocations: 2.184 MB / 455.2 MB, free: 68.64 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.589e-05/0.4396, allocations: 16.23 kB / 455.2 MB, free: 68.64 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.113e-05/0.4397, allocations: 4.656 kB / 455.2 MB, free: 68.64 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.875e-05/0.4397, allocations: 6.516 kB / 455.2 MB, free: 68.64 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01031/0.45, allocations: 4.766 MB / 460 MB, free: 67.02 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-05/0.45, allocations: 5.688 kB / 460 MB, free: 67.02 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009661/0.451, allocations: 227.1 kB / 460.2 MB, free: 67 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001197/0.4522, allocations: 449.5 kB / 460.7 MB, free: 66.88 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.726e-05/0.4523, allocations: 40.41 kB / 460.7 MB, free: 66.86 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007216/0.4596, allocations: 8.669 MB / 469.4 MB, free: 59.96 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.578e-06/0.4596, allocations: 11.44 kB / 469.4 MB, free: 59.95 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005808/0.4654, allocations: 3.215 MB / 472.6 MB, free: 58.56 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000956/0.4664, allocations: 398.3 kB / 473 MB, free: 58.38 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002264/0.4666, allocations: 33.28 kB / 473 MB, free: 58.37 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009284/0.4676, allocations: 91.77 kB / 473.1 MB, free: 58.34 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002601/0.4679, allocations: 99.89 kB / 473.2 MB, free: 58.32 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.529e-05/0.4679, allocations: 42.81 kB / 473.2 MB, free: 58.32 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001624/0.4696, allocations: 1.069 MB / 474.3 MB, free: 57.9 MB / 382.1 MB Notification: Performance of sort global known variables: time 5.21e-07/0.4696, allocations: 0 / 474.3 MB, free: 57.9 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001673/0.4713, allocations: 482.4 kB / 474.8 MB, free: 57.86 MB / 382.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.0003714/0.4716, allocations: 206 kB / 475 MB, free: 57.74 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003312/0.475, allocations: 2.289 MB / 477.3 MB, free: 56.62 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.58e-06/0.475, allocations: 0 / 477.3 MB, free: 56.62 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002045/0.477, allocations: 1.475 MB / 478.7 MB, free: 55.65 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002254/0.4793, allocations: 478.4 kB / 479.2 MB, free: 55.42 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006755/0.4861, allocations: 4.693 MB / 483.9 MB, free: 51.77 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001111/0.4872, allocations: 1.874 MB / 485.8 MB, free: 49.87 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001062/0.4883, allocations: 386.9 kB / 486.2 MB, free: 49.48 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003043/0.4886, allocations: 127.4 kB / 486.3 MB, free: 49.36 MB / 382.1 MB Notification: Performance of SimCode: time 9.82e-07/0.4886, allocations: 2.953 kB / 486.3 MB, free: 49.36 MB / 382.1 MB Notification: Performance of Templates: time 0.04564/0.5343, allocations: 26.83 MB / 0.5011 GB, free: 22.51 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)