Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Line.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: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Line,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_Line",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Line,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_Line",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001569/0.001574, allocations: 180.7 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 1.99/1.99, allocations: 205.4 MB / 221.9 MB, free: 13.8 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.001089/0.001089, allocations: 94.86 kB / 270.2 MB, free: 13.33 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2715/0.2715, allocations: 38.05 MB / 356.6 MB, free: 0.7852 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004583/0.0004582, allocations: 15.98 kB / 422.8 MB, free: 26.33 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1104/0.1109, allocations: 56.33 MB / 479.1 MB, free: 1.938 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Line): time 0.007925/0.1188, allocations: 4.88 MB / 484 MB, free: 13.03 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.00378/0.1227, allocations: 1.529 MB / 485.5 MB, free: 11.5 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004458/0.1232, allocations: 31.75 kB / 485.6 MB, free: 11.46 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000521/0.1237, allocations: 127.2 kB / 485.7 MB, free: 11.34 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001063/0.1248, allocations: 307.1 kB / 486 MB, free: 11.04 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006747/0.1255, allocations: 179.6 kB / 486.2 MB, free: 10.86 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007095/0.1262, allocations: 375.3 kB / 486.5 MB, free: 10.5 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002978/0.1265, allocations: 122.2 kB / 486.7 MB, free: 10.38 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005266/0.1271, allocations: 239.2 kB / 486.9 MB, free: 10.15 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007494/0.1278, allocations: 335.1 kB / 487.2 MB, free: 9.82 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001119/0.128, allocations: 24 kB / 487.2 MB, free: 9.797 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001333/0.1281, allocations: 24 kB / 487.3 MB, free: 9.773 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000322/0.1284, allocations: 195.5 kB / 487.5 MB, free: 9.582 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000167/0.1286, allocations: 113.5 kB / 487.6 MB, free: 9.465 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006764/0.1293, allocations: 482.8 kB / 488 MB, free: 8.992 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.715e-06/0.1293, allocations: 0 / 488 MB, free: 8.992 MB / 330.7 MB Notification: Performance of FrontEnd: time 4.058e-06/0.1293, allocations: 0 / 488 MB, free: 8.992 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.674e-06/0.1294, allocations: 3.938 kB / 488 MB, free: 8.988 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: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.002804/0.1322, allocations: 0.8543 MB / 488.9 MB, free: 8.078 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.135e-05/0.1322, allocations: 11.97 kB / 488.9 MB, free: 8.066 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000198/0.1325, allocations: 78.42 kB / 489 MB, free: 7.98 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001618/0.1326, allocations: 51.44 kB / 489 MB, free: 7.93 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002009/0.1347, allocations: 0.5871 MB / 489.6 MB, free: 7.301 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.724e-05/0.1348, allocations: 24.66 kB / 489.6 MB, free: 7.277 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001652/0.1349, allocations: 44 kB / 489.7 MB, free: 7.234 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001346/0.1363, allocations: 0.5439 MB / 490.2 MB, free: 6.652 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.303e-05/0.1363, allocations: 7.984 kB / 490.2 MB, free: 6.645 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.008e-05/0.1364, allocations: 8 kB / 490.3 MB, free: 6.637 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006083/0.137, allocations: 88.48 kB / 490.3 MB, free: 6.551 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009746/0.138, allocations: 366.3 kB / 490.7 MB, free: 6.195 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004801/0.1428, allocations: 2.051 MB / 492.7 MB, free: 4.062 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001495/0.1444, allocations: 389.1 kB / 493.1 MB, free: 3.664 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.565e-05/0.1444, allocations: 8.047 kB / 493.1 MB, free: 3.656 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.757e-05/0.1445, allocations: 39.09 kB / 493.2 MB, free: 3.609 MB / 330.7 MB Notification: Performance of pre-optimization done (n=32): time 4.859e-06/0.1445, allocations: 4 kB / 493.2 MB, free: 3.605 MB / 330.7 MB Notification: Performance of matching and sorting (n=33): time 0.00783/0.1523, allocations: 2.53 MB / 495.7 MB, free: 0.8672 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.989e-05/0.1525, allocations: 81.11 kB / 495.8 MB, free: 0.7695 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006623/0.1531, allocations: 377.8 kB / 496.2 MB, free: 404 kB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.364e-05/0.1532, allocations: 29.7 kB / 496.2 MB, free: 368 kB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002395/0.1535, allocations: 290.6 kB / 496.5 MB, free: 76 kB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002117/0.1537, allocations: 142.2 kB / 496.6 MB, free: 15.93 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.289e-05/0.1537, allocations: 8 kB / 496.6 MB, free: 15.92 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001532/0.1539, allocations: 334.6 kB / 496.9 MB, free: 15.59 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006272/0.1545, allocations: 241 kB / 497.2 MB, free: 15.36 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007404/0.1553, allocations: 366.7 kB / 497.5 MB, free: 14.95 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008083/0.1561, allocations: 293.5 kB / 497.8 MB, free: 14.66 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.679e-06/0.1561, allocations: 0 / 497.8 MB, free: 14.66 MB / 346.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.003029/0.1592, allocations: 0.979 MB / 498.8 MB, free: 13.67 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.259e-05/0.1593, allocations: 12.06 kB / 498.8 MB, free: 13.66 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.441e-05/0.1593, allocations: 4 kB / 498.8 MB, free: 13.66 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001813/0.1611, allocations: 409.2 kB / 499.2 MB, free: 13.25 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006278/0.1618, allocations: 87.89 kB / 499.3 MB, free: 13.16 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008456/0.1702, allocations: 4.778 MB / 0.4923 GB, free: 8.113 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006412/0.1709, allocations: 51.89 kB / 0.4923 GB, free: 8.062 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.138e-05/0.171, allocations: 20 kB / 0.4923 GB, free: 8.043 MB / 346.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 (48): * Single equations (assignments): 46 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004011/0.1714, allocations: 205.5 kB / 0.4925 GB, free: 7.836 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000141/0.1716, allocations: 43.44 kB / 0.4926 GB, free: 7.793 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002494/0.1741, allocations: 0.839 MB / 0.4934 GB, free: 6.926 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.366e-05/0.1741, allocations: 8 kB / 0.4934 GB, free: 6.918 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.498e-06/0.1741, allocations: 11.83 kB / 0.4934 GB, free: 6.906 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.355e-06/0.1742, allocations: 4 kB / 0.4934 GB, free: 6.902 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003715/0.1779, allocations: 1.41 MB / 0.4948 GB, free: 5.414 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.173e-05/0.1779, allocations: 7.984 kB / 0.4948 GB, free: 5.406 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003625/0.1783, allocations: 39.98 kB / 0.4948 GB, free: 5.367 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00222/0.1805, allocations: 445.3 kB / 0.4953 GB, free: 4.91 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001233/0.1807, allocations: 31.97 kB / 0.4953 GB, free: 4.879 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008189/0.1889, allocations: 6.304 MB / 0.5014 GB, free: 14.04 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.21e-06/0.189, allocations: 0 / 0.5014 GB, free: 14.04 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003026/0.192, allocations: 1.144 MB / 0.5026 GB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001748/0.1922, allocations: 120.5 kB / 0.5027 GB, free: 12.7 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001666/0.1924, allocations: 31.94 kB / 0.5027 GB, free: 12.67 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005211/0.1929, allocations: 35.94 kB / 0.5027 GB, free: 12.64 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001612/0.1931, allocations: 35.94 kB / 0.5028 GB, free: 12.6 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.882e-05/0.1932, allocations: 23.97 kB / 0.5028 GB, free: 12.58 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004341/0.1936, allocations: 259.2 kB / 0.503 GB, free: 12.32 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.1e-07/0.1936, allocations: 0 / 0.503 GB, free: 12.32 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009472/0.1946, allocations: 156 kB / 0.5032 GB, free: 12.17 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 14 (line.v[1,1],line.v[1,2],line.v[1,3],line.v[2,1],line.v[2,2],line.v[2,3],line.i[1,1],line.i[1,2],line.i[1,3],line.i[1,4],line.i[2,1],line.i[2,2],line.i[2,3],line.i[2,4]) * 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 (29): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(2,100.0%),(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003406/0.198, allocations: 1.85 MB / 0.505 GB, free: 10.26 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002673/0.2007, allocations: 0.8799 MB / 0.5059 GB, free: 9.355 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.392e-06/0.2007, allocations: 0 / 0.5059 GB, free: 9.355 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00248/0.2032, allocations: 1.094 MB / 0.5069 GB, free: 8.148 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009748/0.2042, allocations: 113.4 kB / 0.507 GB, free: 8.035 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01169/0.2159, allocations: 6.816 MB / 0.5137 GB, free: 1.082 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006634/0.2166, allocations: 0.8937 MB / 0.5146 GB, free: 168 kB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000332/0.217, allocations: 151.4 kB / 0.5147 GB, free: 16 kB / 362.7 MB Notification: Performance of SimCode: time 9.92e-07/0.217, allocations: 0 / 0.5147 GB, free: 16 kB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.332/3.549, allocations: 14.94 MB / 0.5293 GB, free: 47.38 MB / 362.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Line.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_Line_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_Line.fmu > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe 2>&1)