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.00103/0.001034, allocations: 104.7 kB / 16.45 MB, free: 6.453 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.00104/0.00104, allocations: 186.4 kB / 17.38 MB, free: 5.691 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.226/1.226, allocations: 222.9 MB / 241.1 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04304/0.04304, allocations: 8.105 MB / 299.3 MB, free: 6.648 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001096/0.001096, allocations: 59.91 kB / 414 MB, free: 22.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07768/0.07878, allocations: 51.52 MB / 465.5 MB, free: 2.707 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Tests.VoltageRegulation1): time 0.002399/0.08122, allocations: 1.632 MB / 467.1 MB, free: 1.059 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009205/0.08216, allocations: 0.6118 MB / 467.7 MB, free: 456 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.447e-05/0.08222, allocations: 0 / 467.7 MB, free: 456 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001753/0.08241, allocations: 123.7 kB / 467.8 MB, free: 332 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002008/0.08262, allocations: 143.6 kB / 468 MB, free: 188 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003377/0.08297, allocations: 111.6 kB / 468.1 MB, free: 80 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002479/0.08323, allocations: 251.5 kB / 468.3 MB, free: 15.83 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.278e-05/0.08332, allocations: 9.125 kB / 468.3 MB, free: 15.82 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001246/0.08345, allocations: 119.6 kB / 468.5 MB, free: 15.71 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002197/0.08368, allocations: 199.5 kB / 468.7 MB, free: 15.51 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.733e-05/0.08371, allocations: 12 kB / 468.7 MB, free: 15.5 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001305/0.08385, allocations: 91.92 kB / 468.8 MB, free: 15.41 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.542e-05/0.08395, allocations: 99.72 kB / 468.9 MB, free: 15.31 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001259/0.08408, allocations: 135 kB / 469 MB, free: 15.18 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003115/0.0844, allocations: 326.9 kB / 469.3 MB, free: 14.86 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.08441, allocations: 0 / 469.3 MB, free: 14.86 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.08442, allocations: 0 / 469.3 MB, free: 14.86 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.293e-06/0.08443, allocations: 0 / 469.3 MB, free: 14.86 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0008247/0.08526, allocations: 0.7266 MB / 470 MB, free: 14.07 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.255e-05/0.0853, allocations: 15.89 kB / 470 MB, free: 14.05 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.118e-05/0.08535, allocations: 42.73 kB / 470.1 MB, free: 14 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.635e-05/0.08542, allocations: 44.66 kB / 470.1 MB, free: 13.96 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004289/0.08585, allocations: 374.5 kB / 470.5 MB, free: 13.55 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.378e-05/0.08587, allocations: 4.375 kB / 470.5 MB, free: 13.55 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.557e-05/0.08591, allocations: 16.12 kB / 470.5 MB, free: 13.54 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003207/0.08623, allocations: 165.6 kB / 470.7 MB, free: 13.37 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.626e-06/0.08625, allocations: 7.922 kB / 470.7 MB, free: 13.36 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.716e-05/0.08627, allocations: 7.938 kB / 470.7 MB, free: 13.35 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.017e-06/0.08628, allocations: 0 / 470.7 MB, free: 13.35 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002126/0.0865, allocations: 115.9 kB / 470.8 MB, free: 13.24 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006598/0.08717, allocations: 0.4965 MB / 471.3 MB, free: 12.69 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002603/0.08744, allocations: 162.5 kB / 471.5 MB, free: 12.52 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002212/0.08767, allocations: 140.9 kB / 471.6 MB, free: 12.38 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.152e-06/0.08768, allocations: 4 kB / 471.6 MB, free: 12.38 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004062/0.08809, allocations: 367.7 kB / 472 MB, free: 11.98 MB / 350.1 MB Notification: Performance of pre-optimization done (n=19): time 1.413e-06/0.08811, allocations: 0 / 472 MB, free: 11.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=19): time 0.000876/0.08899, allocations: 0.5733 MB / 472.5 MB, free: 11.39 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.793e-05/0.08909, allocations: 221.6 kB / 472.8 MB, free: 11.12 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005406/0.08964, allocations: 0.5604 MB / 473.3 MB, free: 10.55 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.419e-05/0.08967, allocations: 29.7 kB / 473.3 MB, free: 10.51 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001294/0.08981, allocations: 204 kB / 473.5 MB, free: 10.31 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.296e-05/0.08986, allocations: 51.72 kB / 473.6 MB, free: 10.26 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.08e-05/0.08992, allocations: 37.7 kB / 473.6 MB, free: 10.21 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.00013/0.09006, allocations: 354.7 kB / 474 MB, free: 9.859 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001102/0.09018, allocations: 99.95 kB / 474.1 MB, free: 9.762 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001284/0.09031, allocations: 121.7 kB / 474.2 MB, free: 9.637 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005698/0.09089, allocations: 0.6103 MB / 474.8 MB, free: 8.977 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.0909, allocations: 4.031 kB / 474.8 MB, free: 8.973 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004251/0.09133, allocations: 420.7 kB / 475.2 MB, free: 8.543 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.343e-05/0.09139, allocations: 75.33 kB / 475.3 MB, free: 8.457 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.308e-06/0.0914, allocations: 0 / 475.3 MB, free: 8.457 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.081e-05/0.09142, allocations: 0 / 475.3 MB, free: 8.457 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.231e-05/0.09148, allocations: 11.98 kB / 475.3 MB, free: 8.445 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.879e-06/0.09149, allocations: 0 / 475.3 MB, free: 8.445 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002625/0.09176, allocations: 47.95 kB / 475.3 MB, free: 8.398 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.831e-05/0.09179, allocations: 8 kB / 475.4 MB, free: 8.391 MB / 350.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.0002648/0.09206, allocations: 284.9 kB / 475.6 MB, free: 8.09 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.504e-05/0.09213, allocations: 47.72 kB / 475.7 MB, free: 8.043 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.766e-05/0.09218, allocations: 51.91 kB / 475.7 MB, free: 7.996 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.844e-06/0.09219, allocations: 3.938 kB / 475.7 MB, free: 7.992 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.356e-06/0.0922, allocations: 0 / 475.7 MB, free: 7.992 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.09221, allocations: 4 kB / 475.7 MB, free: 7.988 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002539/0.09246, allocations: 353.2 kB / 476.1 MB, free: 7.594 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.09247, allocations: 0 / 476.1 MB, free: 7.594 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.088e-05/0.0925, allocations: 4 kB / 476.1 MB, free: 7.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.513e-06/0.0925, allocations: 3.938 kB / 476.1 MB, free: 7.586 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.997e-05/0.09254, allocations: 11.98 kB / 476.1 MB, free: 7.574 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.09254, allocations: 0 / 476.1 MB, free: 7.574 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.09255, allocations: 0 / 476.1 MB, free: 7.574 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000698/0.09325, allocations: 0.5379 MB / 476.6 MB, free: 7.008 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000173/0.09344, allocations: 152.8 kB / 476.8 MB, free: 6.84 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.168e-05/0.09351, allocations: 12 kB / 476.8 MB, free: 6.828 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000264/0.09378, allocations: 51.94 kB / 476.9 MB, free: 6.777 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.134e-05/0.09385, allocations: 23.95 kB / 476.9 MB, free: 6.754 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.473e-05/0.09389, allocations: 12 kB / 476.9 MB, free: 6.742 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003921/0.09428, allocations: 419 kB / 477.3 MB, free: 6.332 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.09429, allocations: 0 / 477.3 MB, free: 6.332 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002828/0.09458, allocations: 79.88 kB / 477.4 MB, free: 6.254 MB / 350.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.001041/0.09563, allocations: 1.112 MB / 478.5 MB, free: 5.102 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005347/0.09618, allocations: 482.5 kB / 479 MB, free: 4.605 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.09619, allocations: 0 / 479 MB, free: 4.605 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004137/0.09661, allocations: 450.7 kB / 479.4 MB, free: 4.141 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002645/0.09688, allocations: 41.02 kB / 479.4 MB, free: 4.102 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004789/0.1017, allocations: 4.918 MB / 484.4 MB, free: 15.09 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003316/0.102, allocations: 0.8111 MB / 485.2 MB, free: 14.25 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 7.665e-05/0.1021, allocations: 42.11 kB / 485.2 MB, free: 14.2 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001198/0.1022, allocations: 119.4 kB / 485.3 MB, free: 14.09 MB / 366.1 MB Notification: Performance of SimCode: time 2.8e-07/0.1022, allocations: 0 / 485.3 MB, free: 14.09 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04086/0.1431, allocations: 8.238 MB / 493.6 MB, free: 5.93 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.736/7.879, allocations: 14.83 kB / 493.6 MB, free: 5.918 MB / 366.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 & python3 -m fmpy simulate --output-file PowerSysPro_PowerSysPro.Tests.VoltageRegulation1_res.csv --start-time 0 --stop-time 350 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.14 PowerSysPro_PowerSysPro_Tests_VoltageRegulation1.fmu > PowerSysPro_PowerSysPro.Tests.VoltageRegulation1.pipe 2>&1)