Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest.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.Generic.Test.GeneratorTest,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_Generic_Test_GeneratorTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.GeneratorTest,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_Generic_Test_GeneratorTest",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.001586/0.001586, allocations: 183.5 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 1.956/1.956, allocations: 205.4 MB / 221.9 MB, free: 13.81 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.001149/0.001149, allocations: 98.78 kB / 270.2 MB, free: 13.34 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2652/0.2652, allocations: 38.05 MB / 356.6 MB, free: 0.7891 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006313/0.0006314, allocations: 11.98 kB / 422.8 MB, free: 26.34 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1547/0.1554, allocations: 56.33 MB / 479.1 MB, free: 1.949 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest): time 0.007051/0.1625, allocations: 3.01 MB / 482.1 MB, free: 14.92 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.003582/0.1661, allocations: 1.214 MB / 483.4 MB, free: 13.7 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002673/0.1664, allocations: 11.94 kB / 483.4 MB, free: 13.68 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002073/0.1667, allocations: 31.77 kB / 483.4 MB, free: 13.65 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007824/0.1675, allocations: 135.5 kB / 483.5 MB, free: 13.52 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005413/0.168, allocations: 99.72 kB / 483.6 MB, free: 13.42 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004843/0.1685, allocations: 163.7 kB / 483.8 MB, free: 13.26 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008417/0.1694, allocations: 250.9 kB / 484 MB, free: 13 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003602/0.1698, allocations: 95.67 kB / 484.1 MB, free: 12.91 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00023/0.17, allocations: 71.7 kB / 484.2 MB, free: 12.84 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 4.293e-05/0.1701, allocations: 8 kB / 484.2 MB, free: 12.83 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005169/0.1706, allocations: 111.7 kB / 484.3 MB, free: 12.72 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001064/0.1708, allocations: 47.89 kB / 484.4 MB, free: 12.67 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001032/0.1709, allocations: 61.58 kB / 484.4 MB, free: 12.61 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005208/0.1714, allocations: 195.5 kB / 484.6 MB, free: 12.41 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.735e-06/0.1714, allocations: 0 / 484.6 MB, free: 12.41 MB / 330.7 MB Notification: Performance of FrontEnd: time 4.739e-06/0.1715, allocations: 0 / 484.6 MB, free: 12.41 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.631e-06/0.1715, allocations: 3.938 kB / 484.6 MB, free: 12.41 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.001009/0.1725, allocations: 470.9 kB / 485.1 MB, free: 11.9 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.648e-05/0.1726, allocations: 12.02 kB / 485.1 MB, free: 11.89 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001119/0.1727, allocations: 58.5 kB / 485.1 MB, free: 11.82 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001672/0.1744, allocations: 79.64 kB / 485.2 MB, free: 11.75 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007223/0.1751, allocations: 250.6 kB / 485.5 MB, free: 11.46 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.683e-05/0.1752, allocations: 12.33 kB / 485.5 MB, free: 11.45 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.811e-05/0.1753, allocations: 15.94 kB / 485.5 MB, free: 11.43 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009945/0.1763, allocations: 271.9 kB / 485.8 MB, free: 11.14 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.264e-05/0.1764, allocations: 8 kB / 485.8 MB, free: 11.14 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.915e-05/0.1765, allocations: 4 kB / 485.8 MB, free: 11.13 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.91e-05/0.1765, allocations: 16.28 kB / 485.8 MB, free: 11.12 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009479/0.1775, allocations: 220.4 kB / 486 MB, free: 10.9 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003544/0.1811, allocations: 1.221 MB / 487.2 MB, free: 9.582 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004576/0.1816, allocations: 125.3 kB / 487.3 MB, free: 9.441 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.767e-05/0.1816, allocations: 0 / 487.3 MB, free: 9.441 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.755e-05/0.1817, allocations: 46.56 kB / 487.4 MB, free: 9.387 MB / 330.7 MB Notification: Performance of pre-optimization done (n=12): time 2.995e-06/0.1817, allocations: 0 / 487.4 MB, free: 9.387 MB / 330.7 MB Notification: Performance of matching and sorting (n=12): time 0.0006677/0.1824, allocations: 157.4 kB / 487.5 MB, free: 9.227 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.54e-05/0.1825, allocations: 77.33 kB / 487.6 MB, free: 9.133 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000399/0.1829, allocations: 206.9 kB / 487.8 MB, free: 8.918 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.514e-05/0.183, allocations: 29.7 kB / 487.8 MB, free: 8.883 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002009/0.1832, allocations: 218.2 kB / 488.1 MB, free: 8.668 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.998e-05/0.1833, allocations: 43.48 kB / 488.1 MB, free: 8.625 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.98e-05/0.1833, allocations: 4 kB / 488.1 MB, free: 8.621 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000172/0.1835, allocations: 322.8 kB / 488.4 MB, free: 8.297 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001807/0.1837, allocations: 39.97 kB / 488.5 MB, free: 8.258 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002698/0.184, allocations: 130 kB / 488.6 MB, free: 8.094 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002516/0.1842, allocations: 59.92 kB / 488.6 MB, free: 8.035 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.476e-06/0.1843, allocations: 7.953 kB / 488.7 MB, free: 8.027 MB / 330.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006671/0.1849, allocations: 193.7 kB / 488.8 MB, free: 7.832 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.87e-05/0.185, allocations: 8 kB / 488.9 MB, free: 7.824 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.558e-06/0.185, allocations: 0 / 488.9 MB, free: 7.824 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.231e-05/0.1851, allocations: 8 kB / 488.9 MB, free: 7.816 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005821/0.1856, allocations: 56.25 kB / 488.9 MB, free: 7.762 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001643/0.1873, allocations: 1.337 MB / 490.3 MB, free: 6.293 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002724/0.1876, allocations: 16.09 kB / 490.3 MB, free: 6.277 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.537e-05/0.1877, allocations: 12 kB / 490.3 MB, free: 6.266 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (23): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002625/0.188, allocations: 149.7 kB / 490.4 MB, free: 6.109 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.852e-05/0.188, allocations: 15.81 kB / 490.4 MB, free: 6.094 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004873/0.1885, allocations: 143 kB / 490.6 MB, free: 5.945 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.364e-06/0.1886, allocations: 0 / 490.6 MB, free: 5.945 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.115e-06/0.1886, allocations: 3.938 kB / 490.6 MB, free: 5.941 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.19e-05/0.1886, allocations: 7.984 kB / 490.6 MB, free: 5.934 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001348/0.19, allocations: 492 kB / 491.1 MB, free: 5.391 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.468e-06/0.19, allocations: 7.938 kB / 491.1 MB, free: 5.383 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004475/0.1905, allocations: 35.91 kB / 491.1 MB, free: 5.348 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.033e-06/0.1905, allocations: 0 / 491.1 MB, free: 5.348 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.836e-05/0.1905, allocations: 4 kB / 491.1 MB, free: 5.344 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001448/0.192, allocations: 1.333 MB / 492.5 MB, free: 3.883 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/0.192, allocations: 0 / 492.5 MB, free: 3.883 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000539/0.1926, allocations: 339.3 kB / 492.8 MB, free: 3.508 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.834e-05/0.1927, allocations: 104.7 kB / 492.9 MB, free: 3.387 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.173e-05/0.1927, allocations: 12 kB / 492.9 MB, free: 3.375 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001545/0.1929, allocations: 0 / 492.9 MB, free: 3.375 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.363e-05/0.193, allocations: 12.05 kB / 492.9 MB, free: 3.363 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.025e-05/0.193, allocations: 8 kB / 492.9 MB, free: 3.355 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001949/0.1932, allocations: 148.4 kB / 493.1 MB, free: 3.211 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.1932, allocations: 0 / 493.1 MB, free: 3.211 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004871/0.1937, allocations: 51.84 kB / 493.1 MB, free: 3.16 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (inertia.w,constantTorque.phi) * 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 (13): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009269/0.1946, allocations: 1.071 MB / 494.2 MB, free: 2.043 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004904/0.1951, allocations: 132.3 kB / 494.3 MB, free: 1.914 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.1952, allocations: 0 / 494.3 MB, free: 1.914 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000235/0.1954, allocations: 59.89 kB / 494.4 MB, free: 1.855 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004008/0.1958, allocations: 31.94 kB / 494.4 MB, free: 1.824 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0034/0.1992, allocations: 2.994 MB / 497.4 MB, free: 14.71 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004025/0.1997, allocations: 0.744 MB / 498.1 MB, free: 13.95 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001447/0.1998, allocations: 63.34 kB / 498.2 MB, free: 13.88 MB / 346.7 MB Notification: Performance of SimCode: time 9.31e-07/0.1999, allocations: 0 / 498.2 MB, free: 13.88 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.635/2.834, allocations: 3.865 MB / 0.4903 GB, free: 10.01 MB / 346.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_Generic_Test_GeneratorTest_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_Generic_Test_GeneratorTest.fmu > PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe 2>&1)