Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.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.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.009804/0.009804, allocations: 104.4 kB / 15.74 MB, free: 6.441 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.001753/0.001753, allocations: 190.2 kB / 16.67 MB, free: 6.355 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.695/1.695, allocations: 205.1 MB / 222.5 MB, free: 4.484 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.001275/0.001275, allocations: 55.2 kB / 326.6 MB, free: 14.42 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.111/0.1123, allocations: 46.63 MB / 373.2 MB, free: 1.281 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter): time 0.0124/0.1248, allocations: 10.25 MB / 383.4 MB, free: 6.98 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008976/0.1338, allocations: 3.486 MB / 386.9 MB, free: 3.48 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002022/0.1359, allocations: 51.75 kB / 387 MB, free: 3.43 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002759/0.1387, allocations: 0.8154 MB / 387.8 MB, free: 2.609 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003518/0.1423, allocations: 0.8737 MB / 388.7 MB, free: 1.73 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001141/0.1434, allocations: 423.4 kB / 389.1 MB, free: 1.316 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004076/0.1475, allocations: 2.763 MB / 391.8 MB, free: 14.54 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00278/0.1503, allocations: 2.362 MB / 394.2 MB, free: 12.12 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002332/0.1527, allocations: 1.261 MB / 395.5 MB, free: 10.85 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002625/0.1553, allocations: 1.58 MB / 397 MB, free: 9.266 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000563/0.1559, allocations: 336 kB / 397.4 MB, free: 8.938 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001179/0.1571, allocations: 443.8 kB / 397.8 MB, free: 8.504 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001175/0.1583, allocations: 0.9389 MB / 398.7 MB, free: 7.562 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00242/0.1607, allocations: 1.505 MB / 400.3 MB, free: 6.051 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00582/0.1665, allocations: 4.381 MB / 404.6 MB, free: 1.656 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.788e-06/0.1666, allocations: 0 / 404.6 MB, free: 1.656 MB / 334.1 MB Notification: Performance of FrontEnd: time 4.038e-06/0.1666, allocations: 0 / 404.6 MB, free: 1.656 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001872/0.1668, allocations: 0 / 404.6 MB, free: 1.656 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.008065/0.1749, allocations: 3.061 MB / 407.7 MB, free: 14.53 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.62e-05/0.175, allocations: 11.89 kB / 407.7 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008563/0.1758, allocations: 305.5 kB / 408 MB, free: 14.22 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002539/0.1784, allocations: 1.532 MB / 409.5 MB, free: 12.63 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001211/0.1785, allocations: 168.4 kB / 409.7 MB, free: 12.46 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003426/0.1789, allocations: 223.9 kB / 409.9 MB, free: 12.24 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005082/0.184, allocations: 2.913 MB / 412.8 MB, free: 9.242 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.903e-05/0.184, allocations: 4 kB / 412.8 MB, free: 9.238 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002022/0.1843, allocations: 91.94 kB / 412.9 MB, free: 9.148 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001169/0.1844, allocations: 116.3 kB / 413 MB, free: 9.031 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004248/0.1886, allocations: 2.43 MB / 415.5 MB, free: 6.586 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0157/0.2044, allocations: 9.016 MB / 424.5 MB, free: 13.29 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002423/0.2068, allocations: 1.706 MB / 426.2 MB, free: 11.46 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00179/0.2087, allocations: 0.9682 MB / 427.2 MB, free: 10.49 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003353/0.209, allocations: 211.2 kB / 427.4 MB, free: 10.25 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.548e-05/0.2091, allocations: 43.56 kB / 427.4 MB, free: 10.2 MB / 366.1 MB Notification: Performance of pre-optimization done (n=105): time 3.727e-06/0.2091, allocations: 0 / 427.4 MB, free: 10.2 MB / 366.1 MB Notification: Performance of matching and sorting (n=122): time 0.01463/0.2237, allocations: 6.528 MB / 433.9 MB, free: 3.5 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.525e-05/0.2238, allocations: 68.41 kB / 434 MB, free: 3.422 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002728/0.2266, allocations: 1.573 MB / 435.6 MB, free: 1.84 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001446/0.2267, allocations: 49.64 kB / 435.6 MB, free: 1.785 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008317/0.2276, allocations: 1.104 MB / 436.7 MB, free: 0.6641 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003685/0.228, allocations: 429.8 kB / 437.1 MB, free: 244 kB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004364/0.2284, allocations: 271.4 kB / 437.4 MB, free: 15.96 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001212/0.2285, allocations: 301.1 kB / 437.7 MB, free: 15.67 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001278/0.2298, allocations: 0.7144 MB / 438.4 MB, free: 14.95 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001589/0.2314, allocations: 1.135 MB / 439.6 MB, free: 13.64 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002901/0.2343, allocations: 1.964 MB / 441.5 MB, free: 11.48 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.109e-05/0.2344, allocations: 4 kB / 441.5 MB, free: 11.48 MB / 382.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004588/0.239, allocations: 2.526 MB / 444.1 MB, free: 8.914 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.438e-05/0.239, allocations: 12 kB / 444.1 MB, free: 8.902 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.687e-05/0.2391, allocations: 12 kB / 444.1 MB, free: 8.891 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001144/0.2402, allocations: 431 kB / 444.5 MB, free: 8.457 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001237/0.2415, allocations: 351.5 kB / 444.8 MB, free: 8.113 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007389/0.2489, allocations: 7.119 MB / 452 MB, free: 0.5742 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001598/0.2505, allocations: 115.8 kB / 452.1 MB, free: 472 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001149/0.2506, allocations: 60 kB / 452.1 MB, free: 412 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.2533/0.5039, allocations: 0.7119 MB / 452.8 MB, free: 68.76 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007228/0.5046, allocations: 169.3 kB / 453 MB, free: 68.76 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004613/0.5093, allocations: 2.191 MB / 455.2 MB, free: 68.55 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.714e-05/0.5093, allocations: 12.38 kB / 455.2 MB, free: 68.55 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.062e-05/0.5093, allocations: 3.688 kB / 455.2 MB, free: 68.55 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.942e-05/0.5093, allocations: 7.938 kB / 455.2 MB, free: 68.55 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009712/0.5191, allocations: 4.763 MB / 460 MB, free: 66.93 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.568e-05/0.5191, allocations: 4.375 kB / 460 MB, free: 66.93 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000978/0.5201, allocations: 226 kB / 460.2 MB, free: 66.91 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001293/0.5214, allocations: 459.6 kB / 460.7 MB, free: 66.79 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001254/0.5215, allocations: 36.92 kB / 460.7 MB, free: 66.77 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007402/0.529, allocations: 8.671 MB / 469.4 MB, free: 59.87 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.887e-06/0.529, allocations: 17.42 kB / 469.4 MB, free: 59.86 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005532/0.5346, allocations: 3.213 MB / 472.6 MB, free: 58.47 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001298/0.5359, allocations: 398.5 kB / 473 MB, free: 58.29 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000291/0.5362, allocations: 31.03 kB / 473 MB, free: 58.28 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009623/0.5372, allocations: 97.94 kB / 473.1 MB, free: 58.25 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002716/0.5375, allocations: 101.4 kB / 473.2 MB, free: 58.23 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.055e-05/0.5375, allocations: 38.66 kB / 473.2 MB, free: 58.23 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00145/0.539, allocations: 1.075 MB / 474.3 MB, free: 57.81 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.539, allocations: 3.25 kB / 474.3 MB, free: 57.81 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001692/0.5407, allocations: 483.3 kB / 474.8 MB, free: 57.77 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.0003607/0.5411, allocations: 192.2 kB / 475 MB, free: 57.65 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003281/0.5444, allocations: 2.287 MB / 477.3 MB, free: 56.52 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.458e-06/0.5444, allocations: 0 / 477.3 MB, free: 56.52 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001976/0.5464, allocations: 1.478 MB / 478.8 MB, free: 55.56 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00208/0.5485, allocations: 474.4 kB / 479.2 MB, free: 55.35 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006602/0.5551, allocations: 4.693 MB / 483.9 MB, free: 51.73 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001106/0.5562, allocations: 1.874 MB / 485.8 MB, free: 49.82 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.00111/0.5573, allocations: 390.9 kB / 486.2 MB, free: 49.44 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003154/0.5576, allocations: 127.4 kB / 486.3 MB, free: 49.31 MB / 382.1 MB Notification: Performance of SimCode: time 2.424e-06/0.5576, allocations: 0 / 486.3 MB, free: 49.31 MB / 382.1 MB Notification: Performance of Templates: time 0.03878/0.5964, allocations: 26.83 MB / 0.5011 GB, free: 22.47 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.makefile (rm -f Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.sim & ./Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe 2>&1)