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.002251/0.002251, allocations: 186.1 kB / 13.19 MB, free: 2.125 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.08/2.08, allocations: 205.2 MB / 218.9 MB, free: 9.141 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.001072/0.001072, allocations: 89.89 kB / 267.1 MB, free: 9.27 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2698/0.2698, allocations: 37.96 MB / 353.1 MB, free: 3.055 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.468e-05/3.471e-05, allocations: 0 / 416.9 MB, free: 41.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1034/0.1035, allocations: 56.32 MB / 473.2 MB, free: 0.8242 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5074/0.6109, allocations: 98.51 MB / 0.5583 GB, free: 5.164 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003507/0.6114, allocations: 91.95 kB / 0.5584 GB, free: 5.074 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06014/0.6715, allocations: 11.14 MB / 0.5693 GB, free: 9.824 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.483e-06/0.6715, allocations: 0 / 0.5693 GB, free: 9.824 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.458e-05/0.6716, allocations: 12 kB / 0.5693 GB, free: 9.812 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.00246/0.6741, allocations: 0.7846 MB / 0.5701 GB, free: 8.984 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.265e-05/0.6741, allocations: 8.031 kB / 0.5701 GB, free: 8.977 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001756/0.6743, allocations: 70.53 kB / 0.5701 GB, free: 8.898 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002184/0.6746, allocations: 51.44 kB / 0.5702 GB, free: 8.848 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005749/0.6803, allocations: 1.253 MB / 0.5714 GB, free: 7.555 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.882e-05/0.6804, allocations: 32.78 kB / 0.5714 GB, free: 7.523 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002477/0.6807, allocations: 47.91 kB / 0.5715 GB, free: 7.477 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001893/0.6826, allocations: 0.7778 MB / 0.5723 GB, free: 6.66 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.723e-05/0.6826, allocations: 4 kB / 0.5723 GB, free: 6.656 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.769e-05/0.6827, allocations: 19.95 kB / 0.5723 GB, free: 6.637 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.696e-05/0.6827, allocations: 8 kB / 0.5723 GB, free: 6.629 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0012/0.684, allocations: 438.8 kB / 0.5727 GB, free: 6.199 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00657/0.6905, allocations: 2.722 MB / 0.5754 GB, free: 3.395 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00129/0.6919, allocations: 485.2 kB / 0.5758 GB, free: 2.902 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001247/0.6931, allocations: 437.6 kB / 0.5762 GB, free: 2.469 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.36e-05/0.6932, allocations: 12 kB / 0.5763 GB, free: 2.457 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.893e-05/0.6933, allocations: 34.56 kB / 0.5763 GB, free: 2.414 MB / 410.7 MB Notification: Performance of pre-optimization done (n=32): time 2.826e-06/0.6933, allocations: 0 / 0.5763 GB, free: 2.414 MB / 410.7 MB Notification: Performance of matching and sorting (n=33): time 0.01326/0.7066, allocations: 3.094 MB / 0.5793 GB, free: 15.25 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.548e-05/0.7067, allocations: 89.05 kB / 0.5794 GB, free: 15.14 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006701/0.7074, allocations: 322.9 kB / 0.5797 GB, free: 14.82 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001406/0.7075, allocations: 37.7 kB / 0.5797 GB, free: 14.78 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000239/0.7078, allocations: 294.7 kB / 0.58 GB, free: 14.49 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002378/0.708, allocations: 154.1 kB / 0.5802 GB, free: 14.34 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.256e-05/0.7081, allocations: 12 kB / 0.5802 GB, free: 14.32 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001588/0.7083, allocations: 338.8 kB / 0.5805 GB, free: 13.98 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001016/0.7093, allocations: 417 kB / 0.5809 GB, free: 13.57 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001127/0.7104, allocations: 0.5261 MB / 0.5814 GB, free: 13 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001165/0.7116, allocations: 473.3 kB / 0.5819 GB, free: 12.54 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.078e-06/0.7116, allocations: 0 / 0.5819 GB, free: 12.54 MB / 426.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.006982/0.7186, allocations: 2.091 MB / 0.5839 GB, free: 10.44 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.172e-05/0.7187, allocations: 15.97 kB / 0.5839 GB, free: 10.42 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.429e-05/0.7187, allocations: 4 kB / 0.5839 GB, free: 10.42 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01138/0.7301, allocations: 2.788 MB / 0.5866 GB, free: 7.621 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006958/0.7309, allocations: 87.84 kB / 0.5867 GB, free: 7.535 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.159e-05/0.7309, allocations: 11.94 kB / 0.5867 GB, free: 7.523 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006372/0.7316, allocations: 43.8 kB / 0.5868 GB, free: 7.48 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001694/0.7317, allocations: 71.92 kB / 0.5869 GB, free: 7.41 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 () * 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.0002424/0.732, allocations: 126.8 kB / 0.587 GB, free: 7.281 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001551/0.7322, allocations: 39.53 kB / 0.587 GB, free: 7.242 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01084/0.743, allocations: 2.215 MB / 0.5892 GB, free: 5.008 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.904e-05/0.7431, allocations: 4 kB / 0.5892 GB, free: 5.004 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.267e-06/0.7431, allocations: 0 / 0.5892 GB, free: 5.004 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.69e-05/0.7431, allocations: 3.984 kB / 0.5892 GB, free: 5 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01269/0.7558, allocations: 2.997 MB / 0.5921 GB, free: 1.934 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.263e-05/0.7559, allocations: 0 / 0.5921 GB, free: 1.934 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004131/0.7563, allocations: 47.94 kB / 0.5922 GB, free: 1.887 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02118/0.7775, allocations: 3.237 MB / 0.5953 GB, free: 14.64 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004293/0.778, allocations: 103.9 kB / 0.5954 GB, free: 14.54 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02762/0.8056, allocations: 8.949 MB / 0.6042 GB, free: 5.312 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.579e-06/0.8057, allocations: 0 / 0.6042 GB, free: 5.312 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01649/0.8222, allocations: 2.625 MB / 0.6067 GB, free: 2.641 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003126/0.8226, allocations: 120.5 kB / 0.6068 GB, free: 2.504 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004953/0.8231, allocations: 91.89 kB / 0.6069 GB, free: 2.414 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006099/0.8237, allocations: 27.95 kB / 0.6069 GB, free: 2.387 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003672/0.8241, allocations: 75.77 kB / 0.607 GB, free: 2.312 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001614/0.8243, allocations: 63.97 kB / 0.6071 GB, free: 2.25 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0004625/0.8247, allocations: 261.2 kB / 0.6073 GB, free: 2 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.8248, allocations: 0 / 0.6073 GB, free: 2 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0009482/0.8257, allocations: 180 kB / 0.6075 GB, free: 1.824 MB / 442.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.01145/0.8372, allocations: 3.226 MB / 0.6107 GB, free: 14.55 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.002951/0.8402, allocations: 1.078 MB / 0.6117 GB, free: 13.43 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 4.098e-06/0.8402, allocations: 0 / 0.6117 GB, free: 13.43 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003072/0.8433, allocations: 0.9047 MB / 0.6126 GB, free: 12.5 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009467/0.8442, allocations: 117.5 kB / 0.6127 GB, free: 12.38 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005576/0.8498, allocations: 2.227 MB / 0.6149 GB, free: 10.11 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006833/0.8506, allocations: 0.8898 MB / 0.6157 GB, free: 9.188 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003641/0.8509, allocations: 155.4 kB / 0.6159 GB, free: 9.035 MB / 458.7 MB Notification: Performance of SimCode: time 9.12e-07/0.851, allocations: 3.938 kB / 0.6159 GB, free: 9.031 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.297/4.148, allocations: 18.48 MB / 0.6339 GB, free: 6.52 MB / 474.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)