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.001252/0.001252, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.001217/0.001217, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.768/1.768, allocations: 205.4 MB / 222.1 MB, free: 5.652 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.0007507/0.0007507, allocations: 16 kB / 278.9 MB, free: 12.81 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3057/0.3064, allocations: 47.58 MB / 326.5 MB, free: 1.395 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter): time 0.01151/0.318, allocations: 9.071 MB / 335.5 MB, free: 10.3 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.009377/0.3275, allocations: 3.275 MB / 338.8 MB, free: 7.121 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003563/0.3311, allocations: 51.75 kB / 338.9 MB, free: 7.07 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002548/0.3336, allocations: 0.6174 MB / 339.5 MB, free: 6.449 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003807/0.3375, allocations: 0.6951 MB / 340.2 MB, free: 5.75 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001559/0.3391, allocations: 279.6 kB / 340.5 MB, free: 5.477 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0052/0.3443, allocations: 2.802 MB / 343.3 MB, free: 2.664 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003029/0.3473, allocations: 1.552 MB / 344.8 MB, free: 1.078 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002158/0.3495, allocations: 0.9493 MB / 345.8 MB, free: 128 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002683/0.3522, allocations: 1.288 MB / 347 MB, free: 14.83 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006855/0.3529, allocations: 140 kB / 347.2 MB, free: 14.69 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001285/0.3542, allocations: 219.8 kB / 347.4 MB, free: 14.48 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001225/0.3554, allocations: 0.7048 MB / 348.1 MB, free: 13.77 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001253/0.3567, allocations: 0.5121 MB / 348.6 MB, free: 13.25 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004408/0.3611, allocations: 3.521 MB / 352.1 MB, free: 9.723 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.077e-05/0.3611, allocations: 0 / 352.1 MB, free: 9.723 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.825e-06/0.3612, allocations: 3.938 kB / 352.1 MB, free: 9.719 MB / 286.1 MB Notification: Performance of Transformations before backend: time 0.0001254/0.3613, allocations: 0 / 352.1 MB, free: 9.719 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.005761/0.3671, allocations: 2.617 MB / 354.8 MB, free: 7.039 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.971e-05/0.3671, allocations: 8.031 kB / 354.8 MB, free: 7.031 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008329/0.368, allocations: 312.6 kB / 355.1 MB, free: 6.723 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002633/0.3706, allocations: 1.462 MB / 356.5 MB, free: 5.203 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001669/0.3708, allocations: 176.4 kB / 356.7 MB, free: 5.027 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003289/0.3711, allocations: 216 kB / 356.9 MB, free: 4.816 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005428/0.3766, allocations: 2.917 MB / 359.8 MB, free: 1.812 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.186e-05/0.3767, allocations: 3.906 kB / 359.8 MB, free: 1.809 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002097/0.3769, allocations: 91.95 kB / 359.9 MB, free: 1.719 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001421/0.377, allocations: 116.3 kB / 360 MB, free: 1.602 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004457/0.3815, allocations: 2.437 MB / 362.5 MB, free: 15.15 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01648/0.398, allocations: 9.153 MB / 371.6 MB, free: 5.711 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002851/0.4009, allocations: 1.706 MB / 373.3 MB, free: 3.891 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002104/0.403, allocations: 0.9956 MB / 374.3 MB, free: 2.895 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003132/0.4034, allocations: 211.1 kB / 374.5 MB, free: 2.648 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.98e-05/0.4034, allocations: 43.56 kB / 374.6 MB, free: 2.598 MB / 302.1 MB Notification: Performance of pre-optimization done (n=105): time 3.046e-06/0.4034, allocations: 0 / 374.6 MB, free: 2.598 MB / 302.1 MB Notification: Performance of matching and sorting (n=122): time 0.01546/0.4189, allocations: 6.664 MB / 381.2 MB, free: 11.77 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.491e-05/0.419, allocations: 64.41 kB / 381.3 MB, free: 11.7 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002954/0.422, allocations: 1.55 MB / 382.9 MB, free: 10.14 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.658e-05/0.4221, allocations: 45.7 kB / 382.9 MB, free: 10.09 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001001/0.4231, allocations: 1.112 MB / 384 MB, free: 8.957 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004087/0.4235, allocations: 429.8 kB / 384.4 MB, free: 8.531 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.45e-05/0.4236, allocations: 28 kB / 384.5 MB, free: 8.504 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001802/0.4238, allocations: 365.9 kB / 384.8 MB, free: 8.141 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001292/0.4251, allocations: 0.7105 MB / 385.5 MB, free: 7.43 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001576/0.4267, allocations: 1.147 MB / 386.7 MB, free: 6.098 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001554/0.4282, allocations: 0.8964 MB / 387.6 MB, free: 5.199 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.355e-05/0.4283, allocations: 4 kB / 387.6 MB, free: 5.195 MB / 318.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004706/0.433, allocations: 2.526 MB / 390.1 MB, free: 2.625 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.874e-05/0.433, allocations: 12.28 kB / 390.1 MB, free: 2.613 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.87e-05/0.4331, allocations: 16 kB / 390.1 MB, free: 2.598 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009892/0.4341, allocations: 419.1 kB / 390.5 MB, free: 2.176 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001236/0.4353, allocations: 359.4 kB / 390.9 MB, free: 1.824 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007004/0.4423, allocations: 6.553 MB / 397.4 MB, free: 10.86 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001366/0.4437, allocations: 111.9 kB / 397.6 MB, free: 10.75 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001193/0.4438, allocations: 64 kB / 397.6 MB, free: 10.69 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 (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(3,100.0%) 12,(1,100.0%) 6,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001406/0.4453, allocations: 0.7159 MB / 398.3 MB, free: 9.965 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004059/0.4457, allocations: 173.8 kB / 398.5 MB, free: 9.793 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004044/0.4497, allocations: 2.21 MB / 400.7 MB, free: 7.547 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.269e-05/0.4498, allocations: 12 kB / 400.7 MB, free: 7.535 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.722e-05/0.4498, allocations: 4 kB / 400.7 MB, free: 7.531 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.366e-05/0.4498, allocations: 3.984 kB / 400.7 MB, free: 7.527 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008093/0.4579, allocations: 4.797 MB / 405.5 MB, free: 2.57 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-05/0.4579, allocations: 7.984 kB / 405.5 MB, free: 2.562 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009024/0.4588, allocations: 231.7 kB / 405.8 MB, free: 2.336 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001104/0.46, allocations: 451.2 kB / 406.2 MB, free: 1.883 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001062/0.4601, allocations: 35.98 kB / 406.2 MB, free: 1.848 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007916/0.468, allocations: 7.975 MB / 414.2 MB, free: 9.332 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.143e-06/0.468, allocations: 4 kB / 414.2 MB, free: 9.328 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005361/0.4734, allocations: 3.24 MB / 417.5 MB, free: 5.988 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009108/0.4743, allocations: 402.8 kB / 417.8 MB, free: 5.574 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004613/0.4748, allocations: 47.92 kB / 417.9 MB, free: 5.527 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00106/0.4759, allocations: 87.91 kB / 418 MB, free: 5.441 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002365/0.4761, allocations: 100.8 kB / 418.1 MB, free: 5.344 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001031/0.4762, allocations: 36 kB / 418.1 MB, free: 5.309 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001984/0.4782, allocations: 1.063 MB / 419.2 MB, free: 4.25 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4782, allocations: 0 / 419.2 MB, free: 4.25 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00183/0.4801, allocations: 480 kB / 419.6 MB, free: 3.781 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(3,100.0%) 12,(1,100.0%) 6,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003558/0.4804, allocations: 171.5 kB / 419.8 MB, free: 3.605 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003588/0.484, allocations: 2.289 MB / 422.1 MB, free: 1.254 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.148e-06/0.484, allocations: 1.875 kB / 422.1 MB, free: 1.254 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00232/0.4864, allocations: 1.481 MB / 423.6 MB, free: 15.72 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002142/0.4885, allocations: 461.2 kB / 424 MB, free: 15.27 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009135/0.4977, allocations: 5.595 MB / 429.6 MB, free: 9.586 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001982/0.4997, allocations: 1.871 MB / 431.5 MB, free: 7.684 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001408/0.5011, allocations: 390.9 kB / 431.9 MB, free: 7.297 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004227/0.5015, allocations: 123.4 kB / 432 MB, free: 7.176 MB / 366.1 MB Notification: Performance of SimCode: time 1.112e-06/0.5015, allocations: 0 / 432 MB, free: 7.176 MB / 366.1 MB Notification: Performance of Templates: time 0.2303/0.7319, allocations: 24.23 MB / 456.2 MB, free: 112.5 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)