Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.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.AC1ph_DC.Elementary.Impedance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1480,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Impedance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1480,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001138/0.001138, allocations: 102.7 kB / 17.59 MB, free: 5.426 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.001213/0.001213, allocations: 187.3 kB / 18.52 MB, free: 4.508 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.337/1.337, allocations: 222.9 MB / 242.2 MB, free: 15.28 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1761/0.1761, allocations: 38.02 MB / 330.4 MB, free: 8.82 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001276/0.001276, allocations: 61.28 kB / 399.5 MB, free: 34.06 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1074/0.1087, allocations: 58.07 MB / 457.5 MB, free: 8.086 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Impedance): time 0.01017/0.1189, allocations: 4.328 MB / 461.9 MB, free: 3.73 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002862/0.1218, allocations: 0.9466 MB / 462.8 MB, free: 2.781 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003297/0.1222, allocations: 11.94 kB / 462.8 MB, free: 2.77 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003173/0.1225, allocations: 55.5 kB / 462.9 MB, free: 2.715 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001074/0.1237, allocations: 238.8 kB / 463.1 MB, free: 2.48 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004865/0.1242, allocations: 103.8 kB / 463.2 MB, free: 2.379 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009673/0.1252, allocations: 0.4984 MB / 463.7 MB, free: 1.879 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003932/0.1256, allocations: 143.9 kB / 463.8 MB, free: 1.742 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005356/0.1262, allocations: 219 kB / 464.1 MB, free: 1.527 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000743/0.1269, allocations: 267.1 kB / 464.3 MB, free: 1.266 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001073/0.127, allocations: 24 kB / 464.3 MB, free: 1.242 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001196/0.1272, allocations: 28 kB / 464.4 MB, free: 1.215 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002702/0.1275, allocations: 147.6 kB / 464.5 MB, free: 1.07 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003271/0.1278, allocations: 171.1 kB / 464.7 MB, free: 0.9023 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006123/0.1285, allocations: 366.6 kB / 465 MB, free: 0.543 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.1285, allocations: 0 / 465 MB, free: 0.543 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1285, allocations: 0 / 465 MB, free: 0.543 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.95e-05/0.1285, allocations: 0 / 465 MB, free: 0.543 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: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.001811/0.1303, allocations: 0.6555 MB / 465.7 MB, free: 15.84 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.309e-05/0.1304, allocations: 19.83 kB / 465.7 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001283/0.1306, allocations: 40.41 kB / 465.8 MB, free: 15.78 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008644/0.1314, allocations: 359.8 kB / 466.1 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.123e-05/0.1315, allocations: 24.67 kB / 466.1 MB, free: 15.37 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.896e-05/0.1316, allocations: 28 kB / 466.2 MB, free: 15.34 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008863/0.1325, allocations: 352.7 kB / 466.5 MB, free: 14.96 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.946e-05/0.1325, allocations: 3.938 kB / 466.5 MB, free: 14.96 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.809e-05/0.1326, allocations: 12 kB / 466.5 MB, free: 14.95 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001777/0.1328, allocations: 24.53 kB / 466.5 MB, free: 14.92 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007249/0.1335, allocations: 238 kB / 466.8 MB, free: 14.69 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002703/0.1363, allocations: 1.374 MB / 468.1 MB, free: 13.23 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005721/0.1369, allocations: 165.1 kB / 468.3 MB, free: 13.05 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003422/0.1372, allocations: 93.73 kB / 468.4 MB, free: 12.95 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.614e-05/0.1373, allocations: 11.98 kB / 468.4 MB, free: 12.94 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.281e-05/0.1373, allocations: 42.48 kB / 468.4 MB, free: 12.89 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 2.434e-06/0.1373, allocations: 0 / 468.4 MB, free: 12.89 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.002191/0.1395, allocations: 0.7611 MB / 469.2 MB, free: 12.06 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.2e-05/0.1396, allocations: 89.08 kB / 469.3 MB, free: 11.95 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005216/0.1402, allocations: 296.4 kB / 469.6 MB, free: 11.65 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.357e-05/0.1402, allocations: 37.64 kB / 469.6 MB, free: 11.61 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002146/0.1405, allocations: 211.6 kB / 469.8 MB, free: 11.4 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.213e-05/0.1405, allocations: 47.27 kB / 469.9 MB, free: 11.35 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001279/0.1407, allocations: 53.61 kB / 469.9 MB, free: 11.29 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001918/0.1409, allocations: 342.8 kB / 470.3 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002158/0.1411, allocations: 63.97 kB / 470.3 MB, free: 10.89 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003203/0.1415, allocations: 173.3 kB / 470.5 MB, free: 10.67 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005787/0.1421, allocations: 260.6 kB / 470.8 MB, free: 10.37 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.102e-06/0.1421, allocations: 4 kB / 470.8 MB, free: 10.37 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009639/0.1431, allocations: 320.8 kB / 471.1 MB, free: 10.05 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.007e-05/0.1431, allocations: 4 kB / 471.1 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.29e-05/0.1431, allocations: 4 kB / 471.1 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002964/0.1434, allocations: 53.25 kB / 471.1 MB, free: 9.984 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003051/0.1438, allocations: 51.92 kB / 471.2 MB, free: 9.934 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002277/0.1461, allocations: 1.609 MB / 472.8 MB, free: 8.184 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002832/0.1464, allocations: 8 kB / 472.8 MB, free: 8.176 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.525e-05/0.1464, allocations: 19.97 kB / 472.8 MB, free: 8.156 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (28): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * 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 {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003026/0.1467, allocations: 169.7 kB / 473 MB, free: 7.98 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000115/0.1469, allocations: 35.72 kB / 473 MB, free: 7.945 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000669/0.1476, allocations: 236.2 kB / 473.2 MB, free: 7.707 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.428e-06/0.1476, allocations: 0 / 473.2 MB, free: 7.707 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.527e-06/0.1476, allocations: 0 / 473.2 MB, free: 7.707 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.127e-06/0.1476, allocations: 7.984 kB / 473.3 MB, free: 7.699 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001524/0.1492, allocations: 0.6404 MB / 473.9 MB, free: 6.996 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.047e-06/0.1492, allocations: 32 / 473.9 MB, free: 6.996 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001882/0.1494, allocations: 27.92 kB / 473.9 MB, free: 6.969 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003658/0.1498, allocations: 60.8 kB / 474 MB, free: 6.906 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.431e-05/0.1498, allocations: 0 / 474 MB, free: 6.906 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002159/0.152, allocations: 1.613 MB / 475.6 MB, free: 5.148 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.152, allocations: 0 / 475.6 MB, free: 5.148 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008926/0.1529, allocations: 408.8 kB / 476 MB, free: 4.727 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001345/0.1531, allocations: 104.7 kB / 476.1 MB, free: 4.605 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.08e-05/0.1531, allocations: 11.98 kB / 476.1 MB, free: 4.594 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002495/0.1534, allocations: 8 kB / 476.1 MB, free: 4.586 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.949e-05/0.1535, allocations: 7.984 kB / 476.1 MB, free: 4.578 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.422e-05/0.1535, allocations: 15.98 kB / 476.1 MB, free: 4.562 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003642/0.1539, allocations: 211.1 kB / 476.3 MB, free: 4.359 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.1539, allocations: 0 / 476.3 MB, free: 4.359 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007225/0.1546, allocations: 68 kB / 476.4 MB, free: 4.293 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (ind.i[1],ind.i[2]) * 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 (16): * Single equations (assignments): 14 * 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 {(1,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.0001857/0.1549, allocations: 103.2 kB / 476.5 MB, free: 4.184 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009529/0.1558, allocations: 315 kB / 476.8 MB, free: 3.863 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/0.1558, allocations: 3.938 kB / 476.8 MB, free: 3.859 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005948/0.1565, allocations: 200.7 kB / 477 MB, free: 3.652 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008905/0.1574, allocations: 71.5 kB / 477.1 MB, free: 3.586 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002089/0.1595, allocations: 0.7693 MB / 477.9 MB, free: 2.781 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005733/0.1601, allocations: 0.8026 MB / 478.7 MB, free: 1.953 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000101/0.1602, allocations: 31.42 kB / 478.7 MB, free: 1.922 MB / 350.1 MB Notification: Performance of SimCode: time 8.11e-07/0.1602, allocations: 4 kB / 478.7 MB, free: 1.918 MB / 350.1 MB Notification: Performance of Templates: time 0.008848/0.1691, allocations: 4.85 MB / 483.5 MB, free: 13.07 MB / 366.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe 2>&1)