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.001189/0.001189, allocations: 109.8 kB / 16.62 MB, free: 6.961 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.001313/0.001313, allocations: 189.8 kB / 17.55 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.39/1.39, allocations: 222.9 MB / 241.2 MB, free: 13.72 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1703/0.1703, allocations: 38.02 MB / 329.4 MB, free: 8.77 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001991/0.001991, allocations: 65.08 kB / 398.3 MB, free: 34.37 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1419/0.1439, allocations: 58.05 MB / 456.3 MB, free: 8.406 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMcharacteristic): time 0.008379/0.1524, allocations: 6.073 MB / 462.4 MB, free: 2.297 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006778/0.1592, allocations: 4.231 MB / 466.6 MB, free: 14.05 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007975/0.16, allocations: 31.81 kB / 466.7 MB, free: 14.02 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008983/0.169, allocations: 4.871 MB / 471.5 MB, free: 9.141 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001277/0.1703, allocations: 294.7 kB / 471.8 MB, free: 8.852 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006984/0.171, allocations: 199.7 kB / 472 MB, free: 8.656 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001934/0.173, allocations: 1.594 MB / 473.6 MB, free: 7.055 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009448/0.1739, allocations: 0.608 MB / 474.2 MB, free: 6.438 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004559/0.1744, allocations: 362.7 kB / 474.6 MB, free: 6.082 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006328/0.1751, allocations: 442.4 kB / 475 MB, free: 5.648 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.927e-05/0.1751, allocations: 56 kB / 475.1 MB, free: 5.594 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000167/0.1753, allocations: 67.94 kB / 475.1 MB, free: 5.527 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000262/0.1756, allocations: 259.3 kB / 475.4 MB, free: 5.273 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003297/0.1759, allocations: 322.5 kB / 475.7 MB, free: 4.957 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008287/0.1768, allocations: 0.7983 MB / 476.5 MB, free: 4.156 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.1768, allocations: 0 / 476.5 MB, free: 4.156 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.515e-06/0.1768, allocations: 0 / 476.5 MB, free: 4.156 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.095e-05/0.1768, allocations: 4 kB / 476.5 MB, free: 4.152 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.001687/0.1785, allocations: 0.8629 MB / 477.4 MB, free: 3.238 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.725e-05/0.1786, allocations: 15.83 kB / 477.4 MB, free: 3.223 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003076/0.1789, allocations: 76.17 kB / 477.5 MB, free: 3.148 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000939/0.1798, allocations: 0.5373 MB / 478 MB, free: 2.57 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.407e-05/0.1799, allocations: 36.98 kB / 478 MB, free: 2.535 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.495e-05/0.18, allocations: 47.98 kB / 478.1 MB, free: 2.488 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009515/0.1809, allocations: 0.6258 MB / 478.7 MB, free: 1.824 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.712e-05/0.181, allocations: 11.84 kB / 478.7 MB, free: 1.812 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.929e-05/0.181, allocations: 16 kB / 478.7 MB, free: 1.797 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001357/0.1811, allocations: 48.97 kB / 478.8 MB, free: 1.746 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007099/0.1819, allocations: 463.6 kB / 479.2 MB, free: 1.297 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003173/0.185, allocations: 2.53 MB / 481.8 MB, free: 14.62 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004798/0.1856, allocations: 285 kB / 482 MB, free: 14.32 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002156/0.1858, allocations: 145.7 kB / 482.2 MB, free: 14.18 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.592e-05/0.1858, allocations: 4.5 kB / 482.2 MB, free: 14.17 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.188e-05/0.1859, allocations: 30.56 kB / 482.2 MB, free: 14.13 MB / 366.1 MB Notification: Performance of pre-optimization done (n=30): time 2.254e-06/0.1859, allocations: 0 / 482.2 MB, free: 14.13 MB / 366.1 MB Notification: Performance of matching and sorting (n=32): time 0.002936/0.1888, allocations: 1.544 MB / 483.8 MB, free: 12.47 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.625e-05/0.1889, allocations: 85.05 kB / 483.8 MB, free: 12.37 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000441/0.1894, allocations: 417.8 kB / 484.3 MB, free: 11.96 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.771e-05/0.1894, allocations: 29.7 kB / 484.3 MB, free: 11.93 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002013/0.1896, allocations: 303.5 kB / 484.6 MB, free: 11.62 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.841e-05/0.1897, allocations: 110.4 kB / 484.7 MB, free: 11.52 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001155/0.1898, allocations: 82.12 kB / 484.8 MB, free: 11.43 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001386/0.19, allocations: 354.7 kB / 485.1 MB, free: 11.07 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002072/0.1902, allocations: 136.8 kB / 485.2 MB, free: 10.94 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002882/0.1905, allocations: 274.3 kB / 485.5 MB, free: 10.61 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005585/0.1911, allocations: 453.9 kB / 486 MB, free: 10.1 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/0.1911, allocations: 3.984 kB / 486 MB, free: 10.09 MB / 366.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001036/0.1921, allocations: 0.6752 MB / 486.6 MB, free: 9.387 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.858e-05/0.1921, allocations: 4 kB / 486.6 MB, free: 9.383 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.147e-05/0.1922, allocations: 8 kB / 486.6 MB, free: 9.375 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004464/0.1926, allocations: 145.5 kB / 486.8 MB, free: 9.227 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002939/0.1929, allocations: 75.89 kB / 486.9 MB, free: 9.152 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00336/0.1963, allocations: 3.676 MB / 490.5 MB, free: 5.188 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002768/0.1966, allocations: 19.94 kB / 490.6 MB, free: 5.168 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.772e-05/0.1966, allocations: 28.05 kB / 490.6 MB, free: 5.141 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.0003171/0.1969, allocations: 229.7 kB / 490.8 MB, free: 4.906 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.2e-05/0.197, allocations: 43.53 kB / 490.9 MB, free: 4.863 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009603/0.198, allocations: 0.5819 MB / 491.4 MB, free: 4.254 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.899e-06/0.198, allocations: 4 kB / 491.4 MB, free: 4.25 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0007357/0.1988, allocations: 487.9 kB / 491.9 MB, free: 3.738 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.1988, allocations: 0 / 491.9 MB, free: 3.738 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001506/0.2003, allocations: 1.006 MB / 492.9 MB, free: 2.664 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.274e-06/0.2003, allocations: 0 / 492.9 MB, free: 2.664 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002054/0.2005, allocations: 43.86 kB / 493 MB, free: 2.621 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002807/0.2008, allocations: 92.75 kB / 493.1 MB, free: 2.527 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.378e-05/0.2008, allocations: 8 kB / 493.1 MB, free: 2.52 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002086/0.2029, allocations: 2.02 MB / 495.1 MB, free: 368 kB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.2029, allocations: 3.938 kB / 495.1 MB, free: 364 kB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001029/0.204, allocations: 0.6564 MB / 495.7 MB, free: 15.67 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001699/0.2042, allocations: 136.6 kB / 495.9 MB, free: 15.52 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.461e-05/0.2042, allocations: 7.984 kB / 495.9 MB, free: 15.51 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001919/0.2044, allocations: 12 kB / 495.9 MB, free: 15.5 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.946e-05/0.2045, allocations: 27.91 kB / 495.9 MB, free: 15.47 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.43e-05/0.2045, allocations: 12.06 kB / 495.9 MB, free: 15.46 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003988/0.2049, allocations: 299.1 kB / 496.2 MB, free: 15.16 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2049, allocations: 0 / 496.2 MB, free: 15.16 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006048/0.2055, allocations: 120 kB / 496.3 MB, free: 15.05 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.0001675/0.2057, allocations: 105.1 kB / 496.4 MB, free: 14.94 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001109/0.2068, allocations: 0.634 MB / 497.1 MB, free: 14.28 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.2068, allocations: 0 / 497.1 MB, free: 14.28 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004842/0.2073, allocations: 303.4 kB / 497.4 MB, free: 13.97 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006716/0.208, allocations: 115.5 kB / 497.5 MB, free: 13.86 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002156/0.2102, allocations: 1.335 MB / 498.8 MB, free: 12.48 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005586/0.2108, allocations: 0.9167 MB / 499.7 MB, free: 11.54 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002862/0.2111, allocations: 84.31 kB / 499.8 MB, free: 11.46 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.414e-05/0.2111, allocations: 31.44 kB / 499.9 MB, free: 11.43 MB / 382.1 MB Notification: Performance of SimCode: time 2.81e-07/0.2112, allocations: 0 / 499.9 MB, free: 11.43 MB / 382.1 MB Notification: Performance of Templates: time 0.01146/0.2226, allocations: 5.624 MB / 0.4936 GB, free: 5.859 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)