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.001152/0.001152, allocations: 104.6 kB / 16.31 MB, free: 6.359 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.001225/0.001225, allocations: 184.6 kB / 17.24 MB, free: 5.879 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.383/1.383, allocations: 222.9 MB / 240.9 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.04958/0.04958, allocations: 8.099 MB / 299.2 MB, free: 6.723 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001275/0.001275, allocations: 67.89 kB / 361.8 MB, free: 8.043 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2198/0.2211, allocations: 51.51 MB / 413.3 MB, free: 25.57 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Tests.VoltageRegulation2): time 0.002602/0.2237, allocations: 1.611 MB / 415 MB, free: 23.95 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009831/0.2248, allocations: 0.6141 MB / 415.6 MB, free: 23.34 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.212e-05/0.2249, allocations: 4 kB / 415.6 MB, free: 23.33 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001262/0.225, allocations: 19.84 kB / 415.6 MB, free: 23.31 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001716/0.2252, allocations: 47.7 kB / 415.6 MB, free: 23.27 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004189/0.2256, allocations: 111 kB / 415.7 MB, free: 23.16 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002089/0.2259, allocations: 199.6 kB / 415.9 MB, free: 22.96 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001163/0.226, allocations: 16.97 kB / 416 MB, free: 22.95 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000142/0.2261, allocations: 79.73 kB / 416 MB, free: 22.87 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001528/0.2263, allocations: 83.72 kB / 416.1 MB, free: 22.79 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.765e-05/0.2263, allocations: 12 kB / 416.1 MB, free: 22.77 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001514/0.2265, allocations: 79.94 kB / 416.2 MB, free: 22.7 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.306e-05/0.2266, allocations: 35.84 kB / 416.2 MB, free: 22.66 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.133e-05/0.2267, allocations: 67.64 kB / 416.3 MB, free: 22.59 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002504/0.2269, allocations: 189.8 kB / 416.5 MB, free: 22.41 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.2269, allocations: 0 / 416.5 MB, free: 22.41 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.522e-06/0.2269, allocations: 3.938 kB / 416.5 MB, free: 22.41 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.126e-05/0.227, allocations: 4 kB / 416.5 MB, free: 22.4 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.0006069/0.2276, allocations: 0.4894 MB / 417 MB, free: 21.86 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.979e-05/0.2276, allocations: 11.89 kB / 417 MB, free: 21.84 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.906e-05/0.2277, allocations: 42.73 kB / 417 MB, free: 21.79 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.708e-05/0.2277, allocations: 24.75 kB / 417.1 MB, free: 21.77 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002187/0.228, allocations: 232 kB / 417.3 MB, free: 21.5 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.936e-05/0.228, allocations: 4.375 kB / 417.3 MB, free: 21.5 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.054e-05/0.228, allocations: 12.06 kB / 417.3 MB, free: 21.49 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003184/0.2283, allocations: 130.3 kB / 417.4 MB, free: 21.36 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.124e-05/0.2284, allocations: 0 / 417.4 MB, free: 21.36 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.928e-05/0.2284, allocations: 8 kB / 417.4 MB, free: 21.35 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.57e-06/0.2284, allocations: 0 / 417.4 MB, free: 21.35 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001924/0.2286, allocations: 67.95 kB / 417.5 MB, free: 21.28 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000522/0.2291, allocations: 388.5 kB / 417.9 MB, free: 20.85 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002051/0.2293, allocations: 126.5 kB / 418 MB, free: 20.72 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001799/0.2295, allocations: 105 kB / 418.1 MB, free: 20.61 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.386e-05/0.2296, allocations: 4 kB / 418.1 MB, free: 20.61 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004174/0.23, allocations: 323.7 kB / 418.4 MB, free: 20.25 MB / 302.1 MB Notification: Performance of pre-optimization done (n=19): time 1.583e-06/0.23, allocations: 0 / 418.4 MB, free: 20.25 MB / 302.1 MB Notification: Performance of matching and sorting (n=19): time 0.0007533/0.2307, allocations: 384.6 kB / 418.8 MB, free: 19.86 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.661e-05/0.2308, allocations: 221.6 kB / 419 MB, free: 19.59 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001647/0.231, allocations: 198.8 kB / 419.2 MB, free: 19.39 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.95e-05/0.231, allocations: 33.7 kB / 419.3 MB, free: 19.35 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.107e-05/0.2311, allocations: 100.1 kB / 419.4 MB, free: 19.25 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.689e-05/0.2311, allocations: 43.5 kB / 419.4 MB, free: 19.2 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.8e-05/0.2312, allocations: 37.7 kB / 419.4 MB, free: 19.16 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.783e-05/0.2312, allocations: 334.8 kB / 419.8 MB, free: 18.82 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.776e-05/0.2313, allocations: 47.98 kB / 419.8 MB, free: 18.78 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.357e-05/0.2314, allocations: 73.69 kB / 419.9 MB, free: 18.7 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004058/0.2318, allocations: 461.7 kB / 420.3 MB, free: 18.2 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.2318, allocations: 4.031 kB / 420.3 MB, free: 18.2 MB / 302.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002821/0.2321, allocations: 272.7 kB / 420.6 MB, free: 17.91 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.701e-05/0.2322, allocations: 67.39 kB / 420.7 MB, free: 17.83 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.289e-06/0.2322, allocations: 0 / 420.7 MB, free: 17.83 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.667e-05/0.2322, allocations: 0 / 420.7 MB, free: 17.83 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.939e-05/0.2323, allocations: 15.98 kB / 420.7 MB, free: 17.82 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.181e-06/0.2323, allocations: 0 / 420.7 MB, free: 17.82 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002615/0.2326, allocations: 52.03 kB / 420.7 MB, free: 17.77 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.802e-05/0.2326, allocations: 4.078 kB / 420.7 MB, free: 17.76 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.0001874/0.2328, allocations: 242 kB / 421 MB, free: 17.5 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.115e-05/0.2328, allocations: 23.81 kB / 421 MB, free: 17.48 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.367e-05/0.2329, allocations: 13.88 kB / 421 MB, free: 17.46 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.2329, allocations: 0 / 421 MB, free: 17.46 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.222e-06/0.2329, allocations: 3.984 kB / 421 MB, free: 17.46 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.2329, allocations: 4 kB / 421 MB, free: 17.46 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001426/0.233, allocations: 261.4 kB / 421.3 MB, free: 17.15 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.233, allocations: 0 / 421.3 MB, free: 17.15 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.267e-05/0.2331, allocations: 7.984 kB / 421.3 MB, free: 17.14 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.305e-06/0.2331, allocations: 0 / 421.3 MB, free: 17.14 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.144e-05/0.2331, allocations: 12 kB / 421.3 MB, free: 17.13 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.2331, allocations: 0 / 421.3 MB, free: 17.13 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.2331, allocations: 0 / 421.3 MB, free: 17.13 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005473/0.2337, allocations: 399.1 kB / 421.7 MB, free: 16.71 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.462e-05/0.2338, allocations: 124.8 kB / 421.8 MB, free: 16.57 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.565e-05/0.2338, allocations: 12 kB / 421.8 MB, free: 16.56 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002577/0.2341, allocations: 47.94 kB / 421.9 MB, free: 16.52 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.2e-05/0.2342, allocations: 19.97 kB / 421.9 MB, free: 16.5 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.588e-05/0.2342, allocations: 16 kB / 421.9 MB, free: 16.48 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.031e-05/0.2343, allocations: 148.2 kB / 422 MB, free: 16.34 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2343, allocations: 0 / 422 MB, free: 16.34 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002709/0.2346, allocations: 75.92 kB / 422.1 MB, free: 16.26 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.0008112/0.2354, allocations: 0.9634 MB / 423.1 MB, free: 15.26 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004494/0.2359, allocations: 390.7 kB / 423.5 MB, free: 14.85 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.2359, allocations: 0 / 423.5 MB, free: 14.85 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000316/0.2362, allocations: 410.7 kB / 423.9 MB, free: 14.43 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002298/0.2364, allocations: 23.91 kB / 423.9 MB, free: 14.4 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002045/0.2385, allocations: 2.249 MB / 426.1 MB, free: 12.05 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000149/0.2387, allocations: 0.7237 MB / 426.9 MB, free: 11.3 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.99e-05/0.2387, allocations: 12.44 kB / 426.9 MB, free: 11.29 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.733e-05/0.2388, allocations: 39.42 kB / 426.9 MB, free: 11.25 MB / 302.1 MB Notification: Performance of SimCode: time 1.383e-06/0.2388, allocations: 0 / 426.9 MB, free: 11.25 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02015/0.2589, allocations: 4.835 MB / 431.7 MB, free: 6.484 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.382/7.641, allocations: 10.59 kB / 431.8 MB, free: 6.477 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 & 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)