Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad.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/PowerSysPro 2.3.1/package.mo", uses=false) Using package PowerSysPro with version 2.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/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(PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad") translateModel(PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001427/0.001427, allocations: 105.2 kB / 16.45 MB, free: 6.445 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.001565/0.001565, allocations: 186.4 kB / 17.39 MB, free: 5.668 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.407/1.407, allocations: 222.9 MB / 241.1 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.05511/0.05511, allocations: 8.102 MB / 299.3 MB, free: 6.621 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001538/0.001538, allocations: 59.91 kB / 414.5 MB, free: 21.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1265/0.1281, allocations: 51.52 MB / 466 MB, free: 2.168 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad): time 0.003353/0.1315, allocations: 1.566 MB / 467.6 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002665/0.1342, allocations: 1.571 MB / 469.1 MB, free: 15.02 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001927/0.1344, allocations: 0 / 469.1 MB, free: 15.02 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005214/0.135, allocations: 119.3 kB / 469.2 MB, free: 14.9 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004945/0.1355, allocations: 115.3 kB / 469.4 MB, free: 14.79 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo:34:7-34:67:writable] Warning: In relation pv.rampTime == 0.0, == on Real numbers is only allowed inside functions. Notification: Performance of NFTyping.typeClassSections: time 0.001894/0.1374, allocations: 0.9179 MB / 470.3 MB, free: 13.87 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004774/0.1379, allocations: 250.8 kB / 470.5 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001955/0.1381, allocations: 76.34 kB / 470.6 MB, free: 13.55 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001847/0.1383, allocations: 107.6 kB / 470.7 MB, free: 13.44 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002834/0.1386, allocations: 131.5 kB / 470.8 MB, free: 13.31 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.094e-05/0.1386, allocations: 16 kB / 470.8 MB, free: 13.3 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005275/0.1392, allocations: 215.8 kB / 471 MB, free: 13.09 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.143e-05/0.1392, allocations: 47.78 kB / 471.1 MB, free: 13.04 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001597/0.1394, allocations: 119.3 kB / 471.2 MB, free: 12.92 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007068/0.1401, allocations: 390.9 kB / 471.6 MB, free: 12.54 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.581e-06/0.1401, allocations: 0 / 471.6 MB, free: 12.54 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1401, allocations: 0 / 471.6 MB, free: 12.54 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.748e-06/0.1402, allocations: 0 / 471.6 MB, free: 12.54 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: 41 * Number of variables: 41 Notification: Performance of Generate backend data structure: time 0.002799/0.143, allocations: 0.8263 MB / 472.4 MB, free: 11.66 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.494e-05/0.143, allocations: 8.031 kB / 472.4 MB, free: 11.65 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.866e-05/0.1431, allocations: 28.66 kB / 472.5 MB, free: 11.62 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003328/0.1435, allocations: 249.6 kB / 472.7 MB, free: 11.34 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.287e-05/0.1435, allocations: 16.38 kB / 472.7 MB, free: 11.32 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.976e-05/0.1435, allocations: 24.38 kB / 472.7 MB, free: 11.3 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004647/0.144, allocations: 261.9 kB / 473 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.308e-05/0.144, allocations: 4.188 kB / 473 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.306e-05/0.1441, allocations: 11.94 kB / 473 MB, free: 11.02 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.326e-06/0.1441, allocations: 4 kB / 473 MB, free: 11.02 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003944/0.1445, allocations: 247.7 kB / 473.3 MB, free: 10.78 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001626/0.1461, allocations: 1.152 MB / 474.4 MB, free: 9.484 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004511/0.1466, allocations: 299.1 kB / 474.7 MB, free: 9.184 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002441/0.1468, allocations: 161.3 kB / 474.9 MB, free: 9.023 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.762e-05/0.1469, allocations: 12.22 kB / 474.9 MB, free: 9.012 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004194/0.1473, allocations: 219.5 kB / 475.1 MB, free: 8.785 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 1.874e-06/0.1474, allocations: 0 / 475.1 MB, free: 8.785 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.002933/0.1503, allocations: 0.9256 MB / 476 MB, free: 7.832 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.566e-05/0.1503, allocations: 59.34 kB / 476.1 MB, free: 7.762 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002198/0.1506, allocations: 187.1 kB / 476.3 MB, free: 7.57 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.921e-05/0.1506, allocations: 33.7 kB / 476.3 MB, free: 7.531 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.664e-05/0.1507, allocations: 124.8 kB / 476.4 MB, free: 7.402 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.781e-05/0.1508, allocations: 94.59 kB / 476.5 MB, free: 7.309 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001534/0.151, allocations: 65.45 kB / 476.6 MB, free: 7.238 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001499/0.1511, allocations: 334.8 kB / 476.9 MB, free: 6.902 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002518/0.1514, allocations: 152 kB / 477 MB, free: 6.754 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002719/0.1517, allocations: 186.9 kB / 477.2 MB, free: 6.562 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000531/0.1522, allocations: 370.2 kB / 477.6 MB, free: 6.191 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.1522, allocations: 0 / 477.6 MB, free: 6.191 MB / 350.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.001662/0.1539, allocations: 0.6421 MB / 478.2 MB, free: 5.539 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.831e-05/0.1539, allocations: 4 kB / 478.2 MB, free: 5.535 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.984e-06/0.1539, allocations: 4 kB / 478.2 MB, free: 5.531 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001637/0.1556, allocations: 344.5 kB / 478.6 MB, free: 5.191 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002336/0.1558, allocations: 47.92 kB / 478.6 MB, free: 5.145 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00424/0.1601, allocations: 2.632 MB / 481.2 MB, free: 2.371 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002258/0.1603, allocations: 23.89 kB / 481.3 MB, free: 2.348 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.295e-05/0.1604, allocations: 12.23 kB / 481.3 MB, free: 2.336 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 30 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(6,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001828/0.1606, allocations: 141.8 kB / 481.4 MB, free: 2.188 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.95e-05/0.1606, allocations: 27.66 kB / 481.4 MB, free: 2.16 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001813/0.1624, allocations: 0.6602 MB / 482.1 MB, free: 1.496 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.434e-06/0.1625, allocations: 7.938 kB / 482.1 MB, free: 1.488 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.785e-06/0.1625, allocations: 0 / 482.1 MB, free: 1.488 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.1625, allocations: 0 / 482.1 MB, free: 1.488 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004029/0.1629, allocations: 397.2 kB / 482.5 MB, free: 1.051 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.247e-06/0.1629, allocations: 4 kB / 482.5 MB, free: 1.047 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002426/0.1631, allocations: 39.97 kB / 482.5 MB, free: 1.008 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001522/0.1647, allocations: 336.5 kB / 482.9 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.234e-05/0.1647, allocations: 8 kB / 482.9 MB, free: 0.668 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004137/0.1689, allocations: 2.609 MB / 485.5 MB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/0.1689, allocations: 3.938 kB / 485.5 MB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001671/0.1706, allocations: 0.6386 MB / 486.1 MB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.503e-05/0.1707, allocations: 100.7 kB / 486.2 MB, free: 13.13 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.969e-05/0.1707, allocations: 11.98 kB / 486.2 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002117/0.1709, allocations: 15.75 kB / 486.3 MB, free: 13.11 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.246e-05/0.171, allocations: 31.89 kB / 486.3 MB, free: 13.08 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.752e-05/0.1711, allocations: 8 kB / 486.3 MB, free: 13.07 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001326/0.1712, allocations: 135.2 kB / 486.4 MB, free: 12.94 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1712, allocations: 0 / 486.4 MB, free: 12.94 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00045/0.1717, allocations: 99.94 kB / 486.5 MB, free: 12.84 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 26 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(6,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002299/0.1719, allocations: 111.2 kB / 486.6 MB, free: 12.72 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00157/0.1735, allocations: 0.6206 MB / 487.3 MB, free: 12.09 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.1735, allocations: 0 / 487.3 MB, free: 12.09 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001066/0.1746, allocations: 446.3 kB / 487.7 MB, free: 11.64 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003347/0.1749, allocations: 38.55 kB / 487.7 MB, free: 11.6 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001178/0.1761, allocations: 0.506 MB / 488.2 MB, free: 11.07 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003876/0.1765, allocations: 0.7454 MB / 489 MB, free: 10.3 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001413/0.1767, allocations: 33.91 kB / 489 MB, free: 10.27 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.792e-05/0.1767, allocations: 27.44 kB / 489 MB, free: 10.24 MB / 366.1 MB Notification: Performance of SimCode: time 6.22e-07/0.1767, allocations: 0 / 489 MB, free: 10.24 MB / 366.1 MB Notification: Performance of Templates: time 0.01409/0.1908, allocations: 5.96 MB / 495 MB, free: 4.297 MB / 366.1 MB make -j1 -f PowerSysPro_PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad.makefile (rm -f PowerSysPro_PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad.sim & ./PowerSysPro_PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSysPro_PowerSysPro.Examples.OneEmergencySourceTwoLinesOneLoad.pipe 2>&1)