Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.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.LoadDC,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_LoadDC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_LoadDC",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.001834/0.001838, allocations: 190.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 2.011/2.011, 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.001092/0.001092, allocations: 94.8 kB / 270.2 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.2686/0.2686, allocations: 38.05 MB / 356.6 MB, free: 0.7773 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004494/0.0004496, allocations: 16 kB / 422.8 MB, free: 26.32 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.1071, allocations: 56.33 MB / 479.1 MB, free: 1.926 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC): time 0.006607/0.1138, allocations: 3.846 MB / 483 MB, free: 14.05 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.002512/0.1163, allocations: 0.9833 MB / 484 MB, free: 13.07 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000353/0.1167, allocations: 19.88 kB / 484 MB, free: 13.05 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002133/0.117, allocations: 43.66 kB / 484 MB, free: 13 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006975/0.1177, allocations: 167.4 kB / 484.2 MB, free: 12.84 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003753/0.1181, allocations: 83.89 kB / 484.3 MB, free: 12.76 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004566/0.1185, allocations: 223.5 kB / 484.5 MB, free: 12.54 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002294/0.1188, allocations: 77.12 kB / 484.6 MB, free: 12.47 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003345/0.1191, allocations: 135.5 kB / 484.7 MB, free: 12.34 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003836/0.1195, allocations: 131.5 kB / 484.8 MB, free: 12.21 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 4.636e-05/0.1196, allocations: 15.94 kB / 484.8 MB, free: 12.19 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.113e-05/0.1197, allocations: 12 kB / 484.9 MB, free: 12.18 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001241/0.1198, allocations: 71.73 kB / 484.9 MB, free: 12.11 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001016/0.1199, allocations: 69.58 kB / 485 MB, free: 12.04 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003354/0.1203, allocations: 203.4 kB / 485.2 MB, free: 11.84 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.046e-06/0.1203, allocations: 4 kB / 485.2 MB, free: 11.83 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1203, allocations: 0 / 485.2 MB, free: 11.83 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.731e-06/0.1203, allocations: 4 kB / 485.2 MB, free: 11.83 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.001462/0.1218, allocations: 0.558 MB / 485.8 MB, free: 11.22 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.069e-05/0.1218, allocations: 8.031 kB / 485.8 MB, free: 11.21 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.141e-05/0.122, allocations: 54.55 kB / 485.8 MB, free: 11.15 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.534e-05/0.122, allocations: 35.62 kB / 485.9 MB, free: 11.12 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008257/0.1229, allocations: 313.8 kB / 486.2 MB, free: 10.77 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.167e-05/0.1229, allocations: 12.44 kB / 486.2 MB, free: 10.76 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002129/0.1232, allocations: 35.98 kB / 486.2 MB, free: 10.72 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006866/0.1239, allocations: 290 kB / 486.5 MB, free: 10.41 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.927e-05/0.1239, allocations: 7.891 kB / 486.5 MB, free: 10.4 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.595e-05/0.1239, allocations: 8 kB / 486.5 MB, free: 10.39 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.392e-05/0.124, allocations: 8 kB / 486.5 MB, free: 10.38 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005154/0.1245, allocations: 187.6 kB / 486.7 MB, free: 10.2 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002466/0.127, allocations: 1.28 MB / 488 MB, free: 8.824 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004544/0.1275, allocations: 127.8 kB / 488.1 MB, free: 8.672 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.805e-05/0.1275, allocations: 3.984 kB / 488.1 MB, free: 8.668 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.205e-05/0.1276, allocations: 42.56 kB / 488.1 MB, free: 8.617 MB / 330.7 MB Notification: Performance of pre-optimization done (n=10): time 3.787e-06/0.1276, allocations: 0 / 488.1 MB, free: 8.617 MB / 330.7 MB Notification: Performance of matching and sorting (n=11): time 0.001377/0.129, allocations: 0.5388 MB / 488.7 MB, free: 8.023 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.204e-05/0.1291, allocations: 110.8 kB / 488.8 MB, free: 7.891 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003555/0.1295, allocations: 231 kB / 489 MB, free: 7.648 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.144e-05/0.1295, allocations: 37.69 kB / 489.1 MB, free: 7.605 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001817/0.1297, allocations: 246.1 kB / 489.3 MB, free: 7.363 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.214e-05/0.1298, allocations: 47.39 kB / 489.3 MB, free: 7.316 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.231e-05/0.1298, allocations: 0 / 489.3 MB, free: 7.316 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000144/0.1299, allocations: 318.8 kB / 489.7 MB, free: 6.996 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001331/0.1301, allocations: 43.98 kB / 489.7 MB, free: 6.953 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002055/0.1303, allocations: 131.9 kB / 489.8 MB, free: 6.781 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001839/0.1305, allocations: 59.94 kB / 489.9 MB, free: 6.723 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.1305, allocations: 0 / 489.9 MB, free: 6.723 MB / 330.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0006449/0.1312, allocations: 230.1 kB / 490.1 MB, free: 6.488 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.034e-05/0.1312, allocations: 4 kB / 490.1 MB, free: 6.484 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.167e-05/0.1312, allocations: 4 kB / 490.1 MB, free: 6.48 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001922/0.1314, allocations: 28.84 kB / 490.1 MB, free: 6.449 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006718/0.1321, allocations: 63.88 kB / 490.2 MB, free: 6.387 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.243e-05/0.1322, allocations: 4 kB / 490.2 MB, free: 6.383 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000231/0.1324, allocations: 8.25 kB / 490.2 MB, free: 6.375 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.595e-05/0.1324, allocations: 12 kB / 490.2 MB, free: 6.363 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (23): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002338/0.1327, allocations: 149.8 kB / 490.4 MB, free: 6.207 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.403e-05/0.1328, allocations: 27.66 kB / 490.4 MB, free: 6.18 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000446/0.1332, allocations: 155.2 kB / 490.6 MB, free: 6.023 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.38e-06/0.1333, allocations: 0 / 490.6 MB, free: 6.023 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/0.1333, allocations: 0 / 490.6 MB, free: 6.023 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.076e-06/0.1333, allocations: 7.984 kB / 490.6 MB, free: 6.016 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005545/0.1338, allocations: 289.4 kB / 490.8 MB, free: 5.684 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.651e-06/0.1339, allocations: 4 kB / 490.9 MB, free: 5.68 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003239/0.1342, allocations: 23.98 kB / 490.9 MB, free: 5.656 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.337e-06/0.1342, allocations: 4 kB / 490.9 MB, free: 5.652 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.645e-05/0.1343, allocations: 11.94 kB / 490.9 MB, free: 5.641 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.133e-06/0.1343, allocations: 4 kB / 490.9 MB, free: 5.637 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.329e-06/0.1343, allocations: 0 / 490.9 MB, free: 5.637 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006615/0.135, allocations: 398.6 kB / 491.3 MB, free: 5.215 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001052/0.1351, allocations: 100.8 kB / 491.4 MB, free: 5.098 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.51e-05/0.1351, allocations: 0 / 491.4 MB, free: 5.098 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002584/0.1354, allocations: 4.094 kB / 491.4 MB, free: 5.094 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.265e-05/0.1355, allocations: 15.92 kB / 491.4 MB, free: 5.078 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.012e-05/0.1355, allocations: 4 kB / 491.4 MB, free: 5.074 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002442/0.1358, allocations: 174 kB / 491.6 MB, free: 4.906 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.9e-07/0.1358, allocations: 0 / 491.6 MB, free: 4.906 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000526/0.1363, allocations: 48 kB / 491.6 MB, free: 4.859 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (pLoadDC.i,pLoadDC.L) * 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 (15): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001036/0.1374, allocations: 1.064 MB / 492.7 MB, free: 3.758 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005587/0.1379, allocations: 221.8 kB / 492.9 MB, free: 3.52 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/0.138, allocations: 0 / 492.9 MB, free: 3.52 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001549/0.1381, allocations: 52.8 kB / 493 MB, free: 3.469 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006089/0.1387, allocations: 52.83 kB / 493 MB, free: 3.418 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004414/0.1432, allocations: 3.584 MB / 496.6 MB, free: 15.7 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004822/0.1437, allocations: 0.7796 MB / 497.4 MB, free: 14.9 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002243/0.1439, allocations: 91.41 kB / 497.5 MB, free: 14.81 MB / 346.7 MB Notification: Performance of SimCode: time 1.232e-06/0.1439, allocations: 0 / 497.5 MB, free: 14.81 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.585/2.729, allocations: 4.658 MB / 0.4903 GB, free: 10.15 MB / 346.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_LoadDC_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_LoadDC.fmu > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe 2>&1)