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.0009424/0.0009425, allocations: 180.6 kB / 16.39 MB, free: 5.762 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.127/1.127, allocations: 205.4 MB / 222.5 MB, free: 9.117 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.000788/0.000788, allocations: 96.08 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1543/0.1543, allocations: 38.07 MB / 357.2 MB, free: 1.883 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002549/0.000255, allocations: 12 kB / 424.1 MB, free: 37.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2215/0.2218, allocations: 56.33 MB / 480.4 MB, free: 9.543 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1142/0.336, allocations: 98.62 MB / 0.5655 GB, free: 3.773 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002148/0.3363, allocations: 91.95 kB / 0.5655 GB, free: 3.684 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03043/0.3667, allocations: 11.14 MB / 0.5764 GB, free: 8.422 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.3667, allocations: 0 / 0.5764 GB, free: 8.422 MB / 410.7 MB Notification: Performance of Transformations before backend: time 2.864e-05/0.3668, allocations: 12 kB / 0.5764 GB, free: 8.41 MB / 410.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.001784/0.3686, allocations: 0.8864 MB / 0.5773 GB, free: 7.473 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.629e-05/0.3686, allocations: 15.97 kB / 0.5773 GB, free: 7.457 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001109/0.3687, allocations: 70.53 kB / 0.5774 GB, free: 7.379 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001344/0.3689, allocations: 59.33 kB / 0.5774 GB, free: 7.32 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003204/0.3721, allocations: 1.27 MB / 0.5787 GB, free: 6.008 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.803e-05/0.3721, allocations: 32.94 kB / 0.5787 GB, free: 5.977 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001238/0.3722, allocations: 47.91 kB / 0.5788 GB, free: 5.93 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001093/0.3733, allocations: 0.7881 MB / 0.5795 GB, free: 5.105 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.131e-05/0.3734, allocations: 0 / 0.5795 GB, free: 5.105 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.832e-05/0.3734, allocations: 19.95 kB / 0.5795 GB, free: 5.086 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.847e-06/0.3734, allocations: 8 kB / 0.5796 GB, free: 5.078 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006186/0.3741, allocations: 446.2 kB / 0.58 GB, free: 4.637 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003651/0.3777, allocations: 2.702 MB / 0.5826 GB, free: 1.852 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006813/0.3784, allocations: 0.4883 MB / 0.5831 GB, free: 1.348 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.06e-05/0.3785, allocations: 12.05 kB / 0.5831 GB, free: 1.336 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.533e-05/0.3785, allocations: 42.52 kB / 0.5831 GB, free: 1.285 MB / 410.7 MB Notification: Performance of pre-optimization done (n=32): time 1.643e-06/0.3785, allocations: 0 / 0.5831 GB, free: 1.285 MB / 410.7 MB Notification: Performance of matching and sorting (n=33): time 0.00853/0.387, allocations: 3.791 MB / 0.5868 GB, free: 13.39 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.94e-05/0.3871, allocations: 81.11 kB / 0.5869 GB, free: 13.29 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003731/0.3875, allocations: 340.7 kB / 0.5873 GB, free: 12.95 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 5.88e-05/0.3876, allocations: 33.7 kB / 0.5873 GB, free: 12.91 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001826/0.3877, allocations: 248.2 kB / 0.5875 GB, free: 12.66 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000154/0.3879, allocations: 161.1 kB / 0.5877 GB, free: 12.51 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.923e-05/0.388, allocations: 8 kB / 0.5877 GB, free: 12.5 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001477/0.3881, allocations: 374.7 kB / 0.588 GB, free: 12.12 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000562/0.3887, allocations: 424.8 kB / 0.5884 GB, free: 11.71 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006193/0.3893, allocations: 0.5225 MB / 0.589 GB, free: 11.14 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006078/0.3899, allocations: 489.4 kB / 0.5894 GB, free: 10.66 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.3899, allocations: 0 / 0.5894 GB, free: 10.66 MB / 426.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.003639/0.3936, allocations: 2.126 MB / 0.5915 GB, free: 8.523 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.742e-05/0.3936, allocations: 4 kB / 0.5915 GB, free: 8.52 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.434e-06/0.3936, allocations: 4 kB / 0.5915 GB, free: 8.516 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005866/0.3995, allocations: 2.796 MB / 0.5942 GB, free: 5.711 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003017/0.3998, allocations: 79.89 kB / 0.5943 GB, free: 5.633 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.215e-05/0.3998, allocations: 7.953 kB / 0.5943 GB, free: 5.625 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002875/0.4001, allocations: 39.89 kB / 0.5944 GB, free: 5.586 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.448e-05/0.4002, allocations: 63.98 kB / 0.5944 GB, free: 5.523 MB / 426.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.000283/0.4005, allocations: 201.7 kB / 0.5946 GB, free: 5.316 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.531e-05/0.4006, allocations: 39.53 kB / 0.5946 GB, free: 5.277 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005364/0.406, allocations: 2.227 MB / 0.5968 GB, free: 3.035 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.76e-06/0.406, allocations: 8 kB / 0.5968 GB, free: 3.027 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.406, allocations: 0 / 0.5968 GB, free: 3.027 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.368e-06/0.406, allocations: 3.938 kB / 0.5968 GB, free: 3.023 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006276/0.4123, allocations: 3.005 MB / 0.5998 GB, free: 15.95 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.749e-06/0.4123, allocations: 3.953 kB / 0.5998 GB, free: 15.95 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000183/0.4125, allocations: 43.91 kB / 0.5998 GB, free: 15.9 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008807/0.4213, allocations: 3.244 MB / 0.603 GB, free: 12.64 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001435/0.4215, allocations: 103.9 kB / 0.6031 GB, free: 12.54 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01069/0.4322, allocations: 9.476 MB / 0.6123 GB, free: 2.801 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.4322, allocations: 3.984 kB / 0.6123 GB, free: 2.797 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005591/0.4378, allocations: 2.637 MB / 0.6149 GB, free: 120 kB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001431/0.438, allocations: 108.8 kB / 0.615 GB, free: 15.99 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001533/0.4381, allocations: 91.72 kB / 0.6151 GB, free: 15.9 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002853/0.4384, allocations: 27.95 kB / 0.6151 GB, free: 15.88 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001619/0.4386, allocations: 75.83 kB / 0.6152 GB, free: 15.8 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.074e-05/0.4387, allocations: 67.97 kB / 0.6153 GB, free: 15.73 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0002704/0.4389, allocations: 263.1 kB / 0.6155 GB, free: 15.48 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.439, allocations: 0 / 0.6155 GB, free: 15.48 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.000594/0.4396, allocations: 184 kB / 0.6157 GB, free: 15.3 MB / 458.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.005761/0.4453, allocations: 3.224 MB / 0.6188 GB, free: 12.03 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0016/0.4469, allocations: 1.073 MB / 0.6199 GB, free: 10.91 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.155e-06/0.4469, allocations: 4.812 kB / 0.6199 GB, free: 10.91 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001587/0.4485, allocations: 0.9242 MB / 0.6208 GB, free: 9.949 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005128/0.4491, allocations: 125.6 kB / 0.6209 GB, free: 9.828 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008995/0.4581, allocations: 8.506 MB / 0.6292 GB, free: 1.195 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004373/0.4585, allocations: 0.8937 MB / 0.6301 GB, free: 276 kB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0002466/0.4588, allocations: 72.34 kB / 0.6302 GB, free: 200 kB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001763/0.459, allocations: 155.4 kB / 0.6303 GB, free: 48 kB / 458.7 MB Notification: Performance of SimCode: time 3.6e-07/0.459, allocations: 0 / 0.6303 GB, free: 48 kB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1797/0.6387, allocations: 23.98 MB / 0.6537 GB, free: 148.9 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001258/0.6388, allocations: 219.3 kB / 0.6539 GB, free: 148.7 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.212/2.851, allocations: 0 / 0.6539 GB, free: 148.7 MB / 474.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)