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.009073/0.009074, allocations: 101.1 kB / 15.73 MB, free: 6.039 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.001927/0.001927, allocations: 190.4 kB / 16.67 MB, free: 5.977 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.72/1.72, allocations: 205.1 MB / 222.6 MB, free: 4.379 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.001857/0.001857, allocations: 55.95 kB / 326.6 MB, free: 14.44 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.1072, allocations: 46.63 MB / 373.2 MB, free: 1.293 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter): time 0.015/0.1223, allocations: 10.27 MB / 383.5 MB, free: 6.98 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007736/0.13, allocations: 3.47 MB / 386.9 MB, free: 3.496 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001979/0.1321, allocations: 51.75 kB / 387 MB, free: 3.445 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002444/0.1346, allocations: 0.7685 MB / 387.7 MB, free: 2.672 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003304/0.1379, allocations: 0.8346 MB / 388.6 MB, free: 1.832 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001224/0.1392, allocations: 427.3 kB / 389 MB, free: 1.414 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00374/0.1429, allocations: 2.763 MB / 391.8 MB, free: 14.64 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003611/0.1465, allocations: 2.362 MB / 394.1 MB, free: 12.21 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002265/0.1488, allocations: 1.25 MB / 395.4 MB, free: 10.96 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002956/0.1518, allocations: 1.568 MB / 396.9 MB, free: 9.387 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009896/0.1528, allocations: 336 kB / 397.3 MB, free: 9.059 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001464/0.1543, allocations: 451.8 kB / 397.7 MB, free: 8.617 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009873/0.1553, allocations: 0.935 MB / 398.6 MB, free: 7.68 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002231/0.1575, allocations: 1.509 MB / 400.1 MB, free: 6.164 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006702/0.1643, allocations: 4.385 MB / 404.5 MB, free: 1.766 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.03e-05/0.1643, allocations: 3.984 kB / 404.5 MB, free: 1.762 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.715e-06/0.1643, allocations: 4 kB / 404.5 MB, free: 1.758 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001611/0.1645, allocations: 0 / 404.5 MB, free: 1.758 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.007829/0.1723, allocations: 3.045 MB / 407.6 MB, free: 14.65 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.708e-05/0.1724, allocations: 15.89 kB / 407.6 MB, free: 14.63 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008817/0.1733, allocations: 309.5 kB / 407.9 MB, free: 14.33 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002915/0.1762, allocations: 1.524 MB / 409.4 MB, free: 12.75 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000158/0.1764, allocations: 176.3 kB / 409.6 MB, free: 12.57 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003515/0.1767, allocations: 227.9 kB / 409.8 MB, free: 12.35 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004811/0.1816, allocations: 2.909 MB / 412.7 MB, free: 9.352 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.554e-05/0.1817, allocations: 12 kB / 412.7 MB, free: 9.34 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002246/0.1819, allocations: 88 kB / 412.8 MB, free: 9.254 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000134/0.182, allocations: 108.3 kB / 412.9 MB, free: 9.145 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004415/0.1864, allocations: 2.433 MB / 415.4 MB, free: 6.695 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01432/0.2008, allocations: 9.016 MB / 424.4 MB, free: 13.39 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002352/0.2032, allocations: 1.705 MB / 426.1 MB, free: 11.57 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001724/0.2049, allocations: 0.9721 MB / 427.1 MB, free: 10.6 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002847/0.2052, allocations: 207.2 kB / 427.3 MB, free: 10.36 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.298e-05/0.2053, allocations: 43.56 kB / 427.3 MB, free: 10.3 MB / 366.1 MB Notification: Performance of pre-optimization done (n=105): time 3.066e-06/0.2053, allocations: 0 / 427.3 MB, free: 10.3 MB / 366.1 MB Notification: Performance of matching and sorting (n=122): time 0.01485/0.2201, allocations: 6.531 MB / 433.8 MB, free: 3.605 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.561e-05/0.2202, allocations: 64.41 kB / 433.9 MB, free: 3.531 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002764/0.223, allocations: 1.569 MB / 435.5 MB, free: 1.953 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001929/0.2232, allocations: 49.7 kB / 435.5 MB, free: 1.898 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009636/0.2242, allocations: 1.104 MB / 436.6 MB, free: 0.7773 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004427/0.2246, allocations: 429.8 kB / 437 MB, free: 360 kB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004042/0.225, allocations: 267.4 kB / 437.3 MB, free: 84 kB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001326/0.2252, allocations: 305.1 kB / 437.6 MB, free: 15.78 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001196/0.2264, allocations: 0.7027 MB / 438.3 MB, free: 15.08 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001485/0.2279, allocations: 1.147 MB / 439.5 MB, free: 13.75 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00298/0.2309, allocations: 1.968 MB / 441.4 MB, free: 11.59 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.095e-06/0.2309, allocations: 4 kB / 441.4 MB, free: 11.59 MB / 382.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004739/0.2356, allocations: 2.522 MB / 443.9 MB, free: 9.027 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.614e-05/0.2357, allocations: 11.91 kB / 444 MB, free: 9.016 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.671e-05/0.2357, allocations: 23.94 kB / 444 MB, free: 8.992 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001108/0.2368, allocations: 423.3 kB / 444.4 MB, free: 8.566 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001285/0.2381, allocations: 351.4 kB / 444.7 MB, free: 8.223 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007676/0.2458, allocations: 7.119 MB / 451.9 MB, free: 0.6836 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001906/0.2478, allocations: 103.8 kB / 452 MB, free: 0.582 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001334/0.2479, allocations: 67.98 kB / 452 MB, free: 0.5156 MB / 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.2496/0.4975, allocations: 0.7197 MB / 452.7 MB, free: 68.82 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005851/0.4981, allocations: 169 kB / 452.9 MB, free: 68.82 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004786/0.5029, allocations: 2.18 MB / 455.1 MB, free: 68.61 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.811e-05/0.503, allocations: 16.47 kB / 455.1 MB, free: 68.61 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.303e-05/0.503, allocations: 3.812 kB / 455.1 MB, free: 68.61 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.996e-05/0.503, allocations: 11.38 kB / 455.1 MB, free: 68.61 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009915/0.5129, allocations: 4.768 MB / 459.9 MB, free: 67.02 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.27e-05/0.513, allocations: 3.906 kB / 459.9 MB, free: 67.02 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001041/0.514, allocations: 223.8 kB / 460.1 MB, free: 67 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001265/0.5153, allocations: 451.8 kB / 460.6 MB, free: 66.88 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001077/0.5154, allocations: 40.56 kB / 460.6 MB, free: 66.86 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006871/0.5223, allocations: 8.668 MB / 469.3 MB, free: 59.95 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.54e-06/0.5224, allocations: 9.844 kB / 469.3 MB, free: 59.95 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004919/0.5273, allocations: 3.221 MB / 472.5 MB, free: 58.55 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009626/0.5283, allocations: 404.1 kB / 472.9 MB, free: 58.38 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002108/0.5285, allocations: 29.38 kB / 472.9 MB, free: 58.36 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009258/0.5294, allocations: 93.59 kB / 473 MB, free: 58.34 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002805/0.5297, allocations: 101.7 kB / 473.1 MB, free: 58.32 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.619e-05/0.5298, allocations: 40.8 kB / 473.1 MB, free: 58.31 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001546/0.5314, allocations: 1.07 MB / 474.2 MB, free: 57.89 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5314, allocations: 0 / 474.2 MB, free: 57.89 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001774/0.5332, allocations: 483.8 kB / 474.7 MB, free: 57.85 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.000377/0.5335, allocations: 207.6 kB / 474.9 MB, free: 57.73 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003195/0.5367, allocations: 2.282 MB / 477.2 MB, free: 56.64 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.789e-06/0.5368, allocations: 0 / 477.2 MB, free: 56.64 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001941/0.5387, allocations: 1.479 MB / 478.6 MB, free: 55.67 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001959/0.5407, allocations: 478.3 kB / 479.1 MB, free: 55.44 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007091/0.5478, allocations: 4.684 MB / 483.8 MB, free: 51.91 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001189/0.549, allocations: 1.87 MB / 485.7 MB, free: 50.01 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001188/0.5502, allocations: 394.8 kB / 486.1 MB, free: 49.62 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003076/0.5505, allocations: 127.4 kB / 486.2 MB, free: 49.49 MB / 382.1 MB Notification: Performance of SimCode: time 9.02e-07/0.5505, allocations: 2.953 kB / 486.2 MB, free: 49.49 MB / 382.1 MB Notification: Performance of Templates: time 0.03564/0.5862, allocations: 26.82 MB / 0.501 GB, free: 22.66 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)