Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.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.AC3ph.Elementary.Line,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Line",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Line,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_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.001613/0.001613, allocations: 183.9 kB / 15.76 MB, free: 6.363 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.949/1.949, allocations: 205.4 MB / 221.9 MB, free: 13.83 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.001208/0.001208, allocations: 94.84 kB / 270.2 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2912/0.2912, allocations: 38.06 MB / 356.6 MB, free: 0.8008 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004647/0.0004649, allocations: 12 kB / 422.8 MB, free: 26.34 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1088/0.1093, allocations: 56.33 MB / 479.1 MB, free: 1.953 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4891/0.5984, allocations: 104.6 MB / 0.5701 GB, free: 10.93 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003399/0.5988, allocations: 94.2 kB / 0.5702 GB, free: 10.88 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08245/0.6813, allocations: 17.48 MB / 0.5872 GB, free: 11.82 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.976e-06/0.6814, allocations: 0 / 0.5872 GB, free: 11.82 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.44e-05/0.6814, allocations: 16 kB / 0.5873 GB, free: 11.8 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 139 * Number of variables: 139 Notification: Performance of Generate backend data structure: time 0.002851/0.6843, allocations: 0.8535 MB / 0.5881 GB, free: 10.95 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.478e-05/0.6844, allocations: 12.03 kB / 0.5881 GB, free: 10.93 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001971/0.6846, allocations: 94.45 kB / 0.5882 GB, free: 10.86 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001966/0.6866, allocations: 162.9 kB / 0.5883 GB, free: 10.7 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005435/0.692, allocations: 1.215 MB / 0.5895 GB, free: 9.645 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.7e-05/0.6921, allocations: 30.94 kB / 0.5896 GB, free: 9.625 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002338/0.6924, allocations: 61.33 kB / 0.5896 GB, free: 9.582 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00205/0.6944, allocations: 0.8497 MB / 0.5905 GB, free: 8.879 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.705e-05/0.6945, allocations: 3.953 kB / 0.5905 GB, free: 8.875 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.218e-05/0.6946, allocations: 19 kB / 0.5905 GB, free: 8.867 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003276/0.695, allocations: 32.3 kB / 0.5905 GB, free: 8.84 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001636/0.6966, allocations: 0.6074 MB / 0.5911 GB, free: 8.418 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02115/0.7178, allocations: 5.775 MB / 0.5967 GB, free: 3.363 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00182/0.7197, allocations: 0.7649 MB / 0.5975 GB, free: 2.906 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000141/0.7198, allocations: 12.48 kB / 0.5975 GB, free: 2.895 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.72e-05/0.7199, allocations: 34.62 kB / 0.5975 GB, free: 2.855 MB / 394.7 MB Notification: Performance of pre-optimization done (n=52): time 4.448e-06/0.7199, allocations: 4 kB / 0.5975 GB, free: 2.852 MB / 394.7 MB Notification: Performance of matching and sorting (n=53): time 0.03903/0.7589, allocations: 6.482 MB / 0.6039 GB, free: 13.45 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.873e-05/0.7591, allocations: 81.55 kB / 0.6039 GB, free: 13.36 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006801/0.7598, allocations: 365.5 kB / 0.6043 GB, free: 13.06 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002617/0.76, allocations: 33.58 kB / 0.6043 GB, free: 13.03 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002815/0.7603, allocations: 367.9 kB / 0.6047 GB, free: 12.72 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004243/0.7608, allocations: 258.8 kB / 0.6049 GB, free: 12.51 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001856/0.761, allocations: 11.5 kB / 0.6049 GB, free: 12.5 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001709/0.7612, allocations: 346.5 kB / 0.6053 GB, free: 12.17 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001981/0.7632, allocations: 0.7977 MB / 0.606 GB, free: 11.65 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002203/0.7654, allocations: 1.013 MB / 0.607 GB, free: 10.86 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002308/0.7677, allocations: 0.9013 MB / 0.6079 GB, free: 10.29 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.346e-06/0.7678, allocations: 0 / 0.6079 GB, free: 10.29 MB / 410.7 MB Notification: Performance of matching and sorting (n=101) (initialization): time 0.03143/0.7992, allocations: 5.366 MB / 0.6131 GB, free: 5.906 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.243e-05/0.7993, allocations: 8 kB / 0.6132 GB, free: 5.898 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02298/0.8223, allocations: 4.273 MB / 0.6173 GB, free: 2.215 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03536/0.8577, allocations: 5.836 MB / 0.623 GB, free: 12.37 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009086/0.8587, allocations: 123.8 kB / 0.6231 GB, free: 12.25 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03235/0.8911, allocations: 11.71 MB / 0.6346 GB, free: 408 kB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001123/0.8922, allocations: 63.92 kB / 0.6346 GB, free: 344 kB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003635/0.8926, allocations: 163.9 kB / 0.6348 GB, free: 180 kB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * 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 (65): * Single equations (assignments): 62 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(7,32.7%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {14 14} Notification: Performance of prepare postOptimizeDAE: time 0.000784/0.8934, allocations: 258 kB / 0.635 GB, free: 15.91 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002617/0.8937, allocations: 51.34 kB / 0.6351 GB, free: 15.86 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02618/0.9199, allocations: 4.084 MB / 0.6391 GB, free: 11.76 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.571e-05/0.92, allocations: 8 kB / 0.6391 GB, free: 11.75 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.92, allocations: 0 / 0.6391 GB, free: 11.75 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.274e-05/0.92, allocations: 3.984 kB / 0.6391 GB, free: 11.75 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03102/0.9511, allocations: 5.485 MB / 0.6445 GB, free: 6.18 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.035e-05/0.9511, allocations: 7.984 kB / 0.6445 GB, free: 6.172 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005577/0.9517, allocations: 55.91 kB / 0.6445 GB, free: 6.117 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.04957/1.001, allocations: 7.97 MB / 0.6523 GB, free: 14.12 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006348/1.002, allocations: 235.8 kB / 0.6525 GB, free: 13.89 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03547/1.037, allocations: 14.65 MB / 0.6668 GB, free: 14.96 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.146e-06/1.038, allocations: 3.984 kB / 0.6668 GB, free: 14.96 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02715/1.065, allocations: 4.546 MB / 0.6713 GB, free: 10.36 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002767/1.065, allocations: 120.5 kB / 0.6714 GB, free: 10.22 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006336/1.066, allocations: 195.9 kB / 0.6716 GB, free: 10.03 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001006/1.067, allocations: 39.94 kB / 0.6716 GB, free: 9.988 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007892/1.067, allocations: 152.1 kB / 0.6718 GB, free: 9.84 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000369/1.068, allocations: 163.9 kB / 0.6719 GB, free: 9.684 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0005158/1.068, allocations: 275.1 kB / 0.6722 GB, free: 9.414 MB / 474.7 MB Notification: Performance of sort global known variables: time 4.31e-07/1.068, allocations: 0 / 0.6722 GB, free: 9.414 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.002269/1.071, allocations: 391.9 kB / 0.6725 GB, free: 9.031 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 21 (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.v[3,1],line.v[3,2],line.v[3,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],line.i[3,1],line.i[3,2],line.i[3,3],line.i[3,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 (34): * Single equations (assignments): 30 * Array equations: 1 * 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 {12,9} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02827/1.099, allocations: 5.42 MB / 0.6778 GB, free: 3.543 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.008691/1.108, allocations: 2.432 MB / 0.6802 GB, free: 1.074 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 6.442e-06/1.108, allocations: 0 / 0.6802 GB, free: 1.074 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00655/1.114, allocations: 1.58 MB / 0.6818 GB, free: 15.46 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00108/1.115, allocations: 121.5 kB / 0.6819 GB, free: 15.34 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04159/1.157, allocations: 15.37 MB / 0.6969 GB, free: 15.77 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008887/1.158, allocations: 0.989 MB / 0.6979 GB, free: 14.75 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005314/1.159, allocations: 211.4 kB / 0.6981 GB, free: 14.54 MB / 0.4948 GB Notification: Performance of SimCode: time 1.523e-06/1.159, allocations: 0 / 0.6981 GB, free: 14.54 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.968/5.127, allocations: 26.06 MB / 0.7235 GB, free: 172.9 MB / 0.4948 GB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Line.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Line.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Line.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Line.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Line_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Line.fmu > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Line.pipe 2>&1)