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.00147/0.00147, allocations: 181.9 kB / 8.011 MB, free: 1.062 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2/2, allocations: 205.3 MB / 213.7 MB, free: 1.742 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001085/0.001085, allocations: 90.31 kB / 261.8 MB, free: 1.688 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2589/0.2589, allocations: 38 MB / 347.7 MB, free: 5.762 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.936e-05/1.937e-05, allocations: 0 / 409.9 MB, free: 35.05 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1094/0.1094, allocations: 56.33 MB / 466.3 MB, free: 10.73 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4875/0.5969, allocations: 94.35 MB / 0.5475 GB, free: 10.51 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002663/0.5973, allocations: 84.7 kB / 0.5476 GB, free: 10.5 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04375/0.6411, allocations: 10.12 MB / 0.5574 GB, free: 6.391 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.737e-06/0.6411, allocations: 0 / 0.5574 GB, free: 6.391 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.265e-05/0.6412, allocations: 16.22 kB / 0.5575 GB, free: 6.383 MB / 362.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.001439/0.6426, allocations: 0.6823 MB / 0.5581 GB, free: 5.836 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.839e-05/0.6427, allocations: 11.53 kB / 0.5581 GB, free: 5.836 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001464/0.6428, allocations: 54.64 kB / 0.5582 GB, free: 5.805 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003818/0.6467, allocations: 1.006 MB / 0.5592 GB, free: 5.219 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.275e-05/0.6468, allocations: 16 kB / 0.5592 GB, free: 5.203 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.563e-05/0.6469, allocations: 23.94 kB / 0.5592 GB, free: 5.18 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007232/0.6476, allocations: 274.6 kB / 0.5595 GB, free: 4.996 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007912/0.6484, allocations: 396.1 kB / 0.5598 GB, free: 4.652 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.387e-05/0.6484, allocations: 0 / 0.5598 GB, free: 4.652 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.224e-05/0.6485, allocations: 4 kB / 0.5599 GB, free: 4.648 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.444e-05/0.6485, allocations: 11.95 kB / 0.5599 GB, free: 4.637 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002613/0.6511, allocations: 1.681 MB / 0.5615 GB, free: 3.055 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002527/0.6515, allocations: 132.5 kB / 0.5616 GB, free: 2.926 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001079/0.6516, allocations: 51.27 kB / 0.5617 GB, free: 2.879 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.184e-05/0.6516, allocations: 0 / 0.5617 GB, free: 2.879 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.616e-05/0.6517, allocations: 38.52 kB / 0.5617 GB, free: 2.832 MB / 362.7 MB Notification: Performance of pre-optimization done (n=14): time 1.894e-06/0.6517, allocations: 0 / 0.5617 GB, free: 2.832 MB / 362.7 MB Notification: Performance of matching and sorting (n=15): time 0.00105/0.6527, allocations: 0.5513 MB / 0.5623 GB, free: 2.258 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.688e-05/0.6528, allocations: 102.8 kB / 0.5624 GB, free: 2.133 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003896/0.6532, allocations: 294.6 kB / 0.5626 GB, free: 1.895 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.577e-05/0.6532, allocations: 25.7 kB / 0.5627 GB, free: 1.863 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001556/0.6534, allocations: 331.8 kB / 0.563 GB, free: 1.586 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.474e-05/0.6535, allocations: 46.48 kB / 0.563 GB, free: 1.547 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.083e-05/0.6535, allocations: 4 kB / 0.563 GB, free: 1.543 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.406e-05/0.6536, allocations: 325.4 kB / 0.5633 GB, free: 1.223 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001092/0.6537, allocations: 37.31 kB / 0.5634 GB, free: 1.199 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000175/0.6539, allocations: 195.5 kB / 0.5636 GB, free: 0.9648 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001687/0.6541, allocations: 67.8 kB / 0.5636 GB, free: 0.918 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.12e-06/0.6541, allocations: 4 kB / 0.5636 GB, free: 0.9141 MB / 362.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004804/0.6546, allocations: 227 kB / 0.5638 GB, free: 0.7227 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.336e-05/0.6546, allocations: 8 kB / 0.5638 GB, free: 0.7148 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.175e-05/0.6546, allocations: 11.98 kB / 0.5639 GB, free: 0.7031 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.555e-05/0.6547, allocations: 8 kB / 0.5639 GB, free: 0.6953 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004479/0.6551, allocations: 67.91 kB / 0.5639 GB, free: 0.6289 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.145e-05/0.6552, allocations: 8.25 kB / 0.5639 GB, free: 0.6211 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003334/0.6555, allocations: 11.91 kB / 0.5639 GB, free: 0.6094 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.973e-05/0.6555, allocations: 19.17 kB / 0.564 GB, free: 0.5938 MB / 362.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 9.659e-05/0.6556, allocations: 116.2 kB / 0.5641 GB, free: 488 kB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003236/0.656, allocations: 138.1 kB / 0.5642 GB, free: 364 kB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.094e-05/0.6561, allocations: 43.52 kB / 0.5643 GB, free: 320 kB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003723/0.6565, allocations: 152 kB / 0.5644 GB, free: 192 kB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.701e-06/0.6565, allocations: 0 / 0.5644 GB, free: 192 kB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.202e-06/0.6565, allocations: 4 kB / 0.5644 GB, free: 188 kB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.244e-06/0.6565, allocations: 3.984 kB / 0.5644 GB, free: 184 kB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009954/0.6575, allocations: 481 kB / 0.5649 GB, free: 15.74 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.122e-06/0.6576, allocations: 256 / 0.5649 GB, free: 15.74 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003747/0.6579, allocations: 43.95 kB / 0.5649 GB, free: 15.7 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.36e-05/0.658, allocations: 4 kB / 0.5649 GB, free: 15.7 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.046e-05/0.658, allocations: 0 / 0.5649 GB, free: 15.7 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.594e-06/0.658, allocations: 4 kB / 0.5649 GB, free: 15.69 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.008e-06/0.658, allocations: 0 / 0.5649 GB, free: 15.69 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006406/0.6587, allocations: 422.1 kB / 0.5653 GB, free: 15.29 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001446/0.6588, allocations: 104.6 kB / 0.5654 GB, free: 15.16 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.227e-05/0.6589, allocations: 4.125 kB / 0.5654 GB, free: 15.16 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002801/0.6592, allocations: 4 kB / 0.5654 GB, free: 15.16 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.663e-05/0.6593, allocations: 23.8 kB / 0.5654 GB, free: 15.14 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.813e-05/0.6593, allocations: 4 kB / 0.5654 GB, free: 15.13 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003475/0.6597, allocations: 222 kB / 0.5657 GB, free: 14.96 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.6597, allocations: 0 / 0.5657 GB, free: 14.96 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006716/0.6604, allocations: 71 kB / 0.5657 GB, free: 14.89 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 () * 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.001127/0.6615, allocations: 1.148 MB / 0.5669 GB, free: 13.74 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004263/0.662, allocations: 134.8 kB / 0.567 GB, free: 13.64 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.867e-06/0.662, allocations: 0 / 0.567 GB, free: 13.64 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000136/0.6621, allocations: 48.19 kB / 0.567 GB, free: 13.61 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008808/0.663, allocations: 88.73 kB / 0.5671 GB, free: 13.54 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002368/0.6654, allocations: 0.7692 MB / 0.5679 GB, free: 12.77 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005945/0.6661, allocations: 0.8523 MB / 0.5687 GB, free: 11.9 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002721/0.6664, allocations: 145.1 kB / 0.5688 GB, free: 11.86 MB / 378.7 MB Notification: Performance of SimCode: time 9.02e-07/0.6664, allocations: 4 kB / 0.5688 GB, free: 11.86 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.66/3.327, allocations: 6.346 MB / 0.575 GB, free: 5.598 MB / 378.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)