Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.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.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.01466/0.01466, allocations: 100.9 kB / 15.73 MB, free: 6.035 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.002902/0.002902, allocations: 199.1 kB / 16.68 MB, free: 5.953 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.021/2.021, allocations: 205.1 MB / 222.5 MB, free: 4.484 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.001203/0.001203, allocations: 50.39 kB / 326.6 MB, free: 14.34 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.1039, allocations: 46.63 MB / 373.2 MB, free: 1.297 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter): time 0.01183/0.1158, allocations: 9.571 MB / 382.8 MB, free: 7.68 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007929/0.1238, allocations: 3.163 MB / 385.9 MB, free: 4.504 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002412/0.1262, allocations: 43.81 kB / 386 MB, free: 4.461 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002359/0.1287, allocations: 0.7065 MB / 386.7 MB, free: 3.75 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003566/0.1323, allocations: 0.796 MB / 387.5 MB, free: 2.949 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001243/0.1335, allocations: 399.4 kB / 387.9 MB, free: 2.559 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003572/0.1371, allocations: 2.557 MB / 390.4 MB, free: 15.99 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002864/0.14, allocations: 2.29 MB / 392.7 MB, free: 13.64 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002437/0.1425, allocations: 1.184 MB / 393.9 MB, free: 12.45 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002689/0.1452, allocations: 1.495 MB / 395.4 MB, free: 10.95 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006016/0.1458, allocations: 320 kB / 395.7 MB, free: 10.64 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00103/0.1468, allocations: 431.8 kB / 396.1 MB, free: 10.21 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009492/0.1478, allocations: 0.8922 MB / 397 MB, free: 9.32 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002057/0.1499, allocations: 1.419 MB / 398.4 MB, free: 7.895 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005053/0.1549, allocations: 4.151 MB / 402.6 MB, free: 3.73 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.155, allocations: 0 / 402.6 MB, free: 3.73 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.155, allocations: 0 / 402.6 MB, free: 3.73 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001305/0.1551, allocations: 0 / 402.6 MB, free: 3.73 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: 553 * Number of variables: 553 Notification: Performance of Generate backend data structure: time 0.00752/0.1626, allocations: 2.897 MB / 405.5 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.187e-05/0.1627, allocations: 15.89 kB / 405.5 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008259/0.1635, allocations: 289.7 kB / 405.8 MB, free: 480 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002825/0.1664, allocations: 1.441 MB / 407.2 MB, free: 14.97 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001374/0.1665, allocations: 168.3 kB / 407.4 MB, free: 14.8 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004961/0.167, allocations: 207.9 kB / 407.6 MB, free: 14.6 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006022/0.1731, allocations: 2.796 MB / 410.4 MB, free: 11.71 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.849e-05/0.1732, allocations: 11.92 kB / 410.4 MB, free: 11.7 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002189/0.1734, allocations: 84 kB / 410.5 MB, free: 11.62 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001298/0.1735, allocations: 104.2 kB / 410.6 MB, free: 11.52 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004884/0.1784, allocations: 2.343 MB / 412.9 MB, free: 9.156 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01596/0.1944, allocations: 8.503 MB / 421.4 MB, free: 416 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002608/0.1971, allocations: 1.703 MB / 423.1 MB, free: 14.57 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001773/0.1989, allocations: 0.9596 MB / 424.1 MB, free: 13.62 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003838/0.1993, allocations: 199.2 kB / 424.3 MB, free: 13.39 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.309e-05/0.1994, allocations: 51.44 kB / 424.3 MB, free: 13.32 MB / 366.1 MB Notification: Performance of pre-optimization done (n=101): time 3.627e-06/0.1994, allocations: 0 / 424.3 MB, free: 13.32 MB / 366.1 MB Notification: Performance of matching and sorting (n=116): time 0.01465/0.214, allocations: 6.103 MB / 430.4 MB, free: 7.078 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.842e-05/0.2141, allocations: 72.33 kB / 430.5 MB, free: 6.996 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002121/0.2162, allocations: 1.433 MB / 431.9 MB, free: 5.551 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001263/0.2164, allocations: 41.7 kB / 432 MB, free: 5.504 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007788/0.2172, allocations: 1.041 MB / 433 MB, free: 4.449 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003759/0.2176, allocations: 406.1 kB / 433.4 MB, free: 4.047 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004407/0.218, allocations: 259.3 kB / 433.7 MB, free: 3.785 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001583/0.2182, allocations: 365.9 kB / 434 MB, free: 3.422 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001159/0.2193, allocations: 0.6832 MB / 434.7 MB, free: 2.738 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001488/0.2208, allocations: 1.07 MB / 435.8 MB, free: 1.504 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002865/0.2237, allocations: 1.863 MB / 437.6 MB, free: 15.48 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.326e-06/0.2237, allocations: 8 kB / 437.6 MB, free: 15.47 MB / 382.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.004293/0.228, allocations: 2.394 MB / 440 MB, free: 13.03 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.097e-05/0.2281, allocations: 12 kB / 440.1 MB, free: 13.02 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.521e-05/0.2281, allocations: 16 kB / 440.1 MB, free: 13 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001046/0.2292, allocations: 423.2 kB / 440.5 MB, free: 12.58 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001297/0.2305, allocations: 335.5 kB / 440.8 MB, free: 12.25 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007447/0.238, allocations: 7.026 MB / 447.8 MB, free: 4.809 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001486/0.2395, allocations: 95.94 kB / 447.9 MB, free: 4.715 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001387/0.2396, allocations: 59.98 kB / 448 MB, free: 4.656 MB / 382.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.00128/0.2409, allocations: 0.6934 MB / 448.7 MB, free: 3.953 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003471/0.2413, allocations: 158 kB / 448.8 MB, free: 3.797 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003849/0.2451, allocations: 2.122 MB / 451 MB, free: 1.633 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.195e-05/0.2452, allocations: 15.98 kB / 451 MB, free: 1.617 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.02e-05/0.2452, allocations: 4 kB / 451 MB, free: 1.613 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.339e-05/0.2452, allocations: 7.984 kB / 451 MB, free: 1.605 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2848/0.5301, allocations: 4.551 MB / 455.5 MB, free: 69.4 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.428e-05/0.5301, allocations: 3.625 kB / 455.5 MB, free: 69.4 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009979/0.5311, allocations: 213.1 kB / 455.7 MB, free: 69.39 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001266/0.5324, allocations: 449.5 kB / 456.2 MB, free: 69.35 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001096/0.5325, allocations: 37.16 kB / 456.2 MB, free: 69.34 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008493/0.541, allocations: 8.619 MB / 464.8 MB, free: 62.46 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.612e-06/0.5411, allocations: 4.344 kB / 464.8 MB, free: 62.46 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007087/0.5482, allocations: 3.103 MB / 468 MB, free: 61.12 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001595/0.5498, allocations: 384.1 kB / 468.3 MB, free: 60.95 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003242/0.5502, allocations: 35.03 kB / 468.4 MB, free: 60.93 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001031/0.5512, allocations: 82.84 kB / 468.4 MB, free: 60.91 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004574/0.5517, allocations: 99.08 kB / 468.5 MB, free: 60.89 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001198/0.5518, allocations: 38.34 kB / 468.6 MB, free: 60.88 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002288/0.5541, allocations: 0.9854 MB / 469.6 MB, free: 60.5 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.91e-07/0.5541, allocations: 0 / 469.6 MB, free: 60.5 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002706/0.5568, allocations: 464.3 kB / 470 MB, free: 60.45 MB / 382.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.0007309/0.5576, allocations: 187.9 kB / 470.2 MB, free: 60.34 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00499/0.5626, allocations: 2.226 MB / 472.4 MB, free: 59.31 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.204e-05/0.5627, allocations: 3.938 kB / 472.4 MB, free: 59.31 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002374/0.565, allocations: 1.446 MB / 473.9 MB, free: 58.54 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002725/0.5678, allocations: 420.9 kB / 474.3 MB, free: 58.4 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007398/0.5752, allocations: 4.456 MB / 478.7 MB, free: 56.19 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001461/0.5767, allocations: 1.812 MB / 480.6 MB, free: 55.18 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001246/0.578, allocations: 360.3 kB / 480.9 MB, free: 55.03 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003354/0.5783, allocations: 114.1 kB / 481 MB, free: 55.01 MB / 382.1 MB Notification: Performance of SimCode: time 1.142e-06/0.5783, allocations: 3.969 kB / 481 MB, free: 55.01 MB / 382.1 MB Notification: Performance of Templates: time 0.03923/0.6176, allocations: 24.79 MB / 0.494 GB, free: 30.37 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.makefile (rm -f Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.sim & ./Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.pipe 2>&1)