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.001491/0.001491, allocations: 182.6 kB / 15.76 MB, free: 6.344 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.931/1.931, allocations: 205.4 MB / 221.9 MB, free: 13.81 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.001125/0.001125, allocations: 90.86 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.2482/0.2482, allocations: 38.05 MB / 356.5 MB, free: 0.7969 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004546/0.0004547, allocations: 8 kB / 422.8 MB, free: 26.33 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.1075, allocations: 56.33 MB / 479.1 MB, free: 1.941 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4713/0.5788, allocations: 98.61 MB / 0.5642 GB, free: 0.6797 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000302/0.5792, allocations: 91.39 kB / 0.5643 GB, free: 0.6289 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05305/0.6323, allocations: 11.15 MB / 0.5752 GB, free: 6.953 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.204e-06/0.6323, allocations: 0 / 0.5752 GB, free: 6.953 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.871e-05/0.6324, allocations: 11.98 kB / 0.5752 GB, free: 6.941 MB / 378.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.003072/0.6355, allocations: 0.8852 MB / 0.5761 GB, free: 6.043 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.145e-05/0.6355, allocations: 8.031 kB / 0.5761 GB, free: 6.035 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001932/0.6357, allocations: 74.59 kB / 0.5761 GB, free: 5.973 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002116/0.6359, allocations: 55.34 kB / 0.5762 GB, free: 5.918 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0055/0.6415, allocations: 1.272 MB / 0.5774 GB, free: 4.805 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.126e-05/0.6416, allocations: 29.69 kB / 0.5775 GB, free: 4.789 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002296/0.6418, allocations: 50.41 kB / 0.5775 GB, free: 4.75 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001822/0.6436, allocations: 0.7879 MB / 0.5783 GB, free: 4.105 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.252e-05/0.6437, allocations: 4 kB / 0.5783 GB, free: 4.102 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.365e-05/0.6438, allocations: 17.27 kB / 0.5783 GB, free: 4.094 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.539e-05/0.6438, allocations: 8 kB / 0.5783 GB, free: 4.086 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001153/0.645, allocations: 459.4 kB / 0.5787 GB, free: 3.754 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006475/0.6515, allocations: 2.695 MB / 0.5814 GB, free: 1.418 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001217/0.6527, allocations: 497.8 kB / 0.5818 GB, free: 1.066 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.263e-05/0.6528, allocations: 4.062 kB / 0.5818 GB, free: 1.062 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.608e-05/0.6529, allocations: 45.52 kB / 0.5819 GB, free: 1.012 MB / 378.7 MB Notification: Performance of pre-optimization done (n=32): time 3.377e-06/0.6529, allocations: 0 / 0.5819 GB, free: 1.012 MB / 378.7 MB Notification: Performance of matching and sorting (n=33): time 0.01706/0.6699, allocations: 3.79 MB / 0.5856 GB, free: 13.68 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.11e-05/0.6701, allocations: 84.8 kB / 0.5857 GB, free: 13.58 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006457/0.6707, allocations: 337 kB / 0.586 GB, free: 13.3 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001617/0.6709, allocations: 31.64 kB / 0.586 GB, free: 13.27 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002336/0.6711, allocations: 296.1 kB / 0.5863 GB, free: 13.04 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003012/0.6715, allocations: 155.6 kB / 0.5865 GB, free: 12.91 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.839e-05/0.6716, allocations: 18.72 kB / 0.5865 GB, free: 12.89 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001895/0.6718, allocations: 334.1 kB / 0.5868 GB, free: 12.57 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001062/0.6728, allocations: 427.6 kB / 0.5872 GB, free: 12.27 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00118/0.674, allocations: 0.5316 MB / 0.5877 GB, free: 11.82 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001206/0.6753, allocations: 478.1 kB / 0.5882 GB, free: 11.5 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.218e-05/0.6753, allocations: 4 kB / 0.5882 GB, free: 11.5 MB / 394.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.006911/0.6823, allocations: 2.098 MB / 0.5902 GB, free: 9.812 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.902e-05/0.6823, allocations: 4 kB / 0.5902 GB, free: 9.809 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.602e-05/0.6824, allocations: 4 kB / 0.5902 GB, free: 9.805 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01143/0.6938, allocations: 2.802 MB / 0.593 GB, free: 7.414 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006795/0.6945, allocations: 83.27 kB / 0.5931 GB, free: 7.336 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.809e-05/0.6946, allocations: 11.89 kB / 0.5931 GB, free: 7.324 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005812/0.6952, allocations: 34.58 kB / 0.5931 GB, free: 7.297 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001717/0.6954, allocations: 66.73 kB / 0.5932 GB, free: 7.238 MB / 394.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): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(7,32.7%),(7,32.7%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000481/0.6958, allocations: 207.3 kB / 0.5934 GB, free: 7.059 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001573/0.696, allocations: 43.44 kB / 0.5934 GB, free: 7.016 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01061/0.7066, allocations: 2.217 MB / 0.5956 GB, free: 5.113 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.672e-05/0.7067, allocations: 4 kB / 0.5956 GB, free: 5.109 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.031e-05/0.7067, allocations: 4 kB / 0.5956 GB, free: 5.105 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.375e-05/0.7068, allocations: 0 / 0.5956 GB, free: 5.105 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01245/0.7192, allocations: 3.002 MB / 0.5985 GB, free: 2.504 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.656e-05/0.7193, allocations: 7.953 kB / 0.5985 GB, free: 2.496 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004077/0.7197, allocations: 43.91 kB / 0.5986 GB, free: 2.453 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01791/0.7376, allocations: 3.24 MB / 0.6017 GB, free: 15.36 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003178/0.738, allocations: 110.3 kB / 0.6018 GB, free: 15.27 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02028/0.7583, allocations: 9.477 MB / 0.6111 GB, free: 7.188 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.32e-06/0.7583, allocations: 3.984 kB / 0.6111 GB, free: 7.184 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01155/0.7699, allocations: 2.626 MB / 0.6136 GB, free: 4.918 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002251/0.7702, allocations: 112.5 kB / 0.6138 GB, free: 4.789 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003035/0.7705, allocations: 93.95 kB / 0.6138 GB, free: 4.715 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005584/0.7711, allocations: 27.02 kB / 0.6139 GB, free: 4.691 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004188/0.7715, allocations: 77.02 kB / 0.6139 GB, free: 4.621 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001598/0.7717, allocations: 63.34 kB / 0.614 GB, free: 4.562 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0004535/0.7721, allocations: 262.3 kB / 0.6143 GB, free: 4.355 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.7721, allocations: 0 / 0.6143 GB, free: 4.355 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0009833/0.7731, allocations: 185.9 kB / 0.6144 GB, free: 4.188 MB / 410.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 (24): * 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): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {8,6} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01134/0.7845, allocations: 3.23 MB / 0.6176 GB, free: 1.305 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002921/0.7875, allocations: 1.085 MB / 0.6186 GB, free: 444 kB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.333e-06/0.7875, allocations: 8.312 kB / 0.6186 GB, free: 436 kB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003087/0.7906, allocations: 0.9168 MB / 0.6195 GB, free: 15.61 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009633/0.7916, allocations: 118.3 kB / 0.6197 GB, free: 15.5 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01697/0.8086, allocations: 8.566 MB / 0.628 GB, free: 6.793 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007142/0.8094, allocations: 0.8937 MB / 0.6289 GB, free: 5.871 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003719/0.8097, allocations: 155.4 kB / 0.629 GB, free: 5.719 MB / 426.7 MB Notification: Performance of SimCode: time 1.262e-06/0.8098, allocations: 4 kB / 0.629 GB, free: 5.715 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.315/4.125, allocations: 18.52 MB / 0.6471 GB, free: 3.168 MB / 442.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)