Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Impedance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1480,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Impedance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1480,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001606/0.001612, allocations: 191.3 kB / 15.77 MB, free: 5.988 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.081/2.081, allocations: 205.4 MB / 221.9 MB, free: 13.82 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001124/0.001124, allocations: 98.8 kB / 270.3 MB, free: 13.34 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2692/0.2692, allocations: 38.06 MB / 356.6 MB, free: 0.7891 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000478/0.0004781, allocations: 8 kB / 422.7 MB, free: 26.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1115/0.112, allocations: 56.33 MB / 479 MB, free: 2.039 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Impedance): time 0.007155/0.1192, allocations: 4.233 MB / 483.3 MB, free: 13.78 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.002898/0.1221, allocations: 1.139 MB / 484.4 MB, free: 12.64 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003743/0.1226, allocations: 27.81 kB / 484.4 MB, free: 12.61 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002443/0.1228, allocations: 55.66 kB / 484.5 MB, free: 12.55 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009325/0.1238, allocations: 207.3 kB / 484.7 MB, free: 12.35 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004972/0.1243, allocations: 115.8 kB / 484.8 MB, free: 12.24 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005799/0.1249, allocations: 259.4 kB / 485.1 MB, free: 11.98 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003379/0.1253, allocations: 97.77 kB / 485.1 MB, free: 11.89 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004679/0.1257, allocations: 163.4 kB / 485.3 MB, free: 11.73 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004424/0.1262, allocations: 167.5 kB / 485.5 MB, free: 11.57 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 5.215e-05/0.1263, allocations: 12 kB / 485.5 MB, free: 11.56 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.038e-05/0.1264, allocations: 12 kB / 485.5 MB, free: 11.55 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002229/0.1266, allocations: 123.7 kB / 485.6 MB, free: 11.43 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001304/0.1267, allocations: 89.52 kB / 485.7 MB, free: 11.33 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004714/0.1273, allocations: 275.3 kB / 486 MB, free: 11.06 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.321e-06/0.1273, allocations: 0 / 486 MB, free: 11.06 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.1273, allocations: 3.938 kB / 486 MB, free: 11.06 MB / 330.7 MB Notification: Performance of Transformations before backend: time 6.332e-06/0.1273, allocations: 0 / 486 MB, free: 11.06 MB / 330.7 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.001484/0.1288, allocations: 0.6009 MB / 486.6 MB, free: 10.41 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.501e-05/0.1288, allocations: 8.031 kB / 486.6 MB, free: 10.4 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001187/0.129, allocations: 55.45 kB / 486.6 MB, free: 10.34 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007672/0.1298, allocations: 342.7 kB / 487 MB, free: 9.969 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.802e-05/0.1298, allocations: 20.56 kB / 487 MB, free: 9.949 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.242e-05/0.1299, allocations: 24 kB / 487 MB, free: 9.926 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008193/0.1307, allocations: 348.7 kB / 487.4 MB, free: 9.551 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.62e-05/0.1308, allocations: 4 kB / 487.4 MB, free: 9.547 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.101e-05/0.1308, allocations: 8 kB / 487.4 MB, free: 9.539 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000216/0.131, allocations: 32.48 kB / 487.4 MB, free: 9.508 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006607/0.1317, allocations: 242 kB / 487.6 MB, free: 9.273 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002769/0.1345, allocations: 1.37 MB / 489 MB, free: 7.82 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005833/0.1351, allocations: 157.1 kB / 489.2 MB, free: 7.648 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.131e-05/0.1352, allocations: 8.172 kB / 489.2 MB, free: 7.641 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.836e-05/0.1352, allocations: 46.56 kB / 489.2 MB, free: 7.586 MB / 330.7 MB Notification: Performance of pre-optimization done (n=14): time 3.347e-06/0.1352, allocations: 0 / 489.2 MB, free: 7.586 MB / 330.7 MB Notification: Performance of matching and sorting (n=15): time 0.002078/0.1373, allocations: 0.7665 MB / 490 MB, free: 6.746 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.638e-05/0.1374, allocations: 85.05 kB / 490.1 MB, free: 6.645 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004773/0.1379, allocations: 292.5 kB / 490.4 MB, free: 6.344 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.191e-05/0.138, allocations: 29.7 kB / 490.4 MB, free: 6.309 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000235/0.1382, allocations: 270.1 kB / 490.6 MB, free: 6.043 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.398e-05/0.1383, allocations: 55.3 kB / 490.7 MB, free: 5.988 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.772e-05/0.1383, allocations: 7.938 kB / 490.7 MB, free: 5.98 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001583/0.1385, allocations: 318.8 kB / 491 MB, free: 5.66 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001997/0.1387, allocations: 75.89 kB / 491.1 MB, free: 5.586 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000313/0.139, allocations: 164.8 kB / 491.3 MB, free: 5.379 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002649/0.1393, allocations: 95.91 kB / 491.3 MB, free: 5.285 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.576e-06/0.1393, allocations: 0 / 491.3 MB, free: 5.285 MB / 330.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008574/0.1402, allocations: 314 kB / 491.7 MB, free: 4.969 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.508e-05/0.1402, allocations: 4 kB / 491.7 MB, free: 4.965 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.168e-05/0.1403, allocations: 4 kB / 491.7 MB, free: 4.961 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003523/0.1406, allocations: 56.75 kB / 491.7 MB, free: 4.902 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003693/0.141, allocations: 47.92 kB / 491.8 MB, free: 4.855 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00203/0.143, allocations: 1.507 MB / 493.3 MB, free: 3.215 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002872/0.1434, allocations: 12 kB / 493.3 MB, free: 3.203 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.326e-05/0.1434, allocations: 11.98 kB / 493.3 MB, free: 3.191 MB / 330.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002949/0.1437, allocations: 181.9 kB / 493.5 MB, free: 3.004 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.573e-05/0.1438, allocations: 23.72 kB / 493.5 MB, free: 2.98 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006897/0.1445, allocations: 244.3 kB / 493.7 MB, free: 2.73 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.065e-06/0.1445, allocations: 3.984 kB / 493.7 MB, free: 2.727 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.79e-06/0.1446, allocations: 0 / 493.7 MB, free: 2.727 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.063e-06/0.1446, allocations: 4 kB / 493.7 MB, free: 2.723 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00129/0.1459, allocations: 0.6327 MB / 494.4 MB, free: 2.027 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.114e-06/0.1459, allocations: 3.984 kB / 494.4 MB, free: 2.023 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002321/0.1461, allocations: 24 kB / 494.4 MB, free: 2 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003354/0.1465, allocations: 60.78 kB / 494.5 MB, free: 1.938 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.257e-05/0.1465, allocations: 4 kB / 494.5 MB, free: 1.934 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001932/0.1485, allocations: 1.51 MB / 496 MB, free: 296 kB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.285e-06/0.1485, allocations: 0 / 496 MB, free: 296 kB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009143/0.1494, allocations: 429.2 kB / 496.4 MB, free: 15.83 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001172/0.1496, allocations: 104.8 kB / 496.5 MB, free: 15.71 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.541e-05/0.1496, allocations: 4 kB / 496.5 MB, free: 15.71 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002282/0.1499, allocations: 7.984 kB / 496.5 MB, free: 15.7 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.326e-05/0.1499, allocations: 11.98 kB / 496.5 MB, free: 15.69 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.033e-05/0.15, allocations: 8.062 kB / 496.5 MB, free: 15.68 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003274/0.1503, allocations: 211.1 kB / 496.7 MB, free: 15.48 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.518e-06/0.1503, allocations: 0 / 496.7 MB, free: 15.48 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005724/0.1509, allocations: 75.83 kB / 496.8 MB, free: 15.4 MB / 346.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001582/0.1511, allocations: 107.2 kB / 496.9 MB, free: 15.29 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0007896/0.1519, allocations: 295.1 kB / 497.2 MB, free: 14.99 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.1519, allocations: 0 / 497.2 MB, free: 14.99 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005651/0.1525, allocations: 210.6 kB / 497.4 MB, free: 14.77 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006067/0.1531, allocations: 60.81 kB / 497.5 MB, free: 14.71 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001942/0.1551, allocations: 0.9293 MB / 498.4 MB, free: 13.75 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000543/0.1556, allocations: 0.8184 MB / 499.2 MB, free: 12.9 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001111/0.1558, allocations: 19.44 kB / 499.2 MB, free: 12.88 MB / 346.7 MB Notification: Performance of SimCode: time 1.041e-06/0.1558, allocations: 4 kB / 499.2 MB, free: 12.88 MB / 346.7 MB Notification: Performance of Templates: time 0.0121/0.1679, allocations: 4.716 MB / 0.4921 GB, free: 8.156 MB / 346.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe 2>&1)