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.001802/0.001802, allocations: 107.9 kB / 16.45 MB, free: 6.438 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.002002/0.002002, allocations: 186.4 kB / 17.38 MB, free: 5.688 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.339/1.339, allocations: 222.9 MB / 241.1 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.0489/0.0489, allocations: 8.103 MB / 299.3 MB, free: 6.645 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001739/0.001739, allocations: 56.09 kB / 414 MB, free: 22.29 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08978/0.09153, allocations: 51.52 MB / 465.5 MB, free: 2.719 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Tests.VoltageRegulation2): time 0.002796/0.09436, allocations: 1.636 MB / 467.1 MB, free: 1.066 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001099/0.09548, allocations: 0.6118 MB / 467.7 MB, free: 464 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.995e-05/0.09555, allocations: 0 / 467.7 MB, free: 464 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001301/0.09569, allocations: 27.83 kB / 467.7 MB, free: 436 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000154/0.09586, allocations: 39.77 kB / 467.8 MB, free: 396 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003927/0.09626, allocations: 115.7 kB / 467.9 MB, free: 280 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002657/0.09653, allocations: 195.6 kB / 468.1 MB, free: 84 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.35e-05/0.09663, allocations: 13.11 kB / 468.1 MB, free: 72 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001326/0.09677, allocations: 75.75 kB / 468.2 MB, free: 15.99 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001736/0.09695, allocations: 87.66 kB / 468.3 MB, free: 15.91 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.386e-05/0.097, allocations: 12 kB / 468.3 MB, free: 15.9 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001565/0.09717, allocations: 83.92 kB / 468.4 MB, free: 15.82 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.598e-05/0.09725, allocations: 35.84 kB / 468.4 MB, free: 15.78 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001001/0.09736, allocations: 71.66 kB / 468.5 MB, free: 15.71 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002873/0.09765, allocations: 195.6 kB / 468.6 MB, free: 15.52 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.09767, allocations: 0 / 468.6 MB, free: 15.52 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.09767, allocations: 0 / 468.6 MB, free: 15.52 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.292e-06/0.09768, allocations: 0 / 468.6 MB, free: 15.52 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.0007633/0.09845, allocations: 0.5019 MB / 469.1 MB, free: 14.96 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.206e-05/0.0985, allocations: 15.89 kB / 469.2 MB, free: 14.94 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.377e-05/0.09855, allocations: 38.75 kB / 469.2 MB, free: 14.89 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.05e-05/0.09861, allocations: 16.84 kB / 469.2 MB, free: 14.88 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003374/0.09895, allocations: 228.1 kB / 469.4 MB, free: 14.62 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.888e-05/0.09898, allocations: 4.375 kB / 469.4 MB, free: 14.61 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.746e-05/0.09901, allocations: 12.12 kB / 469.5 MB, free: 14.6 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003448/0.09936, allocations: 129.6 kB / 469.6 MB, free: 14.47 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.077e-06/0.09938, allocations: 0 / 469.6 MB, free: 14.47 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.575e-05/0.0994, allocations: 4 kB / 469.6 MB, free: 14.46 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.668e-06/0.09941, allocations: 0 / 469.6 MB, free: 14.46 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002084/0.09963, allocations: 67.95 kB / 469.7 MB, free: 14.4 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006317/0.1003, allocations: 400.4 kB / 470 MB, free: 13.96 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000248/0.1005, allocations: 118.5 kB / 470.2 MB, free: 13.83 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002326/0.1008, allocations: 104.9 kB / 470.3 MB, free: 13.73 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.431e-05/0.1008, allocations: 4 kB / 470.3 MB, free: 13.72 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004603/0.1013, allocations: 326.4 kB / 470.6 MB, free: 13.36 MB / 350.1 MB Notification: Performance of pre-optimization done (n=19): time 1.373e-06/0.1013, allocations: 0 / 470.6 MB, free: 13.36 MB / 350.1 MB Notification: Performance of matching and sorting (n=19): time 0.0008502/0.1021, allocations: 388.7 kB / 471 MB, free: 12.96 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001412/0.1023, allocations: 225.6 kB / 471.2 MB, free: 12.7 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002092/0.1025, allocations: 203.5 kB / 471.4 MB, free: 12.49 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.986e-05/0.1025, allocations: 33.7 kB / 471.4 MB, free: 12.45 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.803e-05/0.1026, allocations: 104.1 kB / 471.5 MB, free: 12.34 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.546e-05/0.1027, allocations: 39.84 kB / 471.6 MB, free: 12.3 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.284e-05/0.1028, allocations: 37.7 kB / 471.6 MB, free: 12.26 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001562/0.1029, allocations: 338.8 kB / 471.9 MB, free: 11.92 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.324e-05/0.103, allocations: 47.98 kB / 472 MB, free: 11.88 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001132/0.1031, allocations: 73.69 kB / 472 MB, free: 11.8 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005607/0.1037, allocations: 466.6 kB / 472.5 MB, free: 11.29 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.1037, allocations: 0 / 472.5 MB, free: 11.29 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003736/0.1041, allocations: 272.9 kB / 472.8 MB, free: 11.01 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.226e-05/0.1042, allocations: 71.38 kB / 472.8 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.398e-06/0.1042, allocations: 0 / 472.8 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.312e-05/0.1042, allocations: 0 / 472.8 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.03e-05/0.1043, allocations: 12 kB / 472.8 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.24e-06/0.1043, allocations: 80 / 472.8 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002577/0.1046, allocations: 47.91 kB / 472.9 MB, free: 10.87 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.627e-05/0.1046, allocations: 11.98 kB / 472.9 MB, free: 10.86 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.0002591/0.1048, allocations: 232.3 kB / 473.1 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.162e-05/0.1049, allocations: 23.91 kB / 473.2 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.444e-05/0.1049, allocations: 17.86 kB / 473.2 MB, free: 10.56 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.147e-06/0.1049, allocations: 4 kB / 473.2 MB, free: 10.56 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.105, allocations: 4 kB / 473.2 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.875e-06/0.105, allocations: 0 / 473.2 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00025/0.1052, allocations: 265.3 kB / 473.4 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.1052, allocations: 0 / 473.4 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.81e-05/0.1053, allocations: 0 / 473.4 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.493e-06/0.1053, allocations: 0 / 473.4 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.336e-05/0.1053, allocations: 8 kB / 473.4 MB, free: 10.24 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.356e-06/0.1053, allocations: 3.984 kB / 473.5 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.1053, allocations: 0 / 473.5 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006894/0.106, allocations: 398.4 kB / 473.8 MB, free: 9.816 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001169/0.1061, allocations: 124.9 kB / 474 MB, free: 9.676 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.255e-05/0.1062, allocations: 12 kB / 474 MB, free: 9.664 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002581/0.1064, allocations: 43.95 kB / 474 MB, free: 9.621 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.359e-05/0.1065, allocations: 27.91 kB / 474 MB, free: 9.594 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.067e-05/0.1066, allocations: 11.98 kB / 474.1 MB, free: 9.582 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001429/0.1067, allocations: 159.5 kB / 474.2 MB, free: 9.426 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1067, allocations: 0 / 474.2 MB, free: 9.426 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002724/0.107, allocations: 71.83 kB / 474.3 MB, free: 9.355 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.001082/0.1081, allocations: 0.9506 MB / 475.2 MB, free: 8.367 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000583/0.1087, allocations: 398.6 kB / 475.6 MB, free: 7.953 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.1087, allocations: 4 kB / 475.6 MB, free: 7.949 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004612/0.1092, allocations: 410.7 kB / 476 MB, free: 7.523 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002233/0.1094, allocations: 23.94 kB / 476.1 MB, free: 7.5 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002751/0.1122, allocations: 2.279 MB / 478.3 MB, free: 5.125 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003517/0.1125, allocations: 0.7121 MB / 479 MB, free: 4.383 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.328e-05/0.1126, allocations: 20.41 kB / 479.1 MB, free: 4.363 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.539e-05/0.1127, allocations: 39.42 kB / 479.1 MB, free: 4.324 MB / 350.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1127, allocations: 4 kB / 479.1 MB, free: 4.32 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02563/0.1383, allocations: 4.871 MB / 484 MB, free: 15.53 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.84/7.979, allocations: 15.81 kB / 484 MB, free: 15.51 MB / 366.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 & python3 -m fmpy simulate --output-file PowerSysPro_PowerSysPro.Tests.VoltageRegulation2_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_VoltageRegulation2.fmu > PowerSysPro_PowerSysPro.Tests.VoltageRegulation2.pipe 2>&1)