Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic") translateModel(PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001026/0.001026, allocations: 89.34 kB / 16.65 MB, free: 6.535 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.001165/0.001165, allocations: 173.9 kB / 17.56 MB, free: 6.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.447/1.447, allocations: 223.3 MB / 241.6 MB, free: 14.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1782/0.1782, allocations: 38.08 MB / 330.8 MB, free: 8.496 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004267/0.0004268, allocations: 8.281 kB / 400.7 MB, free: 34.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1293/0.1298, allocations: 59.16 MB / 459.9 MB, free: 7.07 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic): time 0.008118/0.1379, allocations: 5.666 MB / 465.5 MB, free: 1.371 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007674/0.1457, allocations: 4.286 MB / 469.8 MB, free: 13.07 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007472/0.1465, allocations: 31.81 kB / 469.9 MB, free: 13.04 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009682/0.1562, allocations: 4.575 MB / 474.4 MB, free: 8.457 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001077/0.1573, allocations: 310.6 kB / 474.7 MB, free: 8.152 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005689/0.1578, allocations: 187.8 kB / 474.9 MB, free: 7.969 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002497/0.1603, allocations: 2.066 MB / 477 MB, free: 5.895 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00118/0.1615, allocations: 0.6858 MB / 477.7 MB, free: 5.176 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005058/0.1621, allocations: 294.7 kB / 478 MB, free: 4.887 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006121/0.1627, allocations: 402.5 kB / 478.3 MB, free: 4.492 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.749e-05/0.1628, allocations: 24 kB / 478.4 MB, free: 4.469 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001784/0.1629, allocations: 39.94 kB / 478.4 MB, free: 4.43 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002701/0.1632, allocations: 223.3 kB / 478.6 MB, free: 4.211 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003564/0.1636, allocations: 316.2 kB / 478.9 MB, free: 3.895 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008265/0.1644, allocations: 0.759 MB / 479.7 MB, free: 3.133 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.215e-06/0.1644, allocations: 0 / 479.7 MB, free: 3.133 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.395e-06/0.1645, allocations: 3.938 kB / 479.7 MB, free: 3.129 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.07e-05/0.1645, allocations: 4 kB / 479.7 MB, free: 3.125 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 121 * Number of variables: 121 Notification: Performance of Generate backend data structure: time 0.00171/0.1662, allocations: 0.7462 MB / 480.4 MB, free: 2.328 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.903e-05/0.1662, allocations: 8.031 kB / 480.5 MB, free: 2.32 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003091/0.1666, allocations: 80.08 kB / 480.5 MB, free: 2.242 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009522/0.1675, allocations: 0.5449 MB / 481.1 MB, free: 1.656 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.843e-05/0.1676, allocations: 36.97 kB / 481.1 MB, free: 1.621 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.771e-05/0.1677, allocations: 44 kB / 481.2 MB, free: 1.578 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009652/0.1686, allocations: 0.6335 MB / 481.8 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.47e-05/0.1687, allocations: 0 / 481.8 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.892e-05/0.1687, allocations: 20 kB / 481.8 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001428/0.1689, allocations: 48.97 kB / 481.9 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007391/0.1696, allocations: 467.6 kB / 482.3 MB, free: 388 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003334/0.173, allocations: 2.522 MB / 484.8 MB, free: 13.72 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004367/0.1734, allocations: 285.2 kB / 485.1 MB, free: 13.42 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002019/0.1736, allocations: 142.2 kB / 485.3 MB, free: 13.28 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.51e-05/0.1737, allocations: 4 kB / 485.3 MB, free: 13.27 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.127e-05/0.1737, allocations: 50.44 kB / 485.3 MB, free: 13.21 MB / 366.1 MB Notification: Performance of pre-optimization done (n=30): time 1.954e-06/0.1737, allocations: 0 / 485.3 MB, free: 13.21 MB / 366.1 MB Notification: Performance of matching and sorting (n=32): time 0.002908/0.1766, allocations: 1.54 MB / 486.8 MB, free: 11.56 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.864e-05/0.1767, allocations: 81.05 kB / 486.9 MB, free: 11.46 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004667/0.1772, allocations: 409.9 kB / 487.3 MB, free: 11.05 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.696e-05/0.1772, allocations: 33.7 kB / 487.4 MB, free: 11.02 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002323/0.1775, allocations: 307.5 kB / 487.7 MB, free: 10.71 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.746e-05/0.1776, allocations: 110.4 kB / 487.8 MB, free: 10.6 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.302e-05/0.1777, allocations: 45.69 kB / 487.8 MB, free: 10.55 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001754/0.1779, allocations: 354.7 kB / 488.2 MB, free: 10.2 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002195/0.1781, allocations: 132.8 kB / 488.3 MB, free: 10.07 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003324/0.1784, allocations: 278.3 kB / 488.6 MB, free: 9.727 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005975/0.179, allocations: 449.9 kB / 489 MB, free: 9.223 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.179, allocations: 0 / 489 MB, free: 9.223 MB / 366.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001102/0.1802, allocations: 0.683 MB / 489.7 MB, free: 8.508 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.787e-05/0.1802, allocations: 8 kB / 489.7 MB, free: 8.5 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.345e-05/0.1802, allocations: 7.938 kB / 489.7 MB, free: 8.492 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004529/0.1807, allocations: 149.9 kB / 489.8 MB, free: 8.34 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003373/0.181, allocations: 67.91 kB / 489.9 MB, free: 8.273 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003408/0.1845, allocations: 3.408 MB / 493.3 MB, free: 4.59 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002552/0.1847, allocations: 8 kB / 493.3 MB, free: 4.582 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.235e-05/0.1848, allocations: 23.98 kB / 493.4 MB, free: 4.559 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (42): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,6,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003389/0.1851, allocations: 243.9 kB / 493.6 MB, free: 4.312 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.566e-05/0.1852, allocations: 43.44 kB / 493.6 MB, free: 4.27 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009876/0.1862, allocations: 0.5714 MB / 494.2 MB, free: 3.668 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.823e-06/0.1862, allocations: 7.938 kB / 494.2 MB, free: 3.66 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0007742/0.187, allocations: 495.8 kB / 494.7 MB, free: 3.141 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.232e-06/0.187, allocations: 4.031 kB / 494.7 MB, free: 3.137 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001537/0.1886, allocations: 0.998 MB / 495.7 MB, free: 2.07 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.1886, allocations: 4.094 kB / 495.7 MB, free: 2.066 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002114/0.1888, allocations: 35.98 kB / 495.7 MB, free: 2.031 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002705/0.1891, allocations: 92.77 kB / 495.8 MB, free: 1.938 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.522e-05/0.1891, allocations: 8 kB / 495.8 MB, free: 1.93 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001874/0.191, allocations: 1.866 MB / 497.7 MB, free: 15.93 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.365e-06/0.191, allocations: 0 / 497.7 MB, free: 15.93 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009195/0.1919, allocations: 0.6516 MB / 498.4 MB, free: 15.25 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001616/0.1921, allocations: 140.6 kB / 498.5 MB, free: 15.09 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.542e-05/0.1922, allocations: 15.94 kB / 498.5 MB, free: 15.07 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001869/0.1924, allocations: 11.98 kB / 498.5 MB, free: 15.06 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.563e-05/0.1924, allocations: 31.84 kB / 498.5 MB, free: 15.03 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.013e-05/0.1925, allocations: 4 kB / 498.6 MB, free: 15.03 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003842/0.1928, allocations: 303.1 kB / 498.8 MB, free: 14.73 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.1929, allocations: 0 / 498.8 MB, free: 14.73 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005522/0.1934, allocations: 120 kB / 499 MB, free: 14.61 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (asm.rotor.phi,asm.rotor.w) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001362/0.1936, allocations: 103.2 kB / 499.1 MB, free: 14.5 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001046/0.1946, allocations: 0.6033 MB / 499.7 MB, free: 13.87 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.1946, allocations: 0 / 499.7 MB, free: 13.87 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004744/0.1951, allocations: 302.4 kB / 500 MB, free: 13.56 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007539/0.1959, allocations: 110.3 kB / 0.4884 GB, free: 13.45 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002039/0.1979, allocations: 1.408 MB / 0.4897 GB, free: 12.01 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005602/0.1985, allocations: 0.9244 MB / 0.4906 GB, free: 11.06 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000261/0.1988, allocations: 76.33 kB / 0.4907 GB, free: 10.98 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.437e-05/0.1989, allocations: 35.42 kB / 0.4907 GB, free: 10.95 MB / 382.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1989, allocations: 0 / 0.4907 GB, free: 10.95 MB / 382.1 MB Notification: Performance of Templates: time 0.01094/0.2098, allocations: 5.338 MB / 0.4959 GB, free: 5.672 MB / 382.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.makefile (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.sim & ./PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic.pipe 2>&1)