Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_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.SMR_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter") translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001443/0.001443, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001787/0.001787, allocations: 190.8 kB / 16.25 MB, free: 6.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.069/2.069, allocations: 205.1 MB / 222.1 MB, free: 4.707 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.001492/0.001491, allocations: 47.94 kB / 278.2 MB, free: 12.66 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3841/0.3856, allocations: 46.62 MB / 324.9 MB, free: 1.918 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter): time 0.02554/0.4112, allocations: 9.519 MB / 334.4 MB, free: 10.43 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01286/0.4241, allocations: 3.101 MB / 337.5 MB, free: 7.441 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004089/0.4282, allocations: 43.81 kB / 337.5 MB, free: 7.398 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004713/0.4331, allocations: 0.5982 MB / 338.1 MB, free: 6.797 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006696/0.4398, allocations: 0.6877 MB / 338.8 MB, free: 6.105 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002507/0.4423, allocations: 351.6 kB / 339.1 MB, free: 5.762 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.007494/0.4498, allocations: 2.549 MB / 341.7 MB, free: 3.203 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005678/0.4556, allocations: 2.29 MB / 344 MB, free: 0.8516 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003129/0.4588, allocations: 1.187 MB / 345.2 MB, free: 15.66 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00424/0.463, allocations: 1.522 MB / 346.7 MB, free: 14.13 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001742/0.4648, allocations: 316 kB / 347 MB, free: 13.82 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002576/0.4674, allocations: 419.8 kB / 347.4 MB, free: 13.41 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002454/0.4699, allocations: 0.8999 MB / 348.3 MB, free: 12.51 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004363/0.4743, allocations: 1.412 MB / 349.7 MB, free: 11.09 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007364/0.4817, allocations: 4.105 MB / 353.8 MB, free: 6.977 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.104e-06/0.4817, allocations: 0 / 353.8 MB, free: 6.977 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.4818, allocations: 0 / 353.8 MB, free: 6.977 MB / 286.1 MB Notification: Performance of Transformations before backend: time 0.0002038/0.482, allocations: 4 kB / 353.8 MB, free: 6.973 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: 553 * Number of variables: 553 Notification: Performance of Generate backend data structure: time 0.008605/0.4906, allocations: 2.897 MB / 356.7 MB, free: 4.012 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.758e-05/0.4906, allocations: 11.89 kB / 356.7 MB, free: 4 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008929/0.4915, allocations: 289.7 kB / 357 MB, free: 3.715 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00265/0.4942, allocations: 1.433 MB / 358.5 MB, free: 2.223 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000164/0.4944, allocations: 168.5 kB / 358.6 MB, free: 2.055 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003684/0.4948, allocations: 215.9 kB / 358.8 MB, free: 1.844 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00556/0.5003, allocations: 2.792 MB / 361.6 MB, free: 14.96 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.391e-05/0.5005, allocations: 7.906 kB / 361.6 MB, free: 14.96 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002359/0.5007, allocations: 84 kB / 361.7 MB, free: 14.88 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001627/0.5009, allocations: 108.2 kB / 361.8 MB, free: 14.77 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00591/0.5068, allocations: 2.343 MB / 364.2 MB, free: 12.41 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01554/0.5224, allocations: 8.6 MB / 372.8 MB, free: 3.559 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002402/0.5248, allocations: 1.714 MB / 374.5 MB, free: 1.73 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001719/0.5266, allocations: 0.9684 MB / 375.4 MB, free: 0.7578 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003447/0.5269, allocations: 199.2 kB / 375.6 MB, free: 0.5234 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.456e-05/0.527, allocations: 47.5 kB / 375.7 MB, free: 480 kB / 302.1 MB Notification: Performance of pre-optimization done (n=101): time 3.817e-06/0.527, allocations: 0 / 375.7 MB, free: 480 kB / 302.1 MB Notification: Performance of matching and sorting (n=116): time 0.0147/0.5417, allocations: 6.11 MB / 381.8 MB, free: 10.21 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.075e-05/0.5418, allocations: 64.41 kB / 381.9 MB, free: 10.13 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002721/0.5445, allocations: 1.445 MB / 383.3 MB, free: 8.672 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001387/0.5447, allocations: 45.7 kB / 383.3 MB, free: 8.621 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009975/0.5457, allocations: 1.041 MB / 384.4 MB, free: 7.566 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005266/0.5462, allocations: 414 kB / 384.8 MB, free: 7.156 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004716/0.5467, allocations: 251.4 kB / 385 MB, free: 6.906 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001835/0.5469, allocations: 357.9 kB / 385.4 MB, free: 6.551 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001215/0.5481, allocations: 0.691 MB / 386.1 MB, free: 5.859 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001519/0.5497, allocations: 1.062 MB / 387.1 MB, free: 4.633 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002979/0.5527, allocations: 1.863 MB / 389 MB, free: 2.609 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.047e-05/0.5527, allocations: 4 kB / 389 MB, free: 2.605 MB / 318.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.00422/0.5569, allocations: 2.402 MB / 391.4 MB, free: 168 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.944e-05/0.557, allocations: 12 kB / 391.4 MB, free: 156 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.141e-05/0.557, allocations: 12 kB / 391.4 MB, free: 144 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001139/0.5582, allocations: 423.3 kB / 391.8 MB, free: 15.71 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00133/0.5595, allocations: 331.5 kB / 392.2 MB, free: 15.39 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00789/0.5674, allocations: 7.03 MB / 399.2 MB, free: 7.938 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001823/0.5693, allocations: 99.8 kB / 399.3 MB, free: 7.84 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001921/0.5695, allocations: 60 kB / 399.4 MB, free: 7.781 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * 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 (157): * Single equations (assignments): 153 * 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,11,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.001627/0.5711, allocations: 0.6935 MB / 400.1 MB, free: 7.078 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005696/0.5717, allocations: 158.1 kB / 400.2 MB, free: 6.922 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004653/0.5764, allocations: 2.119 MB / 402.3 MB, free: 4.754 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.253e-05/0.5764, allocations: 12 kB / 402.3 MB, free: 4.742 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.814e-05/0.5764, allocations: 4 kB / 402.3 MB, free: 4.738 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.672e-05/0.5765, allocations: 7.969 kB / 402.3 MB, free: 4.73 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01082/0.5873, allocations: 4.578 MB / 406.9 MB, free: 16 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.42e-05/0.5874, allocations: 4 kB / 406.9 MB, free: 12 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001119/0.5885, allocations: 215.7 kB / 407.1 MB, free: 15.8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001475/0.59, allocations: 459.6 kB / 407.6 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000123/0.5901, allocations: 35.98 kB / 407.6 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009733/0.5999, allocations: 8.612 MB / 416.2 MB, free: 6.133 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.747e-06/0.5999, allocations: 11.88 kB / 416.2 MB, free: 6.121 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006119/0.606, allocations: 3.101 MB / 419.3 MB, free: 2.922 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001331/0.6074, allocations: 379 kB / 419.7 MB, free: 2.531 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003615/0.6078, allocations: 32 kB / 419.8 MB, free: 2.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009364/0.6088, allocations: 91.84 kB / 419.8 MB, free: 2.41 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002803/0.609, allocations: 92.81 kB / 419.9 MB, free: 2.316 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.835e-05/0.6091, allocations: 35.98 kB / 420 MB, free: 2.281 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001668/0.6108, allocations: 0.9886 MB / 421 MB, free: 1.293 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.6108, allocations: 3.938 kB / 421 MB, free: 1.289 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001991/0.6128, allocations: 467.9 kB / 421.4 MB, free: 0.832 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 7 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],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 (103): * Single equations (assignments): 99 * 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,11,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.0005968/0.6134, allocations: 199.1 kB / 421.6 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.005912/0.6194, allocations: 2.687 MB / 424.3 MB, free: 13.89 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.258e-05/0.6194, allocations: 0 / 424.3 MB, free: 13.89 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003379/0.6228, allocations: 1.447 MB / 425.7 MB, free: 12.39 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003088/0.626, allocations: 417.3 kB / 426.2 MB, free: 11.98 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01177/0.6377, allocations: 5.429 MB / 431.6 MB, free: 6.484 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001972/0.6398, allocations: 1.803 MB / 433.4 MB, free: 4.641 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001605/0.6414, allocations: 361.6 kB / 433.7 MB, free: 4.281 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004321/0.6419, allocations: 115.4 kB / 433.8 MB, free: 4.168 MB / 366.1 MB Notification: Performance of SimCode: time 2.645e-06/0.6419, allocations: 4 kB / 433.9 MB, free: 4.164 MB / 366.1 MB Notification: Performance of Templates: time 0.2332/0.8751, allocations: 24.29 MB / 458.1 MB, free: 111.1 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.sim & ./Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.pipe 2>&1)