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.001487/0.001487, allocations: 103.2 kB / 16.31 MB, free: 6.391 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.001529/0.001529, allocations: 188.5 kB / 17.24 MB, free: 5.922 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.429/1.429, allocations: 222.9 MB / 240.9 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.07498/0.07498, allocations: 8.1 MB / 299.2 MB, free: 6.73 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001357/0.001358, allocations: 59.91 kB / 361.8 MB, free: 8.051 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2464/0.2478, allocations: 51.51 MB / 413.3 MB, free: 25.58 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Tests.VoltageRegulation1): time 0.00289/0.2507, allocations: 1.63 MB / 415 MB, free: 23.94 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001168/0.2519, allocations: 0.6134 MB / 415.6 MB, free: 23.33 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001189/0.2521, allocations: 4 kB / 415.6 MB, free: 23.32 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002051/0.2523, allocations: 123.7 kB / 415.7 MB, free: 23.2 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002751/0.2526, allocations: 135.6 kB / 415.8 MB, free: 23.07 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004572/0.2531, allocations: 115.7 kB / 416 MB, free: 22.96 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003138/0.2534, allocations: 235.5 kB / 416.2 MB, free: 22.73 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001429/0.2536, allocations: 24.95 kB / 416.2 MB, free: 22.7 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002333/0.2538, allocations: 111.7 kB / 416.3 MB, free: 22.59 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003266/0.2541, allocations: 199.5 kB / 416.5 MB, free: 22.39 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.249e-05/0.2542, allocations: 12 kB / 416.5 MB, free: 22.38 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001952/0.2544, allocations: 83.94 kB / 416.6 MB, free: 22.3 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001454/0.2546, allocations: 107.6 kB / 416.7 MB, free: 22.2 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001488/0.2547, allocations: 131.1 kB / 416.8 MB, free: 22.07 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003416/0.2551, allocations: 325.1 kB / 417.2 MB, free: 21.75 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.2551, allocations: 0 / 417.2 MB, free: 21.75 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.475e-06/0.2551, allocations: 0 / 417.2 MB, free: 21.75 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.436e-05/0.2551, allocations: 3.938 kB / 417.2 MB, free: 21.75 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.0008929/0.256, allocations: 0.6996 MB / 417.9 MB, free: 20.98 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.428e-05/0.2561, allocations: 15.89 kB / 417.9 MB, free: 20.97 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.602e-05/0.2561, allocations: 46.67 kB / 417.9 MB, free: 20.91 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.617e-05/0.2562, allocations: 44.38 kB / 418 MB, free: 20.87 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004383/0.2567, allocations: 370.1 kB / 418.3 MB, free: 20.47 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.144e-05/0.2567, allocations: 4.375 kB / 418.3 MB, free: 20.46 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.281e-05/0.2567, allocations: 12.12 kB / 418.3 MB, free: 20.45 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003637/0.2571, allocations: 174.3 kB / 418.5 MB, free: 20.28 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.146e-05/0.2571, allocations: 0 / 418.5 MB, free: 20.28 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.867e-05/0.2572, allocations: 4 kB / 418.5 MB, free: 20.27 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.054e-05/0.2572, allocations: 0 / 418.5 MB, free: 20.27 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002232/0.2574, allocations: 127.8 kB / 418.6 MB, free: 20.15 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007935/0.2582, allocations: 0.4926 MB / 419.1 MB, free: 19.61 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002766/0.2585, allocations: 158.5 kB / 419.3 MB, free: 19.44 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002257/0.2587, allocations: 152.8 kB / 419.4 MB, free: 19.29 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.658e-05/0.2588, allocations: 0 / 419.4 MB, free: 19.29 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005344/0.2593, allocations: 371.6 kB / 419.8 MB, free: 18.88 MB / 302.1 MB Notification: Performance of pre-optimization done (n=19): time 2.214e-06/0.2593, allocations: 0 / 419.8 MB, free: 18.88 MB / 302.1 MB Notification: Performance of matching and sorting (n=19): time 0.0008997/0.2602, allocations: 0.5656 MB / 420.4 MB, free: 18.3 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.225e-05/0.2603, allocations: 221.6 kB / 420.6 MB, free: 18.04 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000529/0.2608, allocations: 0.5604 MB / 421.1 MB, free: 17.46 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.602e-05/0.2609, allocations: 29.7 kB / 421.2 MB, free: 17.43 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001208/0.261, allocations: 196.1 kB / 421.4 MB, free: 17.23 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.864e-05/0.2611, allocations: 51.48 kB / 421.4 MB, free: 17.18 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.892e-05/0.2612, allocations: 37.7 kB / 421.4 MB, free: 17.14 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000108/0.2613, allocations: 358.7 kB / 421.8 MB, free: 16.78 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001121/0.2614, allocations: 99.89 kB / 421.9 MB, free: 16.68 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001138/0.2615, allocations: 119.3 kB / 422 MB, free: 16.56 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005569/0.2621, allocations: 0.6112 MB / 422.6 MB, free: 15.9 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.2621, allocations: 0 / 422.6 MB, free: 15.9 MB / 302.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004082/0.2625, allocations: 424.3 kB / 423 MB, free: 15.47 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.643e-05/0.2626, allocations: 67.39 kB / 423.1 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.653e-06/0.2626, allocations: 0 / 423.1 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.926e-05/0.2626, allocations: 7.984 kB / 423.1 MB, free: 15.38 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.283e-05/0.2627, allocations: 11.94 kB / 423.1 MB, free: 15.37 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.665e-06/0.2627, allocations: 0 / 423.1 MB, free: 15.37 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002943/0.263, allocations: 47.95 kB / 423.2 MB, free: 15.32 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.971e-05/0.263, allocations: 7.938 kB / 423.2 MB, free: 15.32 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.0003471/0.2634, allocations: 294.2 kB / 423.5 MB, free: 15.01 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.114e-05/0.2635, allocations: 51.47 kB / 423.5 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.177e-05/0.2635, allocations: 47.91 kB / 423.6 MB, free: 14.91 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.805e-06/0.2635, allocations: 0 / 423.6 MB, free: 14.91 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/0.2635, allocations: 0 / 423.6 MB, free: 14.91 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.2636, allocations: 0 / 423.6 MB, free: 14.91 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002147/0.2638, allocations: 353.2 kB / 423.9 MB, free: 14.52 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.442e-06/0.2638, allocations: 0 / 423.9 MB, free: 14.52 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.358e-05/0.2638, allocations: 4 kB / 423.9 MB, free: 14.51 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.567e-06/0.2638, allocations: 0 / 423.9 MB, free: 14.51 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.267e-05/0.2638, allocations: 15.98 kB / 423.9 MB, free: 14.5 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.247e-06/0.2639, allocations: 11.92 kB / 423.9 MB, free: 14.48 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.2639, allocations: 0 / 423.9 MB, free: 14.48 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006095/0.2645, allocations: 0.5372 MB / 424.5 MB, free: 13.92 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001287/0.2646, allocations: 148.6 kB / 424.6 MB, free: 13.75 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.677e-05/0.2647, allocations: 12 kB / 424.6 MB, free: 13.74 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002684/0.265, allocations: 51.94 kB / 424.7 MB, free: 13.69 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.612e-05/0.2651, allocations: 23.97 kB / 424.7 MB, free: 13.67 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.703e-05/0.2651, allocations: 8 kB / 424.7 MB, free: 13.66 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003955/0.2655, allocations: 419 kB / 425.1 MB, free: 13.25 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2655, allocations: 0 / 425.1 MB, free: 13.25 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003266/0.2658, allocations: 76.06 kB / 425.2 MB, free: 13.18 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.001127/0.267, allocations: 1.119 MB / 426.3 MB, free: 12.02 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005402/0.2675, allocations: 474.6 kB / 426.8 MB, free: 11.53 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/0.2675, allocations: 0 / 426.8 MB, free: 11.53 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003473/0.2679, allocations: 462.6 kB / 427.2 MB, free: 11.05 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003145/0.2682, allocations: 29.97 kB / 427.3 MB, free: 11.02 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004534/0.2728, allocations: 4.948 MB / 432.2 MB, free: 5.969 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002318/0.273, allocations: 0.8072 MB / 433 MB, free: 5.137 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.458e-05/0.2731, allocations: 45.88 kB / 433.1 MB, free: 5.094 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001127/0.2732, allocations: 115.4 kB / 433.2 MB, free: 4.98 MB / 302.1 MB Notification: Performance of SimCode: time 6.12e-07/0.2732, allocations: 4 kB / 433.2 MB, free: 4.977 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02562/0.2989, allocations: 8.126 MB / 441.3 MB, free: 12.92 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.598/7.897, allocations: 16.41 kB / 441.3 MB, free: 12.91 MB / 318.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)