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.00234/0.00234, allocations: 186 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.088/2.088, allocations: 205.2 MB / 218.9 MB, free: 9.215 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.001055/0.001055, allocations: 85.91 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.28/0.28, allocations: 37.96 MB / 353.1 MB, free: 3.062 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.95e-05/3.986e-05, allocations: 4 kB / 416.9 MB, free: 41.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1156/0.1157, allocations: 56.32 MB / 473.2 MB, free: 0.8203 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4816/0.5973, allocations: 95.02 MB / 0.5549 GB, free: 8.629 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003014/0.5977, allocations: 79.95 kB / 0.555 GB, free: 8.551 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04702/0.6448, allocations: 10.21 MB / 0.565 GB, free: 14.23 MB / 410.7 MB Notification: Performance of FrontEnd: time 5.119e-06/0.6448, allocations: 0 / 0.565 GB, free: 14.23 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.951e-05/0.6449, allocations: 20.06 kB / 0.565 GB, free: 14.21 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001546/0.6465, allocations: 0.6794 MB / 0.5656 GB, free: 13.49 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.418e-05/0.6465, allocations: 8.031 kB / 0.5656 GB, free: 13.48 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001297/0.6467, allocations: 74.88 kB / 0.5657 GB, free: 13.4 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001423/0.6468, allocations: 59.3 kB / 0.5658 GB, free: 13.34 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004123/0.651, allocations: 1.014 MB / 0.5668 GB, free: 12.29 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.807e-05/0.651, allocations: 24.78 kB / 0.5668 GB, free: 12.26 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.711e-05/0.6512, allocations: 39.94 kB / 0.5668 GB, free: 12.22 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001105/0.6523, allocations: 448.6 kB / 0.5673 GB, free: 11.74 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.392e-05/0.6523, allocations: 0 / 0.5673 GB, free: 11.74 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.221e-05/0.6524, allocations: 16 kB / 0.5673 GB, free: 11.73 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.524e-05/0.6524, allocations: 12 kB / 0.5673 GB, free: 11.71 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008337/0.6533, allocations: 304.7 kB / 0.5676 GB, free: 11.42 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003287/0.6566, allocations: 1.753 MB / 0.5693 GB, free: 9.551 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003817/0.657, allocations: 147.9 kB / 0.5694 GB, free: 9.379 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001457/0.6572, allocations: 66.52 kB / 0.5695 GB, free: 9.305 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.352e-05/0.6572, allocations: 0 / 0.5695 GB, free: 9.305 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.576e-05/0.6573, allocations: 34.56 kB / 0.5695 GB, free: 9.262 MB / 410.7 MB Notification: Performance of pre-optimization done (n=14): time 2.164e-06/0.6573, allocations: 0 / 0.5695 GB, free: 9.262 MB / 410.7 MB Notification: Performance of matching and sorting (n=15): time 0.001411/0.6587, allocations: 0.5765 MB / 0.5701 GB, free: 8.629 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.589e-05/0.6588, allocations: 110.8 kB / 0.5702 GB, free: 8.496 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005622/0.6594, allocations: 314.8 kB / 0.5705 GB, free: 8.18 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.711e-05/0.6594, allocations: 29.7 kB / 0.5705 GB, free: 8.145 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002627/0.6597, allocations: 325.7 kB / 0.5708 GB, free: 7.824 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.45e-05/0.6598, allocations: 51.3 kB / 0.5709 GB, free: 7.773 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.947e-05/0.6598, allocations: 8 kB / 0.5709 GB, free: 7.766 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001466/0.66, allocations: 326.9 kB / 0.5712 GB, free: 7.438 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001406/0.6601, allocations: 44 kB / 0.5712 GB, free: 7.395 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002739/0.6604, allocations: 190.9 kB / 0.5714 GB, free: 7.141 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002259/0.6606, allocations: 87.95 kB / 0.5715 GB, free: 7.055 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.108e-06/0.6606, allocations: 0 / 0.5715 GB, free: 7.055 MB / 410.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006574/0.6613, allocations: 261.5 kB / 0.5718 GB, free: 6.793 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.584e-05/0.6614, allocations: 8 kB / 0.5718 GB, free: 6.785 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.215e-05/0.6614, allocations: 4 kB / 0.5718 GB, free: 6.781 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.855e-05/0.6614, allocations: 11.98 kB / 0.5718 GB, free: 6.77 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000491/0.6619, allocations: 67.86 kB / 0.5718 GB, free: 6.703 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.033e-05/0.662, allocations: 11.98 kB / 0.5719 GB, free: 6.691 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003464/0.6623, allocations: 15.91 kB / 0.5719 GB, free: 6.676 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.573e-05/0.6624, allocations: 16 kB / 0.5719 GB, free: 6.66 MB / 410.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 () * 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.0001317/0.6625, allocations: 130.8 kB / 0.572 GB, free: 6.527 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001001/0.6626, allocations: 35.58 kB / 0.572 GB, free: 6.492 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004823/0.6631, allocations: 172.8 kB / 0.5722 GB, free: 6.32 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.801e-06/0.6631, allocations: 96 / 0.5722 GB, free: 6.32 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.516e-06/0.6631, allocations: 7.938 kB / 0.5722 GB, free: 6.312 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.145e-06/0.6632, allocations: 3.984 kB / 0.5722 GB, free: 6.309 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001031/0.6642, allocations: 0.5264 MB / 0.5727 GB, free: 5.723 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.968e-06/0.6642, allocations: 4.031 kB / 0.5727 GB, free: 5.719 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000362/0.6646, allocations: 35.92 kB / 0.5728 GB, free: 5.684 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.159e-05/0.6646, allocations: 4 kB / 0.5728 GB, free: 5.68 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.186e-05/0.6646, allocations: 4 kB / 0.5728 GB, free: 5.676 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.266e-05/0.6647, allocations: 4 kB / 0.5728 GB, free: 5.672 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.225e-06/0.6647, allocations: 0 / 0.5728 GB, free: 5.672 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006854/0.6654, allocations: 441.2 kB / 0.5732 GB, free: 5.199 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001489/0.6655, allocations: 112.7 kB / 0.5733 GB, free: 5.07 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.563e-05/0.6656, allocations: 4.25 kB / 0.5733 GB, free: 5.066 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002657/0.6659, allocations: 8 kB / 0.5733 GB, free: 5.059 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.444e-05/0.6659, allocations: 19.88 kB / 0.5733 GB, free: 5.039 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.81e-05/0.666, allocations: 8 kB / 0.5734 GB, free: 5.031 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0004237/0.6664, allocations: 249.2 kB / 0.5736 GB, free: 4.789 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.6664, allocations: 0 / 0.5736 GB, free: 4.789 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0006484/0.6671, allocations: 72 kB / 0.5737 GB, free: 4.719 MB / 410.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 () * 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.001254/0.6684, allocations: 1.177 MB / 0.5748 GB, free: 3.5 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0005219/0.6689, allocations: 149.4 kB / 0.5749 GB, free: 3.355 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.408e-06/0.6689, allocations: 4.062 kB / 0.575 GB, free: 3.352 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001558/0.6691, allocations: 60.02 kB / 0.575 GB, free: 3.293 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000899/0.67, allocations: 85.62 kB / 0.5751 GB, free: 3.211 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002272/0.6723, allocations: 0.7907 MB / 0.5759 GB, free: 2.363 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005988/0.6729, allocations: 0.8506 MB / 0.5767 GB, free: 1.484 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002888/0.6732, allocations: 147.4 kB / 0.5768 GB, free: 1.34 MB / 410.7 MB Notification: Performance of SimCode: time 1.332e-06/0.6733, allocations: 0 / 0.5768 GB, free: 1.34 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.495/3.168, allocations: 6.452 MB / 0.5831 GB, free: 10.89 MB / 426.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)