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.001654/0.001659, allocations: 186.8 kB / 15.77 MB, free: 5.988 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.065/2.065, allocations: 205.4 MB / 221.9 MB, free: 13.65 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.001173/0.001173, allocations: 90.86 kB / 270.2 MB, free: 13.18 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2726/0.2726, allocations: 38.05 MB / 356.6 MB, free: 0.7617 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004713/0.0004714, allocations: 12 kB / 422.8 MB, free: 26.33 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1164/0.1169, allocations: 56.34 MB / 479.1 MB, free: 1.938 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Frequency): time 0.009699/0.1266, allocations: 5.847 MB / 485 MB, free: 12.06 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.004323/0.131, allocations: 1.572 MB / 486.5 MB, free: 10.48 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008151/0.1319, allocations: 43.69 kB / 486.6 MB, free: 10.44 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003609/0.1323, allocations: 99.27 kB / 486.7 MB, free: 10.34 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001499/0.1338, allocations: 354.9 kB / 487 MB, free: 9.996 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008302/0.1346, allocations: 195.6 kB / 487.2 MB, free: 9.805 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009254/0.1356, allocations: 395.2 kB / 487.6 MB, free: 9.418 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003492/0.1359, allocations: 130.5 kB / 487.7 MB, free: 9.285 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005571/0.1365, allocations: 231.1 kB / 488 MB, free: 9.059 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005768/0.1371, allocations: 239.1 kB / 488.2 MB, free: 8.824 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 6.958e-05/0.1372, allocations: 16 kB / 488.2 MB, free: 8.809 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001016/0.1373, allocations: 24 kB / 488.2 MB, free: 8.785 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002229/0.1375, allocations: 127.6 kB / 488.4 MB, free: 8.66 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001669/0.1377, allocations: 109.5 kB / 488.5 MB, free: 8.547 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005576/0.1383, allocations: 363 kB / 488.8 MB, free: 8.191 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.344e-06/0.1383, allocations: 0 / 488.8 MB, free: 8.191 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.1383, allocations: 0 / 488.8 MB, free: 8.191 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.234e-06/0.1383, allocations: 0 / 488.8 MB, free: 8.191 MB / 330.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.001884/0.1402, allocations: 0.7266 MB / 489.5 MB, free: 7.418 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.694e-05/0.1403, allocations: 8.031 kB / 489.6 MB, free: 7.41 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001449/0.1405, allocations: 74.53 kB / 489.6 MB, free: 7.328 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001262/0.1406, allocations: 55.34 kB / 489.7 MB, free: 7.273 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001034/0.1416, allocations: 415.4 kB / 490.1 MB, free: 6.828 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.635e-05/0.1417, allocations: 29 kB / 490.1 MB, free: 6.801 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.149e-05/0.1418, allocations: 36 kB / 490.2 MB, free: 6.766 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001045/0.1429, allocations: 451.5 kB / 490.6 MB, free: 6.285 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.753e-05/0.1429, allocations: 11.98 kB / 490.6 MB, free: 6.273 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.729e-05/0.143, allocations: 19.95 kB / 490.6 MB, free: 6.254 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.565e-05/0.143, allocations: 8 kB / 490.6 MB, free: 6.246 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008212/0.1438, allocations: 308.5 kB / 490.9 MB, free: 5.945 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003172/0.147, allocations: 1.767 MB / 492.7 MB, free: 4.066 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003612/0.1474, allocations: 143.7 kB / 492.8 MB, free: 3.898 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.692e-05/0.1475, allocations: 8.094 kB / 492.8 MB, free: 3.891 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.096e-05/0.1475, allocations: 38.62 kB / 492.9 MB, free: 3.844 MB / 330.7 MB Notification: Performance of pre-optimization done (n=14): time 2.926e-06/0.1476, allocations: 4 kB / 492.9 MB, free: 3.84 MB / 330.7 MB Notification: Performance of matching and sorting (n=15): time 0.001452/0.149, allocations: 0.6001 MB / 493.5 MB, free: 3.184 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.945e-05/0.1491, allocations: 110.8 kB / 493.6 MB, free: 3.051 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006367/0.1498, allocations: 369.5 kB / 494 MB, free: 2.68 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.402e-05/0.1498, allocations: 25.7 kB / 494 MB, free: 2.648 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002863/0.1501, allocations: 329.9 kB / 494.3 MB, free: 2.324 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.807e-05/0.1502, allocations: 55.27 kB / 494.4 MB, free: 2.27 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.565e-05/0.1502, allocations: 4 kB / 494.4 MB, free: 2.266 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001516/0.1504, allocations: 322.8 kB / 494.7 MB, free: 1.941 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001456/0.1505, allocations: 47.97 kB / 494.7 MB, free: 1.895 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002823/0.1508, allocations: 198.8 kB / 494.9 MB, free: 1.633 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002278/0.1511, allocations: 79.92 kB / 495 MB, free: 1.555 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.254e-05/0.1511, allocations: 11.89 kB / 495 MB, free: 1.543 MB / 330.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006468/0.1517, allocations: 265.5 kB / 495.3 MB, free: 1.277 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.377e-05/0.1518, allocations: 4 kB / 495.3 MB, free: 1.273 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.544e-05/0.1518, allocations: 8 kB / 495.3 MB, free: 1.266 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.009e-05/0.1518, allocations: 8 kB / 495.3 MB, free: 1.258 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004834/0.1523, allocations: 71.84 kB / 495.4 MB, free: 1.188 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.71e-05/0.1524, allocations: 8 kB / 495.4 MB, free: 1.18 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003198/0.1527, allocations: 11.94 kB / 495.4 MB, free: 1.168 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.512e-05/0.1527, allocations: 19.98 kB / 495.4 MB, free: 1.148 MB / 330.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.0003011/0.1531, allocations: 177.9 kB / 495.6 MB, free: 0.9648 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001036/0.1532, allocations: 43.47 kB / 495.6 MB, free: 0.9219 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004756/0.1537, allocations: 172.6 kB / 495.8 MB, free: 0.75 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.226e-06/0.1537, allocations: 4 kB / 495.8 MB, free: 0.7461 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.842e-06/0.1537, allocations: 0 / 495.8 MB, free: 0.7461 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.793e-06/0.1537, allocations: 0 / 495.8 MB, free: 0.7461 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009931/0.1547, allocations: 0.5342 MB / 496.3 MB, free: 156 kB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.188e-06/0.1547, allocations: 4.031 kB / 496.3 MB, free: 152 kB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003693/0.1551, allocations: 35.92 kB / 496.4 MB, free: 116 kB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.354e-06/0.1551, allocations: 0 / 496.4 MB, free: 116 kB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.291e-05/0.1552, allocations: 8 kB / 496.4 MB, free: 108 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.883e-06/0.1552, allocations: 4 kB / 496.4 MB, free: 104 kB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.029e-06/0.1552, allocations: 3.984 kB / 496.4 MB, free: 100 kB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006871/0.1559, allocations: 429.5 kB / 496.8 MB, free: 15.63 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001459/0.1561, allocations: 112.7 kB / 496.9 MB, free: 15.5 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.693e-05/0.1562, allocations: 8.438 kB / 496.9 MB, free: 15.5 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002634/0.1564, allocations: 0 / 496.9 MB, free: 15.5 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.389e-05/0.1565, allocations: 16.03 kB / 496.9 MB, free: 15.48 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.58e-05/0.1565, allocations: 19.98 kB / 496.9 MB, free: 15.46 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0004088/0.1569, allocations: 247.2 kB / 497.2 MB, free: 15.22 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.6e-07/0.157, allocations: 0 / 497.2 MB, free: 15.22 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006702/0.1576, allocations: 72 kB / 497.3 MB, free: 15.15 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (ind1.i,voltage2.theta,ind2.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.001119/0.1588, allocations: 1.171 MB / 498.4 MB, free: 13.94 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004925/0.1593, allocations: 157.1 kB / 498.6 MB, free: 13.79 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.1593, allocations: 4.062 kB / 498.6 MB, free: 13.78 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001562/0.1595, allocations: 55.86 kB / 498.6 MB, free: 13.73 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001029/0.1605, allocations: 88.64 kB / 498.7 MB, free: 13.64 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006471/0.167, allocations: 5.492 MB / 0.4924 GB, free: 7.992 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006342/0.1677, allocations: 0.8545 MB / 0.4932 GB, free: 7.113 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003116/0.168, allocations: 147.4 kB / 0.4934 GB, free: 6.969 MB / 346.7 MB Notification: Performance of SimCode: time 1.192e-06/0.168, allocations: 4 kB / 0.4934 GB, free: 6.965 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.486/2.654, allocations: 6.496 MB / 0.4997 GB, free: 476 kB / 346.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)