Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.Introductory.Frequency.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.Introductory.Frequency,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_Introductory_Frequency",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.Frequency,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_Introductory_Frequency",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.001534/0.001534, allocations: 183.1 kB / 15.76 MB, free: 6.34 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.986/1.986, allocations: 205.4 MB / 221.9 MB, free: 13.84 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.001145/0.001145, allocations: 98.83 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.262/0.262, allocations: 38.05 MB / 356.6 MB, free: 0.8008 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004681/0.0004681, allocations: 12 kB / 422.8 MB, free: 26.33 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1113/0.1118, allocations: 56.33 MB / 479.1 MB, free: 1.953 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4854/0.5973, allocations: 95.11 MB / 0.5608 GB, free: 4.141 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002612/0.5976, allocations: 88.89 kB / 0.5609 GB, free: 4.094 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04341/0.641, allocations: 10.22 MB / 0.5708 GB, free: 11.33 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.394e-06/0.6411, allocations: 0 / 0.5708 GB, free: 11.33 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.285e-05/0.6411, allocations: 12 kB / 0.5709 GB, free: 11.32 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001875/0.643, allocations: 0.7539 MB / 0.5716 GB, free: 10.55 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.906e-05/0.6431, allocations: 11.97 kB / 0.5716 GB, free: 10.54 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001423/0.6433, allocations: 74.19 kB / 0.5717 GB, free: 10.48 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001481/0.6434, allocations: 55.39 kB / 0.5717 GB, free: 10.42 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00408/0.6475, allocations: 1.031 MB / 0.5727 GB, free: 9.508 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.736e-05/0.6476, allocations: 22.62 kB / 0.5728 GB, free: 9.496 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.59e-05/0.6477, allocations: 39 kB / 0.5728 GB, free: 9.469 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001105/0.6488, allocations: 454.8 kB / 0.5732 GB, free: 9.098 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.502e-05/0.6489, allocations: 0 / 0.5732 GB, free: 9.098 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.096e-05/0.6489, allocations: 21.62 kB / 0.5732 GB, free: 9.09 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.507e-05/0.649, allocations: 12 kB / 0.5733 GB, free: 9.078 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008025/0.6498, allocations: 306.8 kB / 0.5736 GB, free: 8.867 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003109/0.6529, allocations: 1.761 MB / 0.5753 GB, free: 7.203 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000334/0.6533, allocations: 141.1 kB / 0.5754 GB, free: 7.066 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.533e-05/0.6533, allocations: 7.938 kB / 0.5754 GB, free: 7.059 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.578e-05/0.6534, allocations: 35.12 kB / 0.5754 GB, free: 7.016 MB / 378.7 MB Notification: Performance of pre-optimization done (n=14): time 2.615e-06/0.6534, allocations: 0 / 0.5754 GB, free: 7.016 MB / 378.7 MB Notification: Performance of matching and sorting (n=15): time 0.001464/0.6549, allocations: 0.602 MB / 0.576 GB, free: 6.41 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.181e-05/0.655, allocations: 110.9 kB / 0.5761 GB, free: 6.277 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005293/0.6555, allocations: 324.9 kB / 0.5765 GB, free: 6.008 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.066e-05/0.6555, allocations: 32.77 kB / 0.5765 GB, free: 5.973 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000228/0.6558, allocations: 320.2 kB / 0.5768 GB, free: 5.715 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.684e-05/0.6559, allocations: 58.5 kB / 0.5768 GB, free: 5.664 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.683e-05/0.6559, allocations: 3.75 kB / 0.5768 GB, free: 5.664 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001715/0.6561, allocations: 325.6 kB / 0.5772 GB, free: 5.344 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001406/0.6562, allocations: 46.53 kB / 0.5772 GB, free: 5.312 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002606/0.6565, allocations: 203.6 kB / 0.5774 GB, free: 5.07 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002249/0.6567, allocations: 72.12 kB / 0.5775 GB, free: 5.023 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.163e-06/0.6567, allocations: 4 kB / 0.5775 GB, free: 5.02 MB / 378.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006516/0.6574, allocations: 263.5 kB / 0.5777 GB, free: 4.809 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.438e-05/0.6574, allocations: 8 kB / 0.5777 GB, free: 4.801 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.175e-05/0.6575, allocations: 4 kB / 0.5777 GB, free: 4.797 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.602e-05/0.6575, allocations: 8.625 kB / 0.5777 GB, free: 4.789 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004862/0.658, allocations: 79.09 kB / 0.5778 GB, free: 4.715 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.465e-05/0.658, allocations: 4 kB / 0.5778 GB, free: 4.711 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003422/0.6584, allocations: 15.66 kB / 0.5778 GB, free: 4.699 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.454e-05/0.6584, allocations: 19.55 kB / 0.5779 GB, free: 4.684 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * 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 (37): * Single equations (assignments): 37 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003211/0.6588, allocations: 185.8 kB / 0.578 GB, free: 4.52 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001098/0.6589, allocations: 43.42 kB / 0.5781 GB, free: 4.477 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004593/0.6593, allocations: 169.4 kB / 0.5782 GB, free: 4.348 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.38e-06/0.6594, allocations: 4 kB / 0.5782 GB, free: 4.344 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.017e-06/0.6594, allocations: 4.438 kB / 0.5782 GB, free: 4.34 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.082e-06/0.6594, allocations: 0 / 0.5782 GB, free: 4.34 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001025/0.6604, allocations: 0.5391 MB / 0.5788 GB, free: 3.828 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.655e-06/0.6605, allocations: 4 kB / 0.5788 GB, free: 3.824 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003732/0.6608, allocations: 35.92 kB / 0.5788 GB, free: 3.789 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.743e-06/0.6609, allocations: 0 / 0.5788 GB, free: 3.789 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.517e-05/0.6609, allocations: 7.188 kB / 0.5788 GB, free: 3.785 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.869e-06/0.6609, allocations: 0 / 0.5788 GB, free: 3.785 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.12e-06/0.6609, allocations: 8.031 kB / 0.5788 GB, free: 3.777 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006609/0.6616, allocations: 433.3 kB / 0.5792 GB, free: 3.363 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001385/0.6618, allocations: 111.4 kB / 0.5793 GB, free: 3.238 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.683e-05/0.6618, allocations: 7.312 kB / 0.5793 GB, free: 3.234 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002554/0.6621, allocations: 4.125 kB / 0.5794 GB, free: 3.23 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.961e-05/0.6622, allocations: 22.75 kB / 0.5794 GB, free: 3.211 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.711e-05/0.6622, allocations: 4 kB / 0.5794 GB, free: 3.207 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003973/0.6626, allocations: 250.6 kB / 0.5796 GB, free: 3.012 MB / 378.7 MB Notification: Performance of sort global known variables: time 4e-07/0.6626, allocations: 0 / 0.5796 GB, free: 3.012 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006197/0.6632, allocations: 73.75 kB / 0.5797 GB, free: 2.945 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (voltage2.theta,ind2.i,ind1.i) * 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 (18): * Single equations (assignments): 17 * Array equations: 0 * 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.001097/0.6643, allocations: 1.176 MB / 0.5808 GB, free: 1.781 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004484/0.6648, allocations: 149.9 kB / 0.581 GB, free: 1.668 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.6648, allocations: 0 / 0.581 GB, free: 1.668 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001472/0.665, allocations: 61.97 kB / 0.581 GB, free: 1.621 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008825/0.6659, allocations: 88.97 kB / 0.5811 GB, free: 1.559 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006356/0.6723, allocations: 5.493 MB / 0.5865 GB, free: 12.16 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005911/0.6729, allocations: 0.8543 MB / 0.5873 GB, free: 11.29 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00029/0.6732, allocations: 149.9 kB / 0.5875 GB, free: 11.25 MB / 394.7 MB Notification: Performance of SimCode: time 1.212e-06/0.6732, allocations: 0 / 0.5875 GB, free: 11.25 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.568/3.242, allocations: 6.511 MB / 0.5938 GB, free: 4.812 MB / 394.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.Introductory.Frequency.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.Introductory.Frequency.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.Introductory.Frequency.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.Introductory.Frequency.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_Introductory_Frequency_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_Introductory_Frequency.fmu > PowerSystems_cpp_PowerSystems.Examples.Introductory.Frequency.pipe 2>&1)