Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_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_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Line",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Line,fileNamePrefix="PowerSystems_latest_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.001048/0.001048, allocations: 174.8 kB / 13.63 MB, free: 1.684 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.532/1.532, allocations: 205.2 MB / 219.4 MB, free: 14.2 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.0009245/0.0009248, allocations: 82.72 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1677/0.1677, allocations: 37.97 MB / 353.5 MB, free: 1.746 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 3.303e-05/3.309e-05, allocations: 4 kB / 417.8 MB, free: 29.02 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1132/0.1133, allocations: 56.32 MB / 474.2 MB, free: 4.703 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4079/0.5212, allocations: 98.52 MB / 0.5592 GB, free: 4.117 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002351/0.5215, allocations: 90.38 kB / 0.5593 GB, free: 4.074 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03855/0.5601, allocations: 11.14 MB / 0.5702 GB, free: 10.41 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.743e-06/0.5601, allocations: 4 kB / 0.5702 GB, free: 10.41 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.36e-05/0.5602, allocations: 19.42 kB / 0.5702 GB, free: 10.39 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.002199/0.5624, allocations: 0.7764 MB / 0.571 GB, free: 9.598 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.416e-05/0.5625, allocations: 8.031 kB / 0.571 GB, free: 9.59 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001489/0.5626, allocations: 71.47 kB / 0.5711 GB, free: 9.531 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002119/0.5629, allocations: 55.42 kB / 0.5711 GB, free: 9.477 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004397/0.5673, allocations: 1.255 MB / 0.5723 GB, free: 8.383 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.706e-05/0.5673, allocations: 27.28 kB / 0.5724 GB, free: 8.367 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001949/0.5675, allocations: 50.66 kB / 0.5724 GB, free: 8.332 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001636/0.5692, allocations: 0.7792 MB / 0.5732 GB, free: 7.691 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.043e-05/0.5692, allocations: 7.984 kB / 0.5732 GB, free: 7.684 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.777e-05/0.5693, allocations: 17.64 kB / 0.5732 GB, free: 7.676 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.449e-05/0.5693, allocations: 8 kB / 0.5732 GB, free: 7.668 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009374/0.5703, allocations: 443.5 kB / 0.5736 GB, free: 7.352 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005272/0.5756, allocations: 2.715 MB / 0.5763 GB, free: 5 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001074/0.5767, allocations: 481.9 kB / 0.5767 GB, free: 4.66 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00104/0.5777, allocations: 434.4 kB / 0.5772 GB, free: 4.363 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.91e-05/0.5778, allocations: 7.953 kB / 0.5772 GB, free: 4.355 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.553e-05/0.5778, allocations: 41.8 kB / 0.5772 GB, free: 4.309 MB / 378.7 MB Notification: Performance of pre-optimization done (n=32): time 3.447e-06/0.5778, allocations: 0 / 0.5772 GB, free: 4.309 MB / 378.7 MB Notification: Performance of matching and sorting (n=33): time 0.01095/0.5888, allocations: 3.093 MB / 0.5802 GB, free: 1.594 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.616e-05/0.5889, allocations: 85.09 kB / 0.5803 GB, free: 1.492 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007299/0.5897, allocations: 326.3 kB / 0.5806 GB, free: 1.223 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001484/0.5899, allocations: 34.95 kB / 0.5807 GB, free: 1.188 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002463/0.5901, allocations: 249.7 kB / 0.5809 GB, free: 1.008 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002908/0.5904, allocations: 162.4 kB / 0.581 GB, free: 0.8711 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.293e-05/0.5905, allocations: 6.5 kB / 0.5811 GB, free: 0.8711 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002078/0.5907, allocations: 363.3 kB / 0.5814 GB, free: 0.5273 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008856/0.5916, allocations: 418 kB / 0.5818 GB, free: 240 kB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001007/0.5926, allocations: 0.5253 MB / 0.5823 GB, free: 15.8 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00102/0.5937, allocations: 472.8 kB / 0.5828 GB, free: 15.46 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.949e-06/0.5937, allocations: 4 kB / 0.5828 GB, free: 15.46 MB / 394.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.006213/0.5999, allocations: 2.122 MB / 0.5848 GB, free: 13.73 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.342e-05/0.6, allocations: 8 kB / 0.5848 GB, free: 13.73 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.666e-05/0.6, allocations: 4 kB / 0.5848 GB, free: 13.72 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00926/0.6093, allocations: 2.784 MB / 0.5876 GB, free: 11.35 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004267/0.6097, allocations: 91.7 kB / 0.5877 GB, free: 11.26 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.747e-05/0.6098, allocations: 7.953 kB / 0.5877 GB, free: 11.25 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005285/0.6103, allocations: 43.64 kB / 0.5877 GB, free: 11.22 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001614/0.6105, allocations: 71.66 kB / 0.5878 GB, free: 11.15 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 () * 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.0003075/0.6108, allocations: 128.5 kB / 0.5879 GB, free: 11.04 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002/0.611, allocations: 39.53 kB / 0.5879 GB, free: 11 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00605/0.6171, allocations: 2.218 MB / 0.5901 GB, free: 9.074 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.052e-05/0.6171, allocations: 4 kB / 0.5901 GB, free: 9.07 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.836e-06/0.6171, allocations: 4 kB / 0.5901 GB, free: 9.066 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.556e-06/0.6171, allocations: 0 / 0.5901 GB, free: 9.066 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007115/0.6243, allocations: 2.995 MB / 0.593 GB, free: 6.457 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.352e-06/0.6243, allocations: 3.938 kB / 0.593 GB, free: 6.453 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002369/0.6246, allocations: 35.98 kB / 0.5931 GB, free: 6.418 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009916/0.6345, allocations: 3.246 MB / 0.5962 GB, free: 3.32 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002474/0.6348, allocations: 107.2 kB / 0.5963 GB, free: 3.23 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01151/0.6463, allocations: 8.937 MB / 0.6051 GB, free: 11.53 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.002e-06/0.6464, allocations: 4 kB / 0.6051 GB, free: 11.53 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006364/0.6527, allocations: 2.621 MB / 0.6076 GB, free: 9.25 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002554/0.653, allocations: 116.6 kB / 0.6077 GB, free: 9.117 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003319/0.6534, allocations: 97.58 kB / 0.6078 GB, free: 9.039 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004154/0.6538, allocations: 27.34 kB / 0.6079 GB, free: 9.02 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003245/0.6542, allocations: 71.64 kB / 0.6079 GB, free: 8.953 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001208/0.6543, allocations: 67.89 kB / 0.608 GB, free: 8.891 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0003673/0.6547, allocations: 255.1 kB / 0.6082 GB, free: 8.691 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.6547, allocations: 4 kB / 0.6082 GB, free: 8.688 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0009302/0.6556, allocations: 186 kB / 0.6084 GB, free: 8.52 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 () * 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.006504/0.6621, allocations: 3.226 MB / 0.6116 GB, free: 5.629 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001944/0.6641, allocations: 1.068 MB / 0.6126 GB, free: 4.762 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.6642, allocations: 0 / 0.6126 GB, free: 4.762 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00191/0.6661, allocations: 0.9013 MB / 0.6135 GB, free: 3.828 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007681/0.6669, allocations: 121.8 kB / 0.6136 GB, free: 3.707 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003684/0.6706, allocations: 2.171 MB / 0.6157 GB, free: 1.496 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006385/0.6712, allocations: 0.8936 MB / 0.6166 GB, free: 0.5742 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0003087/0.6716, allocations: 72.34 kB / 0.6167 GB, free: 0.5 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002348/0.6718, allocations: 155.4 kB / 0.6168 GB, free: 356 kB / 410.7 MB Notification: Performance of SimCode: time 1.192e-06/0.6718, allocations: 0 / 0.6168 GB, free: 356 kB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04673/0.7186, allocations: 23.97 MB / 0.6402 GB, free: 8.379 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002585/0.7189, allocations: 192 kB / 0.6404 GB, free: 8.148 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.539/3.258, allocations: 0 / 0.6404 GB, free: 8.148 MB / 442.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Line_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Line.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe 2>&1)