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.001292/0.001292, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.01038/0.01038, allocations: 168.9 kB / 16.26 MB, free: 6.648 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.814/1.814, allocations: 205.4 MB / 222.4 MB, free: 5.57 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.0004333/0.0004334, allocations: 12 kB / 279.5 MB, free: 12.51 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2827/0.2831, allocations: 47.58 MB / 327 MB, free: 1.398 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter): time 0.01015/0.2933, allocations: 9.656 MB / 336.7 MB, free: 9.691 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.007051/0.3004, allocations: 3.426 MB / 340.1 MB, free: 6.254 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001711/0.3021, allocations: 43.81 kB / 340.2 MB, free: 6.211 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002001/0.3041, allocations: 0.6642 MB / 340.8 MB, free: 5.543 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002539/0.3067, allocations: 0.7498 MB / 341.6 MB, free: 4.789 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008427/0.3076, allocations: 371.6 kB / 341.9 MB, free: 4.426 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.003415/0.311, allocations: 3.098 MB / 345 MB, free: 1.316 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002206/0.3132, allocations: 1.974 MB / 347 MB, free: 15.28 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00148/0.3147, allocations: 0.949 MB / 348 MB, free: 14.33 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001757/0.3165, allocations: 1.342 MB / 349.3 MB, free: 12.98 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002564/0.3167, allocations: 144 kB / 349.4 MB, free: 12.84 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005756/0.3173, allocations: 255.8 kB / 349.7 MB, free: 12.59 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000644/0.318, allocations: 0.7124 MB / 350.4 MB, free: 11.88 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001144/0.3191, allocations: 1.276 MB / 351.7 MB, free: 10.59 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00328/0.3224, allocations: 4.091 MB / 355.8 MB, free: 6.48 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.3224, allocations: 0 / 355.8 MB, free: 6.48 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.3224, allocations: 0 / 355.8 MB, free: 6.48 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.261e-05/0.3225, allocations: 0 / 355.8 MB, free: 6.48 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.004715/0.3272, allocations: 2.597 MB / 358.4 MB, free: 3.82 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.21e-05/0.3273, allocations: 8.031 kB / 358.4 MB, free: 3.812 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000762/0.328, allocations: 313.5 kB / 358.7 MB, free: 3.504 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002268/0.3303, allocations: 1.509 MB / 360.2 MB, free: 1.938 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001686/0.3305, allocations: 180.5 kB / 360.4 MB, free: 1.758 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003383/0.3309, allocations: 219.9 kB / 360.6 MB, free: 1.543 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004999/0.3359, allocations: 2.929 MB / 363.5 MB, free: 14.53 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.958e-05/0.3359, allocations: 8 kB / 363.5 MB, free: 14.52 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002018/0.3362, allocations: 87.94 kB / 363.6 MB, free: 14.43 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001222/0.3363, allocations: 120.3 kB / 363.7 MB, free: 14.31 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004303/0.3406, allocations: 2.445 MB / 366.2 MB, free: 11.85 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01457/0.3552, allocations: 9.164 MB / 375.3 MB, free: 2.402 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002474/0.3577, allocations: 1.721 MB / 377 MB, free: 0.5664 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001889/0.3596, allocations: 0.9995 MB / 378 MB, free: 15.56 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003852/0.36, allocations: 207.1 kB / 378.3 MB, free: 15.32 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.17e-05/0.3601, allocations: 43.56 kB / 378.3 MB, free: 15.27 MB / 318.1 MB Notification: Performance of pre-optimization done (n=105): time 4.087e-06/0.3601, allocations: 4 kB / 378.3 MB, free: 15.27 MB / 318.1 MB Notification: Performance of matching and sorting (n=122): time 0.01437/0.3745, allocations: 6.652 MB / 384.9 MB, free: 8.449 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.438e-05/0.3745, allocations: 64.41 kB / 385 MB, free: 8.375 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00243/0.377, allocations: 1.577 MB / 386.6 MB, free: 6.789 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.238e-05/0.3771, allocations: 49.7 kB / 386.6 MB, free: 6.734 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007893/0.3779, allocations: 1.108 MB / 387.7 MB, free: 5.609 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003309/0.3782, allocations: 429.8 kB / 388.2 MB, free: 5.184 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001713/0.3784, allocations: 117.7 kB / 388.3 MB, free: 5.062 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.569e-05/0.3785, allocations: 301.1 kB / 388.6 MB, free: 4.766 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001193/0.3797, allocations: 0.7222 MB / 389.3 MB, free: 4.043 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001468/0.3812, allocations: 1.147 MB / 390.4 MB, free: 2.715 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002764/0.384, allocations: 1.995 MB / 392.4 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.516e-06/0.384, allocations: 4 kB / 392.4 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004353/0.3883, allocations: 2.538 MB / 395 MB, free: 13.95 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.789e-05/0.3884, allocations: 16.03 kB / 395 MB, free: 13.93 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.174e-05/0.3884, allocations: 12 kB / 395 MB, free: 13.92 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009915/0.3894, allocations: 435 kB / 395.4 MB, free: 13.48 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00129/0.3907, allocations: 347.5 kB / 395.8 MB, free: 13.14 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006479/0.3972, allocations: 6.557 MB / 402.3 MB, free: 6.184 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001514/0.3988, allocations: 115.8 kB / 402.4 MB, free: 6.07 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001177/0.3989, allocations: 60 kB / 402.5 MB, free: 6.012 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.001402/0.4003, allocations: 0.7168 MB / 403.2 MB, free: 5.285 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003143/0.4006, allocations: 169.9 kB / 403.4 MB, free: 5.117 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003912/0.4045, allocations: 2.213 MB / 405.6 MB, free: 2.855 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.401e-05/0.4046, allocations: 12 kB / 405.6 MB, free: 2.844 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.376e-06/0.4046, allocations: 4 kB / 405.6 MB, free: 2.84 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.37e-05/0.4046, allocations: 7.969 kB / 405.6 MB, free: 2.832 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008036/0.4126, allocations: 4.817 MB / 410.4 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.099e-05/0.4127, allocations: 4 kB / 410.4 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009258/0.4136, allocations: 231.7 kB / 410.7 MB, free: 13.63 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001109/0.4147, allocations: 455.2 kB / 411.1 MB, free: 13.17 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.645e-05/0.4148, allocations: 39.98 kB / 411.2 MB, free: 13.13 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007604/0.4224, allocations: 7.967 MB / 419.1 MB, free: 4.629 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.081e-06/0.4225, allocations: 4 kB / 419.1 MB, free: 4.625 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00597/0.4285, allocations: 3.251 MB / 422.4 MB, free: 1.273 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001436/0.4299, allocations: 402.9 kB / 422.8 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004307/0.4304, allocations: 31.98 kB / 422.8 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001419/0.4318, allocations: 91.84 kB / 422.9 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003926/0.4322, allocations: 104.9 kB / 423 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001288/0.4323, allocations: 43.92 kB / 423 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002602/0.435, allocations: 1.067 MB / 424.1 MB, free: 15.53 MB / 366.1 MB Notification: Performance of sort global known variables: time 6.41e-07/0.435, allocations: 0 / 424.1 MB, free: 15.53 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00298/0.438, allocations: 488 kB / 424.6 MB, free: 15.05 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.0005623/0.4386, allocations: 203.3 kB / 424.8 MB, free: 14.85 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.005694/0.4443, allocations: 2.306 MB / 427.1 MB, free: 12.48 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 8.496e-06/0.4443, allocations: 4.25 kB / 427.1 MB, free: 12.48 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003669/0.448, allocations: 1.481 MB / 428.6 MB, free: 10.95 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005512/0.4535, allocations: 461.5 kB / 429 MB, free: 10.49 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01581/0.4694, allocations: 5.867 MB / 434.9 MB, free: 4.543 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003463/0.4729, allocations: 1.864 MB / 436.7 MB, free: 2.645 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.003064/0.476, allocations: 386.9 kB / 437.1 MB, free: 2.262 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000789/0.4768, allocations: 123.4 kB / 437.2 MB, free: 2.141 MB / 366.1 MB Notification: Performance of SimCode: time 3.086e-06/0.4768, allocations: 0 / 437.2 MB, free: 2.141 MB / 366.1 MB Notification: Performance of Templates: time 0.2928/0.7697, allocations: 24.92 MB / 462.2 MB, free: 103.2 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)