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.001311/0.001311, allocations: 97.33 kB / 16.5 MB, free: 6.641 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.001406/0.001406, allocations: 195.1 kB / 17.42 MB, free: 6.066 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.451/1.451, allocations: 222.9 MB / 241.1 MB, free: 15.34 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1752/0.1752, allocations: 38.04 MB / 329.3 MB, free: 9.004 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001598/0.001598, allocations: 65.83 kB / 398.1 MB, free: 34.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1221/0.1237, allocations: 58.06 MB / 456.1 MB, free: 8.535 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic): time 0.007696/0.1315, allocations: 6.072 MB / 462.2 MB, free: 2.426 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006536/0.1381, allocations: 4.379 MB / 466.6 MB, free: 14.03 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000681/0.1388, allocations: 35.75 kB / 466.6 MB, free: 14 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008559/0.1474, allocations: 4.697 MB / 471.3 MB, free: 9.289 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008973/0.1483, allocations: 314.7 kB / 471.6 MB, free: 8.98 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005702/0.1489, allocations: 195.7 kB / 471.8 MB, free: 8.789 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002315/0.1512, allocations: 2.058 MB / 473.9 MB, free: 6.727 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007382/0.152, allocations: 0.4978 MB / 474.4 MB, free: 6.227 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004577/0.1525, allocations: 302.8 kB / 474.7 MB, free: 5.93 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005788/0.153, allocations: 434.3 kB / 475.1 MB, free: 5.504 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.792e-05/0.1531, allocations: 32 kB / 475.1 MB, free: 5.473 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001773/0.1533, allocations: 55.94 kB / 475.2 MB, free: 5.418 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002312/0.1536, allocations: 231.4 kB / 475.4 MB, free: 5.191 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002875/0.1539, allocations: 302.4 kB / 475.7 MB, free: 4.895 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006724/0.1545, allocations: 0.7787 MB / 476.5 MB, free: 4.113 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.1546, allocations: 0 / 476.5 MB, free: 4.113 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.31e-07/0.1546, allocations: 0 / 476.5 MB, free: 4.113 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.267e-06/0.1546, allocations: 0 / 476.5 MB, free: 4.113 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.001743/0.1563, allocations: 0.8708 MB / 477.4 MB, free: 3.191 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.782e-05/0.1564, allocations: 11.97 kB / 477.4 MB, free: 3.18 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003099/0.1567, allocations: 68.17 kB / 477.4 MB, free: 3.113 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000995/0.1577, allocations: 0.549 MB / 478 MB, free: 2.523 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.531e-05/0.1577, allocations: 33 kB / 478 MB, free: 2.492 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.983e-05/0.1578, allocations: 47.98 kB / 478.1 MB, free: 2.445 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001036/0.1589, allocations: 0.6258 MB / 478.7 MB, free: 1.777 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.781e-05/0.1589, allocations: 3.906 kB / 478.7 MB, free: 1.773 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.127e-05/0.159, allocations: 19.98 kB / 478.7 MB, free: 1.754 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001321/0.1591, allocations: 48.97 kB / 478.8 MB, free: 1.707 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007405/0.1599, allocations: 475.5 kB / 479.2 MB, free: 1.242 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003025/0.1629, allocations: 2.511 MB / 481.7 MB, free: 14.59 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004855/0.1634, allocations: 281.1 kB / 482 MB, free: 14.3 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002511/0.1637, allocations: 142.2 kB / 482.1 MB, free: 14.16 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.152e-05/0.1637, allocations: 11.98 kB / 482.2 MB, free: 14.14 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.56e-05/0.1638, allocations: 42.55 kB / 482.2 MB, free: 14.09 MB / 366.1 MB Notification: Performance of pre-optimization done (n=30): time 2.755e-06/0.1638, allocations: 0 / 482.2 MB, free: 14.09 MB / 366.1 MB Notification: Performance of matching and sorting (n=32): time 0.003015/0.1668, allocations: 1.535 MB / 483.7 MB, free: 12.45 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.577e-05/0.1669, allocations: 85.09 kB / 483.8 MB, free: 12.34 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000465/0.1673, allocations: 409.9 kB / 484.2 MB, free: 11.94 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.93e-05/0.1674, allocations: 29.7 kB / 484.2 MB, free: 11.9 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002276/0.1676, allocations: 303.5 kB / 484.5 MB, free: 11.6 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001095/0.1677, allocations: 118.3 kB / 484.7 MB, free: 11.48 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001255/0.1679, allocations: 82.06 kB / 484.7 MB, free: 11.4 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001993/0.1681, allocations: 358.7 kB / 485.1 MB, free: 11.04 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002363/0.1683, allocations: 128.8 kB / 485.2 MB, free: 10.91 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003645/0.1687, allocations: 278.3 kB / 485.5 MB, free: 10.57 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006699/0.1694, allocations: 457.9 kB / 485.9 MB, free: 10.06 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.749e-06/0.1694, allocations: 4 kB / 485.9 MB, free: 10.06 MB / 366.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001233/0.1706, allocations: 0.6673 MB / 486.6 MB, free: 9.359 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.21e-05/0.1707, allocations: 8 kB / 486.6 MB, free: 9.352 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.401e-05/0.1707, allocations: 4.406 kB / 486.6 MB, free: 9.348 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005497/0.1712, allocations: 153.5 kB / 486.8 MB, free: 9.191 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003459/0.1716, allocations: 79.83 kB / 486.8 MB, free: 9.113 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003896/0.1755, allocations: 3.397 MB / 490.2 MB, free: 5.441 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002827/0.1758, allocations: 16 kB / 490.3 MB, free: 5.426 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.491e-05/0.1758, allocations: 20 kB / 490.3 MB, free: 5.406 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.0003299/0.1762, allocations: 241.6 kB / 490.5 MB, free: 5.16 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.749e-05/0.1763, allocations: 47.44 kB / 490.6 MB, free: 5.113 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001068/0.1773, allocations: 0.5714 MB / 491.1 MB, free: 4.512 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.694e-06/0.1774, allocations: 7.938 kB / 491.1 MB, free: 4.504 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0008343/0.1782, allocations: 479.9 kB / 491.6 MB, free: 4 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.044e-05/0.1782, allocations: 3.984 kB / 491.6 MB, free: 3.996 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001543/0.1798, allocations: 0.9941 MB / 492.6 MB, free: 2.934 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.432e-06/0.1798, allocations: 4 kB / 492.6 MB, free: 2.93 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001984/0.18, allocations: 51.94 kB / 492.7 MB, free: 2.879 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002778/0.1803, allocations: 88.77 kB / 492.7 MB, free: 2.789 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.187e-05/0.1803, allocations: 8 kB / 492.8 MB, free: 2.781 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001821/0.1821, allocations: 1.87 MB / 494.6 MB, free: 0.7812 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.1822, allocations: 0 / 494.6 MB, free: 0.7812 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009123/0.1831, allocations: 0.6483 MB / 495.3 MB, free: 104 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002597/0.1833, allocations: 140.5 kB / 495.4 MB, free: 15.95 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.86e-05/0.1834, allocations: 8.062 kB / 495.4 MB, free: 15.94 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000179/0.1836, allocations: 8 kB / 495.4 MB, free: 15.93 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.403e-05/0.1836, allocations: 27.91 kB / 495.5 MB, free: 15.9 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.235e-05/0.1837, allocations: 11.98 kB / 495.5 MB, free: 15.89 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003223/0.184, allocations: 295.1 kB / 495.8 MB, free: 15.6 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.184, allocations: 4 kB / 495.8 MB, free: 15.6 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005654/0.1846, allocations: 124 kB / 495.9 MB, free: 15.48 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.0001322/0.1847, allocations: 107.2 kB / 496 MB, free: 15.36 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0009457/0.1857, allocations: 0.5998 MB / 496.6 MB, free: 14.73 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.1857, allocations: 4.188 kB / 496.6 MB, free: 14.73 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004158/0.1861, allocations: 302.4 kB / 496.9 MB, free: 14.42 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006442/0.1868, allocations: 106.1 kB / 497 MB, free: 14.32 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002029/0.1888, allocations: 1.336 MB / 498.3 MB, free: 12.95 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005434/0.1894, allocations: 0.9283 MB / 499.3 MB, free: 12 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002584/0.1896, allocations: 72.31 kB / 499.3 MB, free: 11.93 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.254e-05/0.1897, allocations: 31.44 kB / 499.4 MB, free: 11.89 MB / 382.1 MB Notification: Performance of SimCode: time 2.094e-06/0.1897, allocations: 4 kB / 499.4 MB, free: 11.89 MB / 382.1 MB Notification: Performance of Templates: time 0.01014/0.1999, allocations: 5.404 MB / 0.4929 GB, free: 6.539 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)