Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Tests.VoltageRegulation1.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/PowerSysPro 2.3.1-master/package.mo", uses=false) Using package PowerSysPro with version 2.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-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(PowerSysPro.Tests.VoltageRegulation1,fileNamePrefix="PowerSysPro_PowerSysPro_Tests_VoltageRegulation1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Tests.VoltageRegulation1,fileNamePrefix="PowerSysPro_PowerSysPro_Tests_VoltageRegulation1",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.001237/0.001237, allocations: 102.4 kB / 16.31 MB, free: 5.879 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.001411/0.001411, allocations: 186.5 kB / 17.24 MB, free: 5.539 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.285/1.285, allocations: 222.9 MB / 240.9 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.03902/0.03902, allocations: 8.097 MB / 299.2 MB, free: 6.699 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001191/0.001191, allocations: 59.91 kB / 361.8 MB, free: 8.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1742/0.1754, allocations: 51.52 MB / 413.4 MB, free: 25.56 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Tests.VoltageRegulation1): time 0.002059/0.1775, allocations: 1.618 MB / 415 MB, free: 23.93 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007165/0.1782, allocations: 0.6219 MB / 415.6 MB, free: 23.3 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.049e-05/0.1783, allocations: 0 / 415.6 MB, free: 23.3 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001325/0.1784, allocations: 119.7 kB / 415.7 MB, free: 23.19 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001593/0.1786, allocations: 139.5 kB / 415.8 MB, free: 23.05 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002823/0.1789, allocations: 111.7 kB / 416 MB, free: 22.94 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00016/0.1791, allocations: 235.5 kB / 416.2 MB, free: 22.71 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.913e-05/0.1791, allocations: 20.97 kB / 416.2 MB, free: 22.69 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.708e-05/0.1792, allocations: 119.6 kB / 416.3 MB, free: 22.57 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001676/0.1794, allocations: 195.6 kB / 416.5 MB, free: 22.38 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.055e-05/0.1795, allocations: 12 kB / 416.5 MB, free: 22.37 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001086/0.1796, allocations: 83.94 kB / 416.6 MB, free: 22.29 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.573e-05/0.1797, allocations: 111.5 kB / 416.7 MB, free: 22.18 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.962e-05/0.1797, allocations: 135 kB / 416.8 MB, free: 22.04 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002105/0.18, allocations: 321.2 kB / 417.2 MB, free: 21.73 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.595e-06/0.18, allocations: 0 / 417.2 MB, free: 21.73 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.18, allocations: 4 kB / 417.2 MB, free: 21.73 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.819e-06/0.18, allocations: 0 / 417.2 MB, free: 21.73 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0006041/0.1806, allocations: 0.6996 MB / 417.9 MB, free: 20.96 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.697e-05/0.1806, allocations: 11.89 kB / 417.9 MB, free: 20.95 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.919e-05/0.1807, allocations: 42.73 kB / 417.9 MB, free: 20.9 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.762e-05/0.1807, allocations: 44.38 kB / 418 MB, free: 20.86 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002859/0.181, allocations: 370.1 kB / 418.3 MB, free: 20.46 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.403e-05/0.181, allocations: 8.375 kB / 418.3 MB, free: 20.45 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.204e-05/0.1811, allocations: 24.05 kB / 418.4 MB, free: 20.43 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000282/0.1814, allocations: 165.6 kB / 418.5 MB, free: 20.26 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.773e-06/0.1814, allocations: 0 / 418.5 MB, free: 20.26 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.62e-05/0.1814, allocations: 3.984 kB / 418.5 MB, free: 20.25 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.148e-06/0.1814, allocations: 4 kB / 418.5 MB, free: 20.25 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001884/0.1816, allocations: 115.9 kB / 418.6 MB, free: 20.14 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000511/0.1821, allocations: 0.5004 MB / 419.1 MB, free: 19.59 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002079/0.1823, allocations: 158.5 kB / 419.3 MB, free: 19.42 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001853/0.1825, allocations: 148.9 kB / 419.4 MB, free: 19.27 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.596e-06/0.1825, allocations: 0 / 419.4 MB, free: 19.27 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003296/0.1829, allocations: 363.7 kB / 419.8 MB, free: 18.88 MB / 302.1 MB Notification: Performance of pre-optimization done (n=19): time 1.292e-06/0.1829, allocations: 4 kB / 419.8 MB, free: 18.87 MB / 302.1 MB Notification: Performance of matching and sorting (n=19): time 0.0007523/0.1836, allocations: 0.5667 MB / 420.4 MB, free: 18.29 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.478e-05/0.1837, allocations: 221.6 kB / 420.6 MB, free: 18.02 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004002/0.1841, allocations: 0.5604 MB / 421.1 MB, free: 17.45 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.7e-05/0.1841, allocations: 29.7 kB / 421.2 MB, free: 17.41 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.338e-05/0.1842, allocations: 196.1 kB / 421.4 MB, free: 17.22 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.286e-05/0.1843, allocations: 43.5 kB / 421.4 MB, free: 17.18 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.155e-05/0.1843, allocations: 37.7 kB / 421.4 MB, free: 17.13 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.343e-05/0.1844, allocations: 362.7 kB / 421.8 MB, free: 16.77 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.035e-05/0.1845, allocations: 103.9 kB / 421.9 MB, free: 16.67 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.59e-05/0.1846, allocations: 117.3 kB / 422 MB, free: 16.55 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004238/0.185, allocations: 0.6144 MB / 422.6 MB, free: 15.89 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.432e-06/0.185, allocations: 0 / 422.6 MB, free: 15.89 MB / 302.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003257/0.1853, allocations: 433.9 kB / 423 MB, free: 15.45 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.05e-05/0.1854, allocations: 63.39 kB / 423.1 MB, free: 15.37 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.346e-06/0.1854, allocations: 0 / 423.1 MB, free: 15.37 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.06e-05/0.1854, allocations: 8.031 kB / 423.1 MB, free: 15.36 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.594e-05/0.1855, allocations: 19.98 kB / 423.1 MB, free: 15.34 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.727e-06/0.1855, allocations: 0 / 423.1 MB, free: 15.34 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002593/0.1857, allocations: 39.95 kB / 423.2 MB, free: 15.3 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.528e-05/0.1858, allocations: 4 kB / 423.2 MB, free: 15.3 MB / 302.1 MB Warning: Assuming fixed start value for the following 3 variables: tapChanger.tap:DISCRETE(start = tapChanger.startTap fixed = true ) "Current tap position" type: Integer tapChanger.furtherTapChangeTimeout:DISCRETE(start = tapChanger.nextTapChangeTimeout unit = "s" fixed = true protected = true ) "Time lag between the first change and the following tap" type: Real tapChanger.abnormalUTime:DISCRETE(unit = "s" fixed = true protected = true ) "Time when the signal U went out its normal range" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 20 ($PRE.tapChanger.tap,$PRE.tapChanger.furtherTapChangeTimeout,$PRE.tapChanger.abnormalUTime,tapChanger.furtherTapChangeTimeout,tapChanger.increaseEvent,tapChanger.decreaseEvent,tapChanger.normalU,tapChanger.abnormalUTime,tapChanger.tap,voltage.nextEventScaled,voltage.nextEvent,$PRE.voltage.nextEvent,voltage.last,voltage.b,voltage.a,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 2 * 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.0001946/0.186, allocations: 295.9 kB / 423.5 MB, free: 14.99 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.002e-05/0.186, allocations: 47.44 kB / 423.5 MB, free: 14.94 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.672e-05/0.1861, allocations: 47.91 kB / 423.6 MB, free: 14.89 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.1861, allocations: 0 / 423.6 MB, free: 14.89 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.775e-06/0.1861, allocations: 0 / 423.6 MB, free: 14.89 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.114e-06/0.1861, allocations: 0 / 423.6 MB, free: 14.89 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001718/0.1863, allocations: 353.2 kB / 423.9 MB, free: 14.5 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.1863, allocations: 4 kB / 423.9 MB, free: 14.5 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.887e-05/0.1863, allocations: 4 kB / 423.9 MB, free: 14.49 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.483e-06/0.1863, allocations: 0 / 423.9 MB, free: 14.49 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.071e-05/0.1863, allocations: 11.98 kB / 423.9 MB, free: 14.48 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.1863, allocations: 0 / 423.9 MB, free: 14.48 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.1863, allocations: 0 / 423.9 MB, free: 14.48 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005809/0.1869, allocations: 0.5426 MB / 424.5 MB, free: 13.91 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001125/0.187, allocations: 148.6 kB / 424.6 MB, free: 13.74 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.15e-05/0.1871, allocations: 16 kB / 424.6 MB, free: 13.73 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002804/0.1874, allocations: 47.94 kB / 424.7 MB, free: 13.68 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.461e-05/0.1875, allocations: 23.97 kB / 424.7 MB, free: 13.66 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.377e-05/0.1875, allocations: 12 kB / 424.7 MB, free: 13.64 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003029/0.1878, allocations: 415 kB / 425.1 MB, free: 13.24 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1878, allocations: 0 / 425.1 MB, free: 13.24 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002551/0.1881, allocations: 76.06 kB / 425.2 MB, free: 13.16 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 16 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,voltage.a,voltage.b,voltage.last,voltage.nextEvent,voltage.nextEventScaled,tapChanger.tap,tapChanger.abnormalUTime,tapChanger.normalU,tapChanger.decreaseEvent,tapChanger.increaseEvent,tapChanger.furtherTapChangeTimeout) * Number of discrete states: 16 (tapChanger.tap,tapChanger.furtherTapChangeTimeout,$whenCondition4,$whenCondition3,tapChanger.abnormalUTime,$whenCondition2,$whenCondition1,tapChanger.decreaseEvent,tapChanger.increaseEvent,tapChanger.normalU,voltage.nextEvent,voltage.last,voltage.nextEventScaled,voltage.b,voltage.a,$whenCondition5) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 2 * 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 Backend phase and start with SimCode phase: time 0.0007789/0.1889, allocations: 1.119 MB / 426.3 MB, free: 12 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004261/0.1893, allocations: 474.6 kB / 426.8 MB, free: 11.52 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.1893, allocations: 0 / 426.8 MB, free: 11.52 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003103/0.1896, allocations: 450.7 kB / 427.2 MB, free: 11.05 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002349/0.1899, allocations: 37.95 kB / 427.3 MB, free: 11.01 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003701/0.1936, allocations: 4.955 MB / 432.2 MB, free: 5.957 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001601/0.1938, allocations: 0.8072 MB / 433 MB, free: 5.125 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.552e-05/0.1938, allocations: 45.92 kB / 433.1 MB, free: 5.082 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.096e-05/0.1939, allocations: 119.4 kB / 433.2 MB, free: 4.965 MB / 302.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1939, allocations: 0 / 433.2 MB, free: 4.965 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9817/1.176, allocations: 8.133 MB / 441.3 MB, free: 12.9 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.988/11.16, allocations: 12.47 kB / 441.3 MB, free: 12.89 MB / 318.1 MB (rm -f PowerSysPro_PowerSysPro.Tests.VoltageRegulation1.pipe ; mkfifo PowerSysPro_PowerSysPro.Tests.VoltageRegulation1.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Tests.VoltageRegulation1.pipe >> ../files/PowerSysPro_PowerSysPro.Tests.VoltageRegulation1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Tests_VoltageRegulation1_fmu --startTime=0 --stopTime=350 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Tests_VoltageRegulation1.fmu > PowerSysPro_PowerSysPro.Tests.VoltageRegulation1.pipe 2>&1)