Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.Introductory.Frequency,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_Frequency",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.Frequency,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_Frequency",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00128/0.00128, allocations: 87.03 kB / 16.31 MB, free: 5.684 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001684/0.001684, allocations: 187.2 kB / 17.21 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.54/1.54, allocations: 223.2 MB / 241.2 MB, free: 340 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2118/0.2118, allocations: 38.1 MB / 330.4 MB, free: 8.875 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003785/0.0003787, allocations: 8.688 kB / 400.2 MB, free: 34.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1473/0.1477, allocations: 59.17 MB / 459.3 MB, free: 7.336 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Frequency): time 0.007002/0.1547, allocations: 6.118 MB / 465.4 MB, free: 1.188 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003162/0.1579, allocations: 1.485 MB / 466.9 MB, free: 15.7 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006108/0.1586, allocations: 47.69 kB / 467 MB, free: 15.65 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003406/0.1589, allocations: 107.1 kB / 467.1 MB, free: 15.55 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001078/0.16, allocations: 381.8 kB / 467.5 MB, free: 15.17 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005762/0.1606, allocations: 203.7 kB / 467.7 MB, free: 14.97 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007592/0.1614, allocations: 0.7708 MB / 468.4 MB, free: 14.2 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002544/0.1616, allocations: 126.5 kB / 468.6 MB, free: 14.07 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003622/0.162, allocations: 258.7 kB / 468.8 MB, free: 13.81 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005006/0.1625, allocations: 326.8 kB / 469.1 MB, free: 13.49 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.547e-05/0.1626, allocations: 16 kB / 469.1 MB, free: 13.48 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.524e-05/0.1626, allocations: 20 kB / 469.2 MB, free: 13.46 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001498/0.1628, allocations: 147.5 kB / 469.3 MB, free: 13.31 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001088/0.1629, allocations: 117.5 kB / 469.4 MB, free: 13.19 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000331/0.1632, allocations: 355 kB / 469.8 MB, free: 12.84 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.641e-06/0.1633, allocations: 0 / 469.8 MB, free: 12.84 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.906e-06/0.1633, allocations: 4 kB / 469.8 MB, free: 12.84 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.252e-06/0.1633, allocations: 0 / 469.8 MB, free: 12.84 MB / 350.1 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.001196/0.1645, allocations: 0.7266 MB / 470.5 MB, free: 12.07 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.595e-05/0.1645, allocations: 8.031 kB / 470.5 MB, free: 12.06 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.81e-05/0.1646, allocations: 74.53 kB / 470.6 MB, free: 11.98 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.215e-05/0.1647, allocations: 47.44 kB / 470.6 MB, free: 11.93 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000571/0.1653, allocations: 419.3 kB / 471 MB, free: 11.48 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.709e-05/0.1653, allocations: 29 kB / 471.1 MB, free: 11.45 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.086e-05/0.1654, allocations: 43.91 kB / 471.1 MB, free: 11.41 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006538/0.1661, allocations: 451.5 kB / 471.5 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.607e-05/0.1661, allocations: 0 / 471.5 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.323e-05/0.1661, allocations: 20 kB / 471.6 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.411e-05/0.1662, allocations: 12 kB / 471.6 MB, free: 10.9 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004785/0.1666, allocations: 304.7 kB / 471.9 MB, free: 10.6 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002023/0.1687, allocations: 1.764 MB / 473.6 MB, free: 8.73 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002106/0.1689, allocations: 139.7 kB / 473.8 MB, free: 8.566 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.965e-05/0.169, allocations: 58.67 kB / 473.8 MB, free: 8.5 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.142e-05/0.169, allocations: 7.922 kB / 473.8 MB, free: 8.492 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.649e-05/0.1691, allocations: 34.56 kB / 473.9 MB, free: 8.449 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.773e-06/0.1691, allocations: 4 kB / 473.9 MB, free: 8.445 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.001018/0.1701, allocations: 0.6078 MB / 474.5 MB, free: 7.781 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.661e-05/0.1702, allocations: 106.8 kB / 474.6 MB, free: 7.652 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003713/0.1706, allocations: 369.5 kB / 474.9 MB, free: 7.281 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.699e-05/0.1706, allocations: 25.83 kB / 475 MB, free: 7.25 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001898/0.1708, allocations: 287.4 kB / 475.3 MB, free: 6.965 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.319e-05/0.1708, allocations: 55.19 kB / 475.3 MB, free: 6.91 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.216e-05/0.1708, allocations: 8 kB / 475.3 MB, free: 6.902 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001459/0.171, allocations: 346.8 kB / 475.7 MB, free: 6.555 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.469e-05/0.1711, allocations: 47.97 kB / 475.7 MB, free: 6.508 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001826/0.1713, allocations: 195.1 kB / 475.9 MB, free: 6.25 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001333/0.1714, allocations: 83.88 kB / 476 MB, free: 6.168 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.1714, allocations: 0 / 476 MB, free: 6.168 MB / 350.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0003923/0.1718, allocations: 289 kB / 476.3 MB, free: 5.879 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.022e-05/0.1718, allocations: 4 kB / 476.3 MB, free: 5.875 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.125e-05/0.1719, allocations: 8 kB / 476.3 MB, free: 5.867 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.768e-05/0.1719, allocations: 4 kB / 476.3 MB, free: 5.863 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002464/0.1721, allocations: 79.8 kB / 476.3 MB, free: 5.785 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.287e-05/0.1722, allocations: 12.48 kB / 476.4 MB, free: 5.773 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001633/0.1723, allocations: 11.91 kB / 476.4 MB, free: 5.762 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.201e-05/0.1724, allocations: 20.27 kB / 476.4 MB, free: 5.742 MB / 350.1 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.0001816/0.1726, allocations: 185.7 kB / 476.6 MB, free: 5.551 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.687e-05/0.1726, allocations: 35.53 kB / 476.6 MB, free: 5.516 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002782/0.1729, allocations: 168.7 kB / 476.8 MB, free: 5.344 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.478e-06/0.1729, allocations: 3.984 kB / 476.8 MB, free: 5.34 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.1729, allocations: 7.953 kB / 476.8 MB, free: 5.332 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.167e-06/0.1729, allocations: 0 / 476.8 MB, free: 5.332 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006097/0.1736, allocations: 0.5265 MB / 477.3 MB, free: 4.746 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.1736, allocations: 0 / 477.3 MB, free: 4.746 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001721/0.1738, allocations: 39.92 kB / 477.4 MB, free: 4.707 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.046e-06/0.1738, allocations: 0 / 477.4 MB, free: 4.707 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.374e-05/0.1738, allocations: 7.953 kB / 477.4 MB, free: 4.699 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.236e-06/0.1738, allocations: 3.984 kB / 477.4 MB, free: 4.695 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.1738, allocations: 4 kB / 477.4 MB, free: 4.691 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004121/0.1742, allocations: 400.7 kB / 477.8 MB, free: 4.281 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.242e-05/0.1743, allocations: 112.6 kB / 477.9 MB, free: 4.152 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.286e-05/0.1744, allocations: 8 kB / 477.9 MB, free: 4.145 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001502/0.1745, allocations: 3.953 kB / 477.9 MB, free: 4.141 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.81e-05/0.1746, allocations: 15.98 kB / 477.9 MB, free: 4.125 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.104e-05/0.1746, allocations: 4 kB / 477.9 MB, free: 4.121 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002422/0.1748, allocations: 255.2 kB / 478.1 MB, free: 3.871 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1748, allocations: 0 / 478.1 MB, free: 3.871 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004011/0.1752, allocations: 68 kB / 478.2 MB, free: 3.805 MB / 350.1 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.0006357/0.1759, allocations: 0.9241 MB / 479.1 MB, free: 2.848 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002652/0.1761, allocations: 155.6 kB / 479.3 MB, free: 2.695 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.1762, allocations: 4 kB / 479.3 MB, free: 2.691 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001128/0.1763, allocations: 61.14 kB / 479.4 MB, free: 2.633 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006525/0.1769, allocations: 97.77 kB / 479.4 MB, free: 2.539 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003/0.1799, allocations: 2.303 MB / 481.8 MB, free: 116 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004277/0.1804, allocations: 0.8389 MB / 482.6 MB, free: 15.25 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001851/0.1806, allocations: 55.25 kB / 482.6 MB, free: 15.2 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001926/0.1808, allocations: 143.4 kB / 482.8 MB, free: 15.06 MB / 366.1 MB Notification: Performance of SimCode: time 4.51e-07/0.1808, allocations: 0 / 482.8 MB, free: 15.06 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01916/0.2, allocations: 6.663 MB / 489.4 MB, free: 8.562 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002284/0.2002, allocations: 188 kB / 489.6 MB, free: 8.32 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.992/2.192, allocations: 3.938 kB / 489.6 MB, free: 8.316 MB / 366.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Introductory_Frequency_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Introductory_Frequency.fmu > PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.Introductory.Frequency_res.mat does not exist to compare? outputFormat=mat