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.0009143/0.0009143, allocations: 173.2 kB / 16.07 MB, free: 5.723 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.285/1.285, allocations: 205.4 MB / 222.2 MB, free: 9.016 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.0007629/0.0007629, allocations: 84.88 kB / 270.6 MB, free: 8.246 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1602/0.1602, allocations: 38.07 MB / 356.9 MB, free: 1.715 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003478/0.0003478, allocations: 12 kB / 423.4 MB, free: 37.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2531/0.2534, allocations: 56.33 MB / 479.7 MB, free: 9.234 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Line): time 0.005315/0.2588, allocations: 5.124 MB / 484.9 MB, free: 5.828 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.002673/0.2615, allocations: 1.511 MB / 486.4 MB, free: 4.75 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006582/0.2622, allocations: 29.81 kB / 486.4 MB, free: 4.738 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005815/0.2628, allocations: 133.1 kB / 486.5 MB, free: 4.672 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001103/0.2639, allocations: 360 kB / 486.9 MB, free: 4.492 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005722/0.2645, allocations: 180.6 kB / 487.1 MB, free: 4.414 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009393/0.2654, allocations: 0.8481 MB / 487.9 MB, free: 4.109 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002248/0.2657, allocations: 140.2 kB / 488 MB, free: 4.059 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003714/0.2661, allocations: 252.6 kB / 488.3 MB, free: 3.969 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006072/0.2667, allocations: 440.7 kB / 488.7 MB, free: 3.855 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 7.424e-05/0.2668, allocations: 24.75 kB / 488.7 MB, free: 3.855 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.245e-05/0.2669, allocations: 28.69 kB / 488.8 MB, free: 3.852 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000245/0.2671, allocations: 218.5 kB / 489 MB, free: 3.797 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002926/0.2674, allocations: 269.3 kB / 489.2 MB, free: 3.645 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005049/0.2679, allocations: 485.9 kB / 489.7 MB, free: 3.539 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.54e-06/0.2679, allocations: 0 / 489.7 MB, free: 3.539 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.2679, allocations: 0 / 489.7 MB, free: 3.539 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.394e-06/0.268, allocations: 0.9688 kB / 489.7 MB, free: 3.539 MB / 314.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.00162/0.2696, allocations: 0.8453 MB / 490.6 MB, free: 2.984 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.894e-05/0.2696, allocations: 9.125 kB / 490.6 MB, free: 2.984 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.404e-05/0.2697, allocations: 71.73 kB / 490.6 MB, free: 2.926 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.291e-05/0.2698, allocations: 58.77 kB / 490.7 MB, free: 2.895 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001025/0.2708, allocations: 0.6001 MB / 491.3 MB, free: 2.543 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.646e-05/0.2709, allocations: 26.69 kB / 491.3 MB, free: 2.531 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.596e-05/0.271, allocations: 43.44 kB / 491.4 MB, free: 2.516 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007826/0.2718, allocations: 0.5474 MB / 491.9 MB, free: 2.27 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.261e-05/0.2718, allocations: 1.062 kB / 491.9 MB, free: 2.27 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.07e-05/0.2718, allocations: 15.22 kB / 491.9 MB, free: 2.258 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003282/0.2722, allocations: 86.48 kB / 492 MB, free: 2.258 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000556/0.2727, allocations: 361 kB / 492.4 MB, free: 2.152 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0026/0.2753, allocations: 2.058 MB / 494.4 MB, free: 0.9062 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000772/0.2761, allocations: 392.2 kB / 494.8 MB, free: 0.75 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005343/0.2767, allocations: 305.7 kB / 495.1 MB, free: 0.6602 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.843e-05/0.2767, allocations: 4.766 kB / 495.1 MB, free: 0.6602 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.94e-05/0.2767, allocations: 35.62 kB / 495.2 MB, free: 0.6172 MB / 314.7 MB Notification: Performance of pre-optimization done (n=32): time 1.664e-06/0.2768, allocations: 1.094 kB / 495.2 MB, free: 0.6172 MB / 314.7 MB Notification: Performance of matching and sorting (n=33): time 0.004394/0.2812, allocations: 2.534 MB / 497.7 MB, free: 15.16 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.227e-05/0.2812, allocations: 84.59 kB / 497.8 MB, free: 15.06 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004395/0.2817, allocations: 377.5 kB / 498.1 MB, free: 14.88 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.129e-05/0.2817, allocations: 35.83 kB / 498.2 MB, free: 14.84 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001819/0.2819, allocations: 250 kB / 498.4 MB, free: 14.63 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001292/0.282, allocations: 142.9 kB / 498.6 MB, free: 14.52 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.826e-05/0.2821, allocations: 5.406 kB / 498.6 MB, free: 14.52 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001533/0.2822, allocations: 362.5 kB / 498.9 MB, free: 14.18 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003721/0.2826, allocations: 246.9 kB / 499.2 MB, free: 14.12 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004276/0.283, allocations: 362.1 kB / 499.5 MB, free: 13.89 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008062/0.2839, allocations: 0.6079 MB / 0.4884 GB, free: 13.54 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.2839, allocations: 1 kB / 0.4884 GB, free: 13.54 MB / 330.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001644/0.2855, allocations: 1.016 MB / 0.4894 GB, free: 13.05 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.156e-05/0.2856, allocations: 10.89 kB / 0.4894 GB, free: 13.04 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.042e-05/0.2856, allocations: 3.594 kB / 0.4894 GB, free: 13.04 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009809/0.2866, allocations: 402.4 kB / 0.4898 GB, free: 12.86 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003013/0.2869, allocations: 92.03 kB / 0.4899 GB, free: 12.84 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004923/0.2918, allocations: 4.719 MB / 0.4945 GB, free: 9.141 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003546/0.2922, allocations: 48.16 kB / 0.4945 GB, free: 9.113 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.462e-05/0.2922, allocations: 17.5 kB / 0.4945 GB, free: 9.109 MB / 330.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.0002986/0.2925, allocations: 204.8 kB / 0.4947 GB, free: 8.941 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.329e-05/0.2926, allocations: 38.91 kB / 0.4948 GB, free: 8.922 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001452/0.2941, allocations: 0.8449 MB / 0.4956 GB, free: 8.441 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.191e-06/0.2941, allocations: 3.656 kB / 0.4956 GB, free: 8.441 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.907e-06/0.2941, allocations: 7.031 kB / 0.4956 GB, free: 8.438 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.561e-06/0.2941, allocations: 3.984 kB / 0.4956 GB, free: 8.434 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002156/0.2963, allocations: 1.418 MB / 0.497 GB, free: 7.527 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/0.2963, allocations: 0 / 0.497 GB, free: 7.527 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001782/0.2965, allocations: 42.5 kB / 0.497 GB, free: 7.516 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001125/0.2976, allocations: 445.1 kB / 0.4975 GB, free: 7.27 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.974e-05/0.2977, allocations: 33.72 kB / 0.4975 GB, free: 7.254 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004852/0.3025, allocations: 6.247 MB / 0.5036 GB, free: 0.9023 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.3026, allocations: 7.969 kB / 0.5036 GB, free: 0.8945 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001574/0.3041, allocations: 1.124 MB / 0.5047 GB, free: 15.73 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001081/0.3043, allocations: 112.6 kB / 0.5048 GB, free: 15.6 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.422e-05/0.3044, allocations: 27.98 kB / 0.5048 GB, free: 15.57 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002818/0.3047, allocations: 35.94 kB / 0.5049 GB, free: 15.54 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001226/0.3048, allocations: 43.94 kB / 0.5049 GB, free: 15.49 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.97e-05/0.3048, allocations: 11.98 kB / 0.5049 GB, free: 15.48 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002618/0.3051, allocations: 263.1 kB / 0.5052 GB, free: 15.22 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3051, allocations: 0 / 0.5052 GB, free: 15.22 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006101/0.3057, allocations: 156 kB / 0.5053 GB, free: 15.07 MB / 346.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.001861/0.3076, allocations: 1.701 MB / 0.507 GB, free: 13.32 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0015/0.3091, allocations: 0.8844 MB / 0.5079 GB, free: 12.41 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.826e-06/0.3091, allocations: 0 / 0.5079 GB, free: 12.41 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00139/0.3105, allocations: 1.087 MB / 0.5089 GB, free: 11.2 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007085/0.3112, allocations: 116 kB / 0.509 GB, free: 11.09 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006384/0.3176, allocations: 4.731 MB / 0.5136 GB, free: 6.242 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004384/0.3181, allocations: 0.8858 MB / 0.5145 GB, free: 5.332 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002006/0.3183, allocations: 151.4 kB / 0.5147 GB, free: 5.184 MB / 346.7 MB Notification: Performance of SimCode: time 6.21e-07/0.3183, allocations: 0 / 0.5147 GB, free: 5.184 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.396/4.714, allocations: 14.6 MB / 0.5289 GB, free: 6.562 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)