Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Tests.VoltageRegulation2.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.VoltageRegulation2,fileNamePrefix="PowerSysPro_PowerSysPro_Tests_VoltageRegulation2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Tests.VoltageRegulation2,fileNamePrefix="PowerSysPro_PowerSysPro_Tests_VoltageRegulation2",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.001103/0.001103, allocations: 105.9 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.001092/0.001092, allocations: 191.2 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.247/1.247, allocations: 222.9 MB / 240.9 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.03941/0.03941, allocations: 8.094 MB / 299.2 MB, free: 6.707 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001363/0.001363, allocations: 59.91 kB / 361.8 MB, free: 8.023 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1641/0.1654, allocations: 51.51 MB / 413.3 MB, free: 25.57 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Tests.VoltageRegulation2): time 0.001956/0.1674, allocations: 1.618 MB / 415 MB, free: 23.93 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007128/0.1681, allocations: 0.618 MB / 415.6 MB, free: 23.32 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.755e-05/0.1682, allocations: 0 / 415.6 MB, free: 23.32 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 8.879e-05/0.1683, allocations: 23.84 kB / 415.6 MB, free: 23.29 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001129/0.1684, allocations: 39.77 kB / 415.6 MB, free: 23.25 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002807/0.1687, allocations: 111.7 kB / 415.8 MB, free: 23.14 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001421/0.1689, allocations: 195.5 kB / 415.9 MB, free: 22.95 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.506e-05/0.169, allocations: 20.95 kB / 416 MB, free: 22.93 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.162e-05/0.169, allocations: 71.77 kB / 416 MB, free: 22.86 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001063/0.1691, allocations: 87.7 kB / 416.1 MB, free: 22.77 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.613e-05/0.1692, allocations: 12 kB / 416.1 MB, free: 22.76 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001031/0.1693, allocations: 87.92 kB / 416.2 MB, free: 22.68 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.043e-05/0.1693, allocations: 31.84 kB / 416.2 MB, free: 22.64 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.9e-05/0.1694, allocations: 67.66 kB / 416.3 MB, free: 22.58 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001644/0.1696, allocations: 193.7 kB / 416.5 MB, free: 22.39 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.535e-06/0.1696, allocations: 0 / 416.5 MB, free: 22.39 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.41e-07/0.1696, allocations: 0 / 416.5 MB, free: 22.39 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.938e-06/0.1696, allocations: 0 / 416.5 MB, free: 22.39 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.0004427/0.1701, allocations: 494.2 kB / 417 MB, free: 21.85 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.647e-05/0.1701, allocations: 15.89 kB / 417 MB, free: 21.83 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.073e-05/0.1701, allocations: 50.73 kB / 417.1 MB, free: 21.77 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.118e-05/0.1702, allocations: 16.75 kB / 417.1 MB, free: 21.76 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001625/0.1703, allocations: 232 kB / 417.3 MB, free: 21.49 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.324e-05/0.1704, allocations: 4.375 kB / 417.3 MB, free: 21.49 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.887e-05/0.1704, allocations: 8.125 kB / 417.3 MB, free: 21.48 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002526/0.1706, allocations: 133.5 kB / 417.4 MB, free: 21.34 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.224e-06/0.1707, allocations: 0 / 417.4 MB, free: 21.34 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.536e-05/0.1707, allocations: 7.938 kB / 417.4 MB, free: 21.34 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.246e-06/0.1707, allocations: 0 / 417.4 MB, free: 21.34 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001704/0.1709, allocations: 71.95 kB / 417.5 MB, free: 21.27 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004093/0.1713, allocations: 392.5 kB / 417.9 MB, free: 20.83 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001839/0.1715, allocations: 118.5 kB / 418 MB, free: 20.71 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001641/0.1717, allocations: 109 kB / 418.1 MB, free: 20.6 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.897e-06/0.1717, allocations: 4 kB / 418.1 MB, free: 20.59 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003027/0.172, allocations: 322.6 kB / 418.4 MB, free: 20.24 MB / 302.1 MB Notification: Performance of pre-optimization done (n=19): time 1.282e-06/0.172, allocations: 0 / 418.4 MB, free: 20.24 MB / 302.1 MB Notification: Performance of matching and sorting (n=19): time 0.0006491/0.1726, allocations: 384.6 kB / 418.8 MB, free: 19.84 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.827e-05/0.1727, allocations: 225.6 kB / 419 MB, free: 19.57 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001212/0.1728, allocations: 194.9 kB / 419.2 MB, free: 19.38 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.645e-05/0.1729, allocations: 33.69 kB / 419.3 MB, free: 19.34 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.116e-05/0.1729, allocations: 104.1 kB / 419.4 MB, free: 19.23 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.016e-05/0.1729, allocations: 39.52 kB / 419.4 MB, free: 19.19 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.911e-05/0.173, allocations: 37.7 kB / 419.4 MB, free: 19.15 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 3.904e-05/0.173, allocations: 334.8 kB / 419.8 MB, free: 18.81 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.986e-05/0.1731, allocations: 47.98 kB / 419.8 MB, free: 18.77 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.721e-05/0.1732, allocations: 75.31 kB / 419.9 MB, free: 18.69 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000349/0.1735, allocations: 465.7 kB / 420.3 MB, free: 18.18 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.1735, allocations: 4.031 kB / 420.3 MB, free: 18.18 MB / 302.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002497/0.1738, allocations: 268.7 kB / 420.6 MB, free: 17.9 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.866e-05/0.1738, allocations: 71.39 kB / 420.7 MB, free: 17.82 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.346e-06/0.1738, allocations: 0 / 420.7 MB, free: 17.82 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.608e-06/0.1739, allocations: 0 / 420.7 MB, free: 17.82 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.408e-05/0.1739, allocations: 11.98 kB / 420.7 MB, free: 17.8 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.797e-06/0.1739, allocations: 0 / 420.7 MB, free: 17.8 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002378/0.1742, allocations: 56.02 kB / 420.7 MB, free: 17.75 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.509e-05/0.1742, allocations: 8 kB / 420.7 MB, free: 17.74 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.0001436/0.1743, allocations: 229.9 kB / 421 MB, free: 17.5 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.175e-05/0.1744, allocations: 19.81 kB / 421 MB, free: 17.48 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.937e-05/0.1744, allocations: 17.88 kB / 421 MB, free: 17.46 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.282e-06/0.1744, allocations: 0 / 421 MB, free: 17.46 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.988e-06/0.1744, allocations: 11.98 kB / 421 MB, free: 17.45 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.234e-06/0.1744, allocations: 0 / 421 MB, free: 17.45 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001181/0.1746, allocations: 257.3 kB / 421.3 MB, free: 17.14 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.1746, allocations: 4 kB / 421.3 MB, free: 17.14 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.831e-05/0.1746, allocations: 3.984 kB / 421.3 MB, free: 17.14 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.402e-06/0.1746, allocations: 0 / 421.3 MB, free: 17.14 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.879e-05/0.1746, allocations: 12 kB / 421.3 MB, free: 17.12 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.133e-06/0.1746, allocations: 0 / 421.3 MB, free: 17.12 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.1746, allocations: 0 / 421.3 MB, free: 17.12 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004977/0.1751, allocations: 403.1 kB / 421.7 MB, free: 16.7 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.436e-05/0.1752, allocations: 120.8 kB / 421.8 MB, free: 16.57 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.683e-05/0.1753, allocations: 16 kB / 421.8 MB, free: 16.55 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002348/0.1755, allocations: 43.94 kB / 421.9 MB, free: 16.51 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.927e-05/0.1756, allocations: 23.97 kB / 421.9 MB, free: 16.48 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.317e-05/0.1756, allocations: 19.98 kB / 421.9 MB, free: 16.46 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.939e-05/0.1757, allocations: 148.2 kB / 422 MB, free: 16.32 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1757, allocations: 0 / 422 MB, free: 16.32 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000236/0.1759, allocations: 71.92 kB / 422.1 MB, free: 16.25 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.0006924/0.1766, allocations: 0.9635 MB / 423.1 MB, free: 15.25 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003833/0.177, allocations: 386.7 kB / 423.5 MB, free: 14.84 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/0.177, allocations: 0 / 423.5 MB, free: 14.84 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002849/0.1773, allocations: 410.7 kB / 423.9 MB, free: 14.42 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002033/0.1775, allocations: 24.31 kB / 423.9 MB, free: 14.39 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001723/0.1793, allocations: 2.253 MB / 426.1 MB, free: 12.04 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001023/0.1794, allocations: 0.7237 MB / 426.9 MB, free: 11.29 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.288e-05/0.1794, allocations: 8.438 kB / 426.9 MB, free: 11.28 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.371e-05/0.1795, allocations: 43.42 kB / 426.9 MB, free: 11.24 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1795, allocations: 0 / 426.9 MB, free: 11.24 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5874/0.7668, allocations: 4.828 MB / 431.7 MB, free: 6.48 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.08/11.84, allocations: 20.58 kB / 431.8 MB, free: 6.461 MB / 302.1 MB (rm -f PowerSysPro_PowerSysPro.Tests.VoltageRegulation2.pipe ; mkfifo PowerSysPro_PowerSysPro.Tests.VoltageRegulation2.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Tests.VoltageRegulation2.pipe >> ../files/PowerSysPro_PowerSysPro.Tests.VoltageRegulation2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSysPro_PowerSysPro_Tests_VoltageRegulation2_fmu --startTime=0 --stopTime=350 --timeout=50 --tolerance=1e-06 PowerSysPro_PowerSysPro_Tests_VoltageRegulation2.fmu > PowerSysPro_PowerSysPro.Tests.VoltageRegulation2.pipe 2>&1)