Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Source.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.Source,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Source",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Source,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Source",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.001516/0.001516, allocations: 185.7 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 1.957/1.957, 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.001101/0.0011, allocations: 83.52 kB / 267.1 MB, free: 9.262 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.27/0.27, allocations: 37.96 MB / 353.1 MB, free: 3.055 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.302e-05/3.318e-05, allocations: 0 / 416.9 MB, free: 41.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1073/0.1073, allocations: 56.32 MB / 473.2 MB, free: 0.8203 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5101/0.6175, allocations: 101.3 MB / 0.5611 GB, free: 2.332 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002915/0.6178, allocations: 83.95 kB / 0.5612 GB, free: 2.25 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07035/0.6882, allocations: 15.1 MB / 0.5759 GB, free: 2.98 MB / 410.7 MB Notification: Performance of FrontEnd: time 4.088e-06/0.6883, allocations: 0 / 0.5759 GB, free: 2.98 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.906e-05/0.6883, allocations: 12 kB / 0.5759 GB, free: 2.969 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: 119 * Number of variables: 119 Notification: Performance of Generate backend data structure: time 0.001959/0.6903, allocations: 0.6793 MB / 0.5766 GB, free: 2.242 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.225e-05/0.6904, allocations: 8.031 kB / 0.5766 GB, free: 2.234 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002088/0.6906, allocations: 90.5 kB / 0.5767 GB, free: 2.137 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000959/0.6916, allocations: 87.38 kB / 0.5768 GB, free: 2.051 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004089/0.6957, allocations: 0.8486 MB / 0.5776 GB, free: 1.156 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.342e-05/0.6958, allocations: 36.75 kB / 0.5776 GB, free: 1.117 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001458/0.6959, allocations: 47.83 kB / 0.5777 GB, free: 1.07 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001735/0.6977, allocations: 0.6554 MB / 0.5783 GB, free: 388 kB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.703e-05/0.6977, allocations: 0 / 0.5783 GB, free: 388 kB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.792e-05/0.6978, allocations: 23.94 kB / 0.5783 GB, free: 364 kB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002627/0.6981, allocations: 60.73 kB / 0.5784 GB, free: 304 kB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001747/0.6999, allocations: 0.624 MB / 0.579 GB, free: 15.67 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006093/0.706, allocations: 2.554 MB / 0.5815 GB, free: 12.98 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008549/0.7069, allocations: 321.3 kB / 0.5818 GB, free: 12.65 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005321/0.7074, allocations: 233.7 kB / 0.582 GB, free: 12.42 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.563e-05/0.7075, allocations: 4 kB / 0.582 GB, free: 12.41 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.04e-05/0.7076, allocations: 34.56 kB / 0.5821 GB, free: 12.37 MB / 426.7 MB Notification: Performance of pre-optimization done (n=43): time 3.206e-06/0.7076, allocations: 4 kB / 0.5821 GB, free: 12.37 MB / 426.7 MB Notification: Performance of matching and sorting (n=44): time 0.003107/0.7107, allocations: 1.234 MB / 0.5833 GB, free: 11.07 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.045e-05/0.7108, allocations: 81.11 kB / 0.5833 GB, free: 10.98 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004161/0.7112, allocations: 235.5 kB / 0.5836 GB, free: 10.75 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 5.732e-05/0.7113, allocations: 37.73 kB / 0.5836 GB, free: 10.7 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002145/0.7115, allocations: 298.1 kB / 0.5839 GB, free: 10.41 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001826/0.7117, allocations: 145.8 kB / 0.584 GB, free: 10.27 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.827e-05/0.7118, allocations: 11.98 kB / 0.584 GB, free: 10.25 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001651/0.7119, allocations: 342.7 kB / 0.5844 GB, free: 9.91 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004991/0.7125, allocations: 196.9 kB / 0.5845 GB, free: 9.719 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006669/0.7131, allocations: 323.2 kB / 0.5849 GB, free: 9.352 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006409/0.7138, allocations: 261 kB / 0.5851 GB, free: 9.094 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.118e-06/0.7138, allocations: 4 kB / 0.5851 GB, free: 9.09 MB / 426.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001984/0.7158, allocations: 0.6705 MB / 0.5858 GB, free: 8.41 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.203e-05/0.7159, allocations: 12.06 kB / 0.5858 GB, free: 8.398 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001536/0.7174, allocations: 0.519 MB / 0.5863 GB, free: 7.871 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006732/0.7181, allocations: 109.6 kB / 0.5864 GB, free: 7.758 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006417/0.7188, allocations: 83.88 kB / 0.5865 GB, free: 7.676 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004027/0.7228, allocations: 2.999 MB / 0.5894 GB, free: 4.41 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005204/0.7234, allocations: 31.95 kB / 0.5894 GB, free: 4.379 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.758e-05/0.7235, allocations: 16 kB / 0.5894 GB, free: 4.363 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (43): * Single equations (assignments): 38 * Array equations: 3 * 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%) 3,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001864/0.7237, allocations: 130.8 kB / 0.5896 GB, free: 4.23 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.896e-05/0.7238, allocations: 35.53 kB / 0.5896 GB, free: 4.195 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00142/0.7252, allocations: 0.5162 MB / 0.5901 GB, free: 3.676 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.998e-05/0.7253, allocations: 19.98 kB / 0.5901 GB, free: 3.656 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.527e-06/0.7253, allocations: 0 / 0.5901 GB, free: 3.656 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.012e-05/0.7253, allocations: 3.953 kB / 0.5901 GB, free: 3.652 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002692/0.728, allocations: 1.083 MB / 0.5912 GB, free: 2.508 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.292e-06/0.7281, allocations: 0 / 0.5912 GB, free: 2.508 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008422/0.7289, allocations: 75.88 kB / 0.5913 GB, free: 2.434 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.997e-06/0.7289, allocations: 0 / 0.5913 GB, free: 2.434 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.243e-05/0.729, allocations: 11.95 kB / 0.5913 GB, free: 2.422 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-05/0.729, allocations: 7.984 kB / 0.5913 GB, free: 2.414 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.502e-06/0.729, allocations: 0 / 0.5913 GB, free: 2.414 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001812/0.7309, allocations: 0.8598 MB / 0.5921 GB, free: 1.516 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003094/0.7312, allocations: 136.8 kB / 0.5922 GB, free: 1.363 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.622e-05/0.7313, allocations: 15.97 kB / 0.5923 GB, free: 1.348 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003913/0.7317, allocations: 27.97 kB / 0.5923 GB, free: 1.32 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.364e-05/0.7318, allocations: 16.22 kB / 0.5923 GB, free: 1.305 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.629e-05/0.7319, allocations: 15.92 kB / 0.5923 GB, free: 1.289 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0003204/0.7322, allocations: 191.1 kB / 0.5925 GB, free: 1.105 MB / 426.7 MB Notification: Performance of sort global known variables: time 5.11e-07/0.7322, allocations: 0 / 0.5925 GB, free: 1.105 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0008148/0.733, allocations: 131.9 kB / 0.5926 GB, free: 0.9766 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (ind.i[1],ind.i[2],ind.i[3]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 27 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002471/0.7355, allocations: 1.662 MB / 0.5942 GB, free: 15.27 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001853/0.7374, allocations: 0.7371 MB / 0.595 GB, free: 14.5 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.548e-06/0.7374, allocations: 0 / 0.595 GB, free: 14.5 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005687/0.738, allocations: 245 kB / 0.5952 GB, free: 14.27 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000617/0.7387, allocations: 56.84 kB / 0.5953 GB, free: 14.21 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003028/0.7417, allocations: 1.098 MB / 0.5963 GB, free: 13.06 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006658/0.7424, allocations: 0.8865 MB / 0.5972 GB, free: 12.14 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004494/0.7429, allocations: 147.4 kB / 0.5973 GB, free: 12 MB / 442.7 MB Notification: Performance of SimCode: time 8.92e-07/0.7429, allocations: 0 / 0.5973 GB, free: 12 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.986/3.728, allocations: 8.922 MB / 0.606 GB, free: 3.062 MB / 442.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Source.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Source.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Source.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Source.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Source_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Source.fmu > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Source.pipe 2>&1)