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.001501/0.001502, allocations: 102.1 kB / 16.45 MB, free: 5.965 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.001604/0.001604, allocations: 194.3 kB / 17.39 MB, free: 5.531 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.338/1.338, allocations: 222.9 MB / 241.1 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.0527/0.0527, allocations: 8.109 MB / 299.3 MB, free: 6.605 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001724/0.001724, allocations: 59.91 kB / 414 MB, free: 22.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08719/0.08893, allocations: 51.51 MB / 465.5 MB, free: 2.684 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Tests.VoltageRegulation1): time 0.002813/0.09178, allocations: 1.645 MB / 467.1 MB, free: 1.023 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001112/0.09291, allocations: 0.6118 MB / 467.7 MB, free: 420 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.406e-05/0.09299, allocations: 3.938 kB / 467.7 MB, free: 416 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002145/0.09321, allocations: 123.8 kB / 467.8 MB, free: 292 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002509/0.09348, allocations: 139.5 kB / 468 MB, free: 152 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003862/0.09388, allocations: 111.7 kB / 468.1 MB, free: 40 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003062/0.0942, allocations: 239.5 kB / 468.3 MB, free: 15.8 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.191e-05/0.09429, allocations: 13.11 kB / 468.3 MB, free: 15.79 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001444/0.09444, allocations: 115.6 kB / 468.4 MB, free: 15.68 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002736/0.09472, allocations: 203.5 kB / 468.6 MB, free: 15.48 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.643e-05/0.09477, allocations: 12 kB / 468.7 MB, free: 15.47 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001579/0.09493, allocations: 91.86 kB / 468.7 MB, free: 15.38 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001232/0.09506, allocations: 95.72 kB / 468.8 MB, free: 15.29 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001442/0.09521, allocations: 139 kB / 469 MB, free: 15.15 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000384/0.0956, allocations: 322.3 kB / 469.3 MB, free: 14.84 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.069e-06/0.09561, allocations: 4 kB / 469.3 MB, free: 14.83 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.09562, allocations: 4 kB / 469.3 MB, free: 14.83 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.67e-06/0.09563, allocations: 0 / 469.3 MB, free: 14.83 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.0009441/0.09658, allocations: 0.7189 MB / 470 MB, free: 14.05 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.811e-05/0.09663, allocations: 15.89 kB / 470 MB, free: 14.03 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.313e-05/0.09669, allocations: 42.73 kB / 470.1 MB, free: 13.98 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.289e-05/0.09678, allocations: 44.66 kB / 470.1 MB, free: 13.94 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004966/0.09728, allocations: 374.5 kB / 470.5 MB, free: 13.53 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.902e-05/0.09731, allocations: 4.375 kB / 470.5 MB, free: 13.53 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.229e-05/0.09733, allocations: 12.12 kB / 470.5 MB, free: 13.52 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003922/0.09773, allocations: 185.5 kB / 470.7 MB, free: 13.33 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.405e-06/0.09775, allocations: 0 / 470.7 MB, free: 13.33 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.573e-05/0.09777, allocations: 0 / 470.7 MB, free: 13.33 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.715e-06/0.09779, allocations: 11.91 kB / 470.7 MB, free: 13.32 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002437/0.09804, allocations: 115.9 kB / 470.8 MB, free: 13.2 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007502/0.0988, allocations: 0.4966 MB / 471.3 MB, free: 12.66 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002895/0.0991, allocations: 158.6 kB / 471.5 MB, free: 12.49 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002668/0.09937, allocations: 148.8 kB / 471.6 MB, free: 12.34 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.273e-05/0.09939, allocations: 0 / 471.6 MB, free: 12.34 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004951/0.09989, allocations: 363.7 kB / 472 MB, free: 11.95 MB / 350.1 MB Notification: Performance of pre-optimization done (n=19): time 1.433e-06/0.09991, allocations: 0 / 472 MB, free: 11.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=19): time 0.001038/0.101, allocations: 0.5733 MB / 472.5 MB, free: 11.36 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001507/0.1011, allocations: 221.6 kB / 472.8 MB, free: 11.09 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006527/0.1018, allocations: 0.5565 MB / 473.3 MB, free: 10.52 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.933e-05/0.1018, allocations: 33.7 kB / 473.3 MB, free: 10.48 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001573/0.102, allocations: 196.1 kB / 473.5 MB, free: 10.29 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.889e-05/0.102, allocations: 51.7 kB / 473.6 MB, free: 10.23 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.135e-05/0.1021, allocations: 37.7 kB / 473.6 MB, free: 10.19 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001755/0.1023, allocations: 362.7 kB / 474 MB, free: 9.828 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001369/0.1025, allocations: 99.95 kB / 474.1 MB, free: 9.73 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001453/0.1026, allocations: 117.6 kB / 474.2 MB, free: 9.609 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006945/0.1033, allocations: 0.6142 MB / 474.8 MB, free: 8.945 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.1033, allocations: 0 / 474.8 MB, free: 8.945 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000502/0.1038, allocations: 424.7 kB / 475.2 MB, free: 8.512 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.078e-05/0.1039, allocations: 67.39 kB / 475.3 MB, free: 8.434 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.488e-06/0.1039, allocations: 0 / 475.3 MB, free: 8.434 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.476e-05/0.1039, allocations: 4 kB / 475.3 MB, free: 8.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.581e-05/0.104, allocations: 19.95 kB / 475.3 MB, free: 8.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.07e-06/0.104, allocations: 0 / 475.3 MB, free: 8.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002696/0.1043, allocations: 39.95 kB / 475.3 MB, free: 8.371 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.955e-05/0.1043, allocations: 4 kB / 475.3 MB, free: 8.367 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.0003333/0.1047, allocations: 296.5 kB / 475.6 MB, free: 8.059 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.698e-05/0.1047, allocations: 47.72 kB / 475.7 MB, free: 8.012 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.831e-05/0.1048, allocations: 51.91 kB / 475.7 MB, free: 7.965 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.108e-06/0.1048, allocations: 0 / 475.7 MB, free: 7.965 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.489e-06/0.1048, allocations: 3.938 kB / 475.7 MB, free: 7.961 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.535e-06/0.1048, allocations: 0 / 475.7 MB, free: 7.961 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003352/0.1052, allocations: 349.2 kB / 476.1 MB, free: 7.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.1052, allocations: 3.938 kB / 476.1 MB, free: 7.566 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.099e-05/0.1052, allocations: 8 kB / 476.1 MB, free: 7.559 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.483e-06/0.1052, allocations: 0 / 476.1 MB, free: 7.559 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.82e-05/0.1052, allocations: 12 kB / 476.1 MB, free: 7.547 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.116e-06/0.1052, allocations: 3.984 kB / 476.1 MB, free: 7.543 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.1053, allocations: 0 / 476.1 MB, free: 7.543 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008335/0.1061, allocations: 0.5336 MB / 476.6 MB, free: 6.98 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001682/0.1063, allocations: 152.8 kB / 476.8 MB, free: 6.812 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.392e-05/0.1063, allocations: 12 kB / 476.8 MB, free: 6.801 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002677/0.1066, allocations: 47.94 kB / 476.8 MB, free: 6.754 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.547e-05/0.1067, allocations: 24.08 kB / 476.9 MB, free: 6.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.351e-05/0.1067, allocations: 19.97 kB / 476.9 MB, free: 6.711 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004727/0.1072, allocations: 419 kB / 477.3 MB, free: 6.301 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1072, allocations: 0 / 477.3 MB, free: 6.301 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002861/0.1075, allocations: 75.88 kB / 477.4 MB, free: 6.227 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.001227/0.1088, allocations: 1.119 MB / 478.5 MB, free: 5.066 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006344/0.1094, allocations: 474.6 kB / 479 MB, free: 4.578 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.1094, allocations: 0 / 479 MB, free: 4.578 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005147/0.1099, allocations: 454.7 kB / 479.4 MB, free: 4.109 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002655/0.1102, allocations: 38.17 kB / 479.4 MB, free: 4.07 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005679/0.1159, allocations: 4.924 MB / 484.4 MB, free: 15.05 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004469/0.1164, allocations: 0.8033 MB / 485.2 MB, free: 14.22 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.883e-05/0.1165, allocations: 41.94 kB / 485.2 MB, free: 14.18 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001443/0.1166, allocations: 119.4 kB / 485.3 MB, free: 14.06 MB / 366.1 MB Notification: Performance of SimCode: time 5.41e-07/0.1166, allocations: 4 kB / 485.3 MB, free: 14.05 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02943/0.1461, allocations: 8.242 MB / 493.6 MB, free: 5.898 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.246/8.392, allocations: 11.94 kB / 493.6 MB, free: 5.887 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)