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.001181/0.001181, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001519/0.001519, allocations: 198.3 kB / 16.54 MB, free: 6.672 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.537/1.537, allocations: 205.1 MB / 222.4 MB, free: 4.629 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.001355/0.001355, allocations: 63.86 kB / 278.7 MB, free: 12.36 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2851/0.2865, allocations: 46.63 MB / 325.3 MB, free: 1.867 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter): time 0.01498/0.3015, allocations: 10.26 MB / 335.6 MB, free: 9.633 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.009605/0.3112, allocations: 3.484 MB / 339.1 MB, free: 6.137 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003243/0.3145, allocations: 47.81 kB / 339.1 MB, free: 6.09 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003003/0.3175, allocations: 0.7646 MB / 339.9 MB, free: 5.32 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004748/0.3223, allocations: 0.8268 MB / 340.7 MB, free: 4.488 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00168/0.324, allocations: 427.4 kB / 341.1 MB, free: 4.07 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.004812/0.3289, allocations: 2.747 MB / 343.9 MB, free: 1.312 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003262/0.3321, allocations: 2.374 MB / 346.2 MB, free: 14.88 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002562/0.3347, allocations: 1.246 MB / 347.5 MB, free: 13.63 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003103/0.3379, allocations: 1.588 MB / 349.1 MB, free: 12.04 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009566/0.3388, allocations: 336 kB / 349.4 MB, free: 11.71 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001307/0.3402, allocations: 427.8 kB / 349.8 MB, free: 11.29 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001046/0.3412, allocations: 0.9389 MB / 350.8 MB, free: 10.35 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002063/0.3433, allocations: 1.509 MB / 352.3 MB, free: 8.832 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005464/0.3488, allocations: 4.327 MB / 356.6 MB, free: 4.492 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.069e-05/0.3488, allocations: 0 / 356.6 MB, free: 4.492 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.494e-06/0.3489, allocations: 0 / 356.6 MB, free: 4.492 MB / 286.1 MB Notification: Performance of Transformations before backend: time 0.0001708/0.349, allocations: 0 / 356.6 MB, free: 4.492 MB / 286.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.009381/0.3584, allocations: 3.057 MB / 359.7 MB, free: 1.371 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.677e-05/0.3585, allocations: 15.89 kB / 359.7 MB, free: 1.355 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001159/0.3597, allocations: 313.4 kB / 360 MB, free: 1.047 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00295/0.3627, allocations: 1.509 MB / 361.5 MB, free: 15.48 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001762/0.3628, allocations: 176.5 kB / 361.7 MB, free: 15.3 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003496/0.3632, allocations: 219.9 kB / 361.9 MB, free: 15.09 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005853/0.3691, allocations: 2.917 MB / 364.8 MB, free: 12.09 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.891e-05/0.3692, allocations: 7.906 kB / 364.8 MB, free: 12.08 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002195/0.3694, allocations: 84 kB / 364.9 MB, free: 12 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000163/0.3696, allocations: 120.3 kB / 365 MB, free: 11.88 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005462/0.3751, allocations: 2.43 MB / 367.4 MB, free: 9.43 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01847/0.3936, allocations: 9.121 MB / 376.5 MB, free: 16 kB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002696/0.3963, allocations: 1.698 MB / 378.2 MB, free: 14.2 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001951/0.3983, allocations: 0.9916 MB / 379.2 MB, free: 13.21 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000353/0.3987, allocations: 207.1 kB / 379.4 MB, free: 12.97 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.3e-05/0.3988, allocations: 47.56 kB / 379.5 MB, free: 12.91 MB / 318.1 MB Notification: Performance of pre-optimization done (n=105): time 3.897e-06/0.3988, allocations: 0 / 379.5 MB, free: 12.91 MB / 318.1 MB Notification: Performance of matching and sorting (n=122): time 0.01687/0.4157, allocations: 6.531 MB / 386 MB, free: 6.223 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.578e-05/0.4158, allocations: 64.41 kB / 386.1 MB, free: 6.148 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002829/0.4186, allocations: 1.569 MB / 387.6 MB, free: 4.57 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001412/0.4188, allocations: 45.7 kB / 387.7 MB, free: 4.52 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009043/0.4197, allocations: 1.115 MB / 388.8 MB, free: 3.387 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004022/0.4201, allocations: 417.9 kB / 389.2 MB, free: 2.973 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004889/0.4206, allocations: 275.3 kB / 389.5 MB, free: 2.699 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001434/0.4208, allocations: 305.1 kB / 389.8 MB, free: 2.398 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001332/0.4221, allocations: 0.7066 MB / 390.5 MB, free: 1.691 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001552/0.4237, allocations: 1.139 MB / 391.6 MB, free: 380 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002792/0.4265, allocations: 1.972 MB / 393.6 MB, free: 14.21 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.716e-06/0.4265, allocations: 4 kB / 393.6 MB, free: 14.21 MB / 334.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.00492/0.4314, allocations: 2.514 MB / 396.1 MB, free: 11.65 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.108e-05/0.4315, allocations: 12 kB / 396.1 MB, free: 11.64 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.628e-05/0.4315, allocations: 12 kB / 396.1 MB, free: 11.63 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001065/0.4326, allocations: 435.3 kB / 396.6 MB, free: 11.19 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001305/0.4339, allocations: 351.4 kB / 396.9 MB, free: 10.85 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007827/0.4418, allocations: 7.119 MB / 404 MB, free: 3.305 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002113/0.4439, allocations: 107.9 kB / 404.1 MB, free: 3.199 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002011/0.4442, allocations: 60 kB / 404.2 MB, free: 3.141 MB / 334.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.001851/0.446, allocations: 0.7207 MB / 404.9 MB, free: 2.41 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005761/0.4466, allocations: 169.8 kB / 405.1 MB, free: 2.242 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004428/0.451, allocations: 2.194 MB / 407.3 MB, free: 4 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.066e-05/0.4511, allocations: 12.05 kB / 407.3 MB, free: 15.99 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.182e-05/0.4511, allocations: 8 kB / 407.3 MB, free: 15.98 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.373e-05/0.4511, allocations: 7.875 kB / 407.3 MB, free: 15.98 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01015/0.4613, allocations: 4.782 MB / 412.1 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.11e-05/0.4614, allocations: 7.938 kB / 412.1 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009312/0.4623, allocations: 223.7 kB / 412.3 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001307/0.4636, allocations: 455 kB / 412.8 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001139/0.4637, allocations: 35.98 kB / 412.8 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008816/0.4726, allocations: 8.674 MB / 421.5 MB, free: 1.086 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.021e-06/0.4726, allocations: 4 kB / 421.5 MB, free: 1.082 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00579/0.4784, allocations: 3.224 MB / 424.7 MB, free: 13.76 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001099/0.4796, allocations: 402.9 kB / 425.1 MB, free: 13.34 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002441/0.4798, allocations: 31.98 kB / 425.1 MB, free: 13.31 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009446/0.4808, allocations: 83.91 kB / 425.2 MB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002868/0.4811, allocations: 100.8 kB / 425.3 MB, free: 13.13 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.967e-05/0.4812, allocations: 39.98 kB / 425.3 MB, free: 13.09 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001882/0.4831, allocations: 1.07 MB / 426.4 MB, free: 12.03 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.4831, allocations: 0 / 426.4 MB, free: 12.03 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002281/0.4854, allocations: 484 kB / 426.9 MB, free: 11.55 MB / 366.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.0005508/0.4859, allocations: 203.1 kB / 427.1 MB, free: 11.35 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.005724/0.4917, allocations: 2.779 MB / 429.9 MB, free: 8.504 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.105e-05/0.4917, allocations: 4.062 kB / 429.9 MB, free: 8.5 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002796/0.4945, allocations: 1.477 MB / 431.3 MB, free: 6.973 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003041/0.4976, allocations: 491.8 kB / 431.8 MB, free: 6.492 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009207/0.5068, allocations: 4.74 MB / 436.6 MB, free: 1.668 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001706/0.5086, allocations: 1.867 MB / 438.4 MB, free: 15.77 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001605/0.5102, allocations: 390.9 kB / 438.8 MB, free: 15.38 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004055/0.5106, allocations: 123.4 kB / 438.9 MB, free: 15.26 MB / 382.1 MB Notification: Performance of SimCode: time 1.683e-06/0.5106, allocations: 3.938 kB / 438.9 MB, free: 15.26 MB / 382.1 MB Notification: Performance of Templates: time 0.3339/0.8445, allocations: 26.35 MB / 465.3 MB, free: 106 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)