Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.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/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/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: translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Sensor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1480,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Sensor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1480,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001289/0.001288, allocations: 97.33 kB / 16.5 MB, free: 6.641 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.002391/0.002391, allocations: 195.1 kB / 17.42 MB, free: 6.066 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.472/1.472, allocations: 222.9 MB / 241.1 MB, free: 15.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1775/0.1775, allocations: 38.03 MB / 329.3 MB, free: 9.027 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001836/0.001836, allocations: 64.52 kB / 398.1 MB, free: 34.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1469/0.1488, allocations: 58.07 MB / 456.1 MB, free: 8.531 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Sensor): time 0.007791/0.1566, allocations: 4.698 MB / 460.8 MB, free: 3.801 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001796/0.1585, allocations: 1.079 MB / 461.9 MB, free: 2.719 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002343/0.1587, allocations: 23.88 kB / 461.9 MB, free: 2.695 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002631/0.1591, allocations: 43.69 kB / 462 MB, free: 2.652 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005487/0.1596, allocations: 167.2 kB / 462.2 MB, free: 2.488 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002326/0.1599, allocations: 75.92 kB / 462.2 MB, free: 2.414 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006476/0.1605, allocations: 0.5646 MB / 462.8 MB, free: 1.848 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002436/0.1608, allocations: 101.7 kB / 462.9 MB, free: 1.746 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002426/0.161, allocations: 155.3 kB / 463 MB, free: 1.594 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003416/0.1614, allocations: 215.2 kB / 463.3 MB, free: 1.383 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.422e-05/0.1614, allocations: 16 kB / 463.3 MB, free: 1.367 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.061e-05/0.1615, allocations: 12 kB / 463.3 MB, free: 1.355 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001212/0.1616, allocations: 103.7 kB / 463.4 MB, free: 1.254 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001625/0.1618, allocations: 147.2 kB / 463.5 MB, free: 1.109 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002927/0.1621, allocations: 294.9 kB / 463.8 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.494e-06/0.1621, allocations: 3.984 kB / 463.8 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of FrontEnd: time 8.32e-07/0.1621, allocations: 4 kB / 463.8 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.612e-06/0.1621, allocations: 0 / 463.8 MB, free: 0.8125 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.001169/0.1633, allocations: 0.6283 MB / 464.4 MB, free: 140 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.223e-05/0.1633, allocations: 12.02 kB / 464.5 MB, free: 128 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.14e-05/0.1634, allocations: 32.56 kB / 464.5 MB, free: 96 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004549/0.1639, allocations: 323 kB / 464.8 MB, free: 15.74 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.819e-05/0.1639, allocations: 20.92 kB / 464.8 MB, free: 15.72 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.045e-05/0.164, allocations: 24.12 kB / 464.9 MB, free: 15.7 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004605/0.1644, allocations: 312.5 kB / 465.2 MB, free: 15.36 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.161e-05/0.1645, allocations: 7.984 kB / 465.2 MB, free: 15.35 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.681e-05/0.1645, allocations: 12 kB / 465.2 MB, free: 15.34 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.586e-06/0.1645, allocations: 4 kB / 465.2 MB, free: 15.34 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003517/0.1649, allocations: 217.5 kB / 465.4 MB, free: 15.12 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001488/0.1664, allocations: 1.348 MB / 466.7 MB, free: 13.68 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003318/0.1667, allocations: 145.2 kB / 466.9 MB, free: 13.52 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001036/0.1668, allocations: 57.75 kB / 466.9 MB, free: 13.46 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.622e-05/0.1668, allocations: 7.938 kB / 466.9 MB, free: 13.45 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.792e-05/0.1669, allocations: 30.56 kB / 467 MB, free: 13.41 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 1.603e-06/0.1669, allocations: 0 / 467 MB, free: 13.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.0008345/0.1677, allocations: 372.3 kB / 467.3 MB, free: 13.04 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.993e-05/0.1678, allocations: 81.11 kB / 467.4 MB, free: 12.94 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002447/0.168, allocations: 262.9 kB / 467.7 MB, free: 12.67 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.649e-05/0.1681, allocations: 25.7 kB / 467.7 MB, free: 12.64 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001272/0.1682, allocations: 203.5 kB / 467.9 MB, free: 12.43 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.486e-05/0.1682, allocations: 43.45 kB / 467.9 MB, free: 12.39 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001535/0.1684, allocations: 49.55 kB / 468 MB, free: 12.34 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001237/0.1685, allocations: 342.9 kB / 468.3 MB, free: 11.99 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.272e-05/0.1686, allocations: 55.97 kB / 468.4 MB, free: 11.94 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000174/0.1688, allocations: 153.6 kB / 468.5 MB, free: 11.74 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002761/0.1691, allocations: 228.6 kB / 468.8 MB, free: 11.47 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.363e-06/0.1691, allocations: 0 / 468.8 MB, free: 11.47 MB / 350.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0003522/0.1695, allocations: 245 kB / 469 MB, free: 11.23 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.987e-05/0.1695, allocations: 8 kB / 469 MB, free: 11.22 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.545e-06/0.1695, allocations: 7.938 kB / 469 MB, free: 11.21 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.499e-05/0.1695, allocations: 4 kB / 469 MB, free: 11.21 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001894/0.1697, allocations: 56.28 kB / 469.1 MB, free: 11.15 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.037e-05/0.1697, allocations: 11.94 kB / 469.1 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001166/0.1699, allocations: 4 kB / 469.1 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.974e-05/0.1699, allocations: 16 kB / 469.1 MB, free: 11.12 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (25): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001406/0.17, allocations: 161.6 kB / 469.3 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.143e-05/0.1701, allocations: 23.72 kB / 469.3 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003218/0.1704, allocations: 202.5 kB / 469.5 MB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.554e-06/0.1704, allocations: 0 / 469.5 MB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.094e-06/0.1704, allocations: 4 kB / 469.5 MB, free: 10.72 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.1705, allocations: 4 kB / 469.5 MB, free: 10.72 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006907/0.1712, allocations: 0.5577 MB / 470 MB, free: 10.1 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/0.1712, allocations: 0 / 470 MB, free: 10.1 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001404/0.1713, allocations: 35.92 kB / 470.1 MB, free: 10.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.524e-06/0.1713, allocations: 0 / 470.1 MB, free: 10.07 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.951e-05/0.1714, allocations: 8 kB / 470.1 MB, free: 10.06 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.527e-06/0.1714, allocations: 3.938 kB / 470.1 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.1714, allocations: 0 / 470.1 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000324/0.1717, allocations: 292.8 kB / 470.4 MB, free: 9.746 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.24e-05/0.1718, allocations: 100.7 kB / 470.5 MB, free: 9.629 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.872e-05/0.1718, allocations: 8 kB / 470.5 MB, free: 9.621 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001161/0.1719, allocations: 3.938 kB / 470.5 MB, free: 9.617 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.479e-05/0.172, allocations: 11.92 kB / 470.5 MB, free: 9.605 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.456e-05/0.172, allocations: 15.98 kB / 470.5 MB, free: 9.59 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001727/0.1722, allocations: 182 kB / 470.7 MB, free: 9.418 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1722, allocations: 0 / 470.7 MB, free: 9.418 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003149/0.1725, allocations: 52 kB / 470.7 MB, free: 9.367 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 simulation (17): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001423/0.1727, allocations: 95.25 kB / 470.8 MB, free: 9.266 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000311/0.173, allocations: 156.5 kB / 471 MB, free: 9.113 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.173, allocations: 4.062 kB / 471 MB, free: 9.109 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001138/0.1731, allocations: 67.91 kB / 471.1 MB, free: 9.043 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000501/0.1736, allocations: 61 kB / 471.1 MB, free: 8.984 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000973/0.1746, allocations: 0.6264 MB / 471.7 MB, free: 8.328 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004568/0.1751, allocations: 0.7911 MB / 472.5 MB, free: 7.508 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001468/0.1752, allocations: 38.27 kB / 472.6 MB, free: 7.465 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.936e-05/0.1753, allocations: 23.44 kB / 472.6 MB, free: 7.441 MB / 350.1 MB Notification: Performance of SimCode: time 5.31e-07/0.1753, allocations: 0 / 472.6 MB, free: 7.441 MB / 350.1 MB Notification: Performance of Templates: time 0.005384/0.1807, allocations: 2.123 MB / 474.7 MB, free: 5.344 MB / 350.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe 2>&1)