Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2_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.2_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.001395/0.001396, allocations: 113.9 kB / 17.06 MB, free: 5.977 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.001437/0.001437, allocations: 198.9 kB / 18.01 MB, free: 5.059 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.631/1.631, allocations: 205.1 MB / 223.9 MB, free: 12.23 MB / 190.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.00136/0.001361, allocations: 55.92 kB / 327.9 MB, free: 3.27 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1113/0.1127, allocations: 46.61 MB / 374.5 MB, free: 4.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter): time 0.2644/0.3772, allocations: 10.27 MB / 384.8 MB, free: 7.684 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009997/0.3873, allocations: 3.484 MB / 388.2 MB, free: 5.617 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002904/0.3902, allocations: 54.03 kB / 388.3 MB, free: 5.598 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002718/0.393, allocations: 0.7634 MB / 389.1 MB, free: 5.191 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005648/0.3987, allocations: 0.8322 MB / 389.9 MB, free: 4.656 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002604/0.4013, allocations: 418.6 kB / 390.3 MB, free: 4.402 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006545/0.4079, allocations: 2.762 MB / 393.1 MB, free: 3.012 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003818/0.4118, allocations: 2.367 MB / 395.4 MB, free: 2.012 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003059/0.4149, allocations: 1.254 MB / 396.7 MB, free: 1.402 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004564/0.4194, allocations: 1.584 MB / 398.3 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001994/0.4215, allocations: 334.6 kB / 398.6 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002564/0.4241, allocations: 437.8 kB / 399 MB, free: 0.625 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001556/0.4257, allocations: 0.9367 MB / 400 MB, free: 116 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004542/0.4302, allocations: 1.507 MB / 401.5 MB, free: 15.12 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01051/0.4408, allocations: 4.385 MB / 405.8 MB, free: 12.52 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.738e-06/0.4408, allocations: 0.7812 kB / 405.9 MB, free: 12.52 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.757e-06/0.4408, allocations: 0 / 405.9 MB, free: 12.52 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002449/0.4411, allocations: 0 / 405.9 MB, free: 12.52 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.01335/0.4545, allocations: 3.055 MB / 408.9 MB, free: 10.41 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.839e-05/0.4546, allocations: 13.08 kB / 408.9 MB, free: 10.4 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001582/0.4562, allocations: 311.4 kB / 409.2 MB, free: 10.25 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004381/0.4606, allocations: 1.534 MB / 410.8 MB, free: 9.133 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000168/0.4607, allocations: 166 kB / 410.9 MB, free: 9.055 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005598/0.4613, allocations: 223.6 kB / 411.1 MB, free: 8.977 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007908/0.4692, allocations: 2.924 MB / 414.1 MB, free: 7.227 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.534e-05/0.4694, allocations: 6.219 kB / 414.1 MB, free: 7.223 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000274/0.4697, allocations: 90.89 kB / 414.2 MB, free: 7.152 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001734/0.4698, allocations: 113.7 kB / 414.3 MB, free: 7.133 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006159/0.476, allocations: 2.433 MB / 416.7 MB, free: 5.164 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01987/0.4959, allocations: 9.008 MB / 425.7 MB, free: 11.87 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002796/0.4988, allocations: 1.698 MB / 427.4 MB, free: 10.06 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00201/0.5008, allocations: 0.9838 MB / 428.4 MB, free: 9.074 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003483/0.5012, allocations: 199.2 kB / 428.6 MB, free: 8.844 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.556e-05/0.5013, allocations: 47.55 kB / 428.6 MB, free: 8.785 MB / 350.1 MB Notification: Performance of pre-optimization done (n=105): time 3.396e-06/0.5013, allocations: 0 / 428.6 MB, free: 8.785 MB / 350.1 MB Notification: Performance of matching and sorting (n=122): time 0.01625/0.5175, allocations: 6.536 MB / 435.2 MB, free: 2.082 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.486e-05/0.5177, allocations: 68.39 kB / 435.2 MB, free: 2.004 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00301/0.5207, allocations: 1.561 MB / 436.8 MB, free: 444 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002577/0.521, allocations: 49.7 kB / 436.8 MB, free: 388 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009285/0.5219, allocations: 1.108 MB / 437.9 MB, free: 15.25 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000491/0.5224, allocations: 434.5 kB / 438.4 MB, free: 14.82 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004429/0.5229, allocations: 267.4 kB / 438.6 MB, free: 14.55 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001076/0.523, allocations: 301.1 kB / 438.9 MB, free: 14.26 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001236/0.5242, allocations: 0.7066 MB / 439.6 MB, free: 13.55 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001537/0.5258, allocations: 1.143 MB / 440.8 MB, free: 12.23 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002737/0.5285, allocations: 1.968 MB / 442.7 MB, free: 10.07 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.046e-06/0.5285, allocations: 4 kB / 442.7 MB, free: 10.07 MB / 366.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004855/0.5334, allocations: 2.514 MB / 445.3 MB, free: 7.516 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.627e-05/0.5335, allocations: 23.14 kB / 445.3 MB, free: 7.496 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3e-05/0.5335, allocations: 16 kB / 445.3 MB, free: 7.48 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001085/0.5346, allocations: 415.4 kB / 445.7 MB, free: 7.062 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001435/0.5361, allocations: 351.4 kB / 446.1 MB, free: 6.719 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007518/0.5436, allocations: 7.129 MB / 453.2 MB, free: 15.17 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001874/0.5455, allocations: 103.8 kB / 453.3 MB, free: 15.07 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001751/0.5457, allocations: 67.98 kB / 453.3 MB, free: 15 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.001433/0.5471, allocations: 0.7127 MB / 454.1 MB, free: 14.28 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004087/0.5476, allocations: 173.9 kB / 454.2 MB, free: 14.11 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004155/0.5517, allocations: 2.186 MB / 456.4 MB, free: 11.88 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.455e-05/0.5518, allocations: 12 kB / 456.4 MB, free: 11.86 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.044e-05/0.5518, allocations: 8 kB / 456.4 MB, free: 11.86 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.919e-05/0.5518, allocations: 11.91 kB / 456.4 MB, free: 11.84 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009606/0.5614, allocations: 4.765 MB / 461.2 MB, free: 6.926 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.424e-05/0.5615, allocations: 8.062 kB / 461.2 MB, free: 6.918 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001019/0.5625, allocations: 223.6 kB / 461.4 MB, free: 6.699 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001303/0.5639, allocations: 463.9 kB / 461.9 MB, free: 6.234 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.961e-05/0.564, allocations: 31.98 kB / 461.9 MB, free: 6.203 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009723/0.5737, allocations: 8.668 MB / 470.6 MB, free: 12.97 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-05/0.5738, allocations: 7.938 kB / 470.6 MB, free: 12.96 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005925/0.5797, allocations: 3.222 MB / 473.8 MB, free: 9.645 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001543/0.5813, allocations: 402.7 kB / 474.2 MB, free: 9.23 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003867/0.5817, allocations: 32 kB / 474.2 MB, free: 9.199 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001059/0.5828, allocations: 79.91 kB / 474.3 MB, free: 9.121 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003311/0.5831, allocations: 104.7 kB / 474.4 MB, free: 9.016 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001005/0.5832, allocations: 43.98 kB / 474.5 MB, free: 8.973 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001835/0.5851, allocations: 1.066 MB / 475.5 MB, free: 7.91 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.5851, allocations: 0 / 475.5 MB, free: 7.91 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002219/0.5873, allocations: 484 kB / 476 MB, free: 7.438 MB / 398.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.0004637/0.5878, allocations: 194.9 kB / 476.2 MB, free: 7.238 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004117/0.5919, allocations: 2.301 MB / 478.5 MB, free: 4.879 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 8.826e-06/0.592, allocations: 0 / 478.5 MB, free: 4.879 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00258/0.5945, allocations: 1.474 MB / 480 MB, free: 3.355 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002791/0.5974, allocations: 491.7 kB / 480.5 MB, free: 2.875 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01053/0.6079, allocations: 4.685 MB / 485.1 MB, free: 14.11 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00202/0.61, allocations: 1.864 MB / 487 MB, free: 12.21 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001581/0.6116, allocations: 390.9 kB / 487.4 MB, free: 11.82 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003962/0.6121, allocations: 131.3 kB / 487.5 MB, free: 11.69 MB / 414.1 MB Notification: Performance of SimCode: time 1.122e-06/0.6121, allocations: 0 / 487.5 MB, free: 11.69 MB / 414.1 MB Notification: Performance of Templates: time 0.06122/0.6733, allocations: 27.28 MB / 0.5027 GB, free: 364 kB / 430.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.sim & ./Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe 2>&1)