Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.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/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/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(PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Transformation_TapChanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Transformation_TapChanger",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.001404/0.001404, allocations: 105.5 kB / 17.06 MB, free: 6.016 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.001582/0.001582, allocations: 188 kB / 18 MB, free: 5.102 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.355/1.355, allocations: 222.9 MB / 241.7 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1821/0.1821, allocations: 38.04 MB / 329.9 MB, free: 8.723 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001409/0.001409, allocations: 59.91 kB / 457.6 MB, free: 7.371 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3261/0.3275, allocations: 58.05 MB / 0.5036 GB, free: 7.473 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger): time 0.007019/0.3346, allocations: 7.308 MB / 0.5107 GB, free: 2.367 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002708/0.3373, allocations: 1.712 MB / 0.5124 GB, free: 1.156 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000602/0.338, allocations: 29.06 kB / 0.5124 GB, free: 1.145 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007085/0.3387, allocations: 237.3 kB / 0.5127 GB, free: 1.023 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001511/0.3402, allocations: 0.5827 MB / 0.5132 GB, free: 0.6914 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006087/0.3409, allocations: 212.1 kB / 0.5134 GB, free: 0.5859 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001656/0.3425, allocations: 1.271 MB / 0.5147 GB, free: 24 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005686/0.3431, allocations: 345.2 kB / 0.515 GB, free: 15.9 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001112/0.3442, allocations: 0.5546 MB / 0.5156 GB, free: 15.64 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001262/0.3455, allocations: 0.6485 MB / 0.5162 GB, free: 15.39 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002265/0.3458, allocations: 62.88 kB / 0.5162 GB, free: 15.39 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003166/0.3461, allocations: 63.84 kB / 0.5163 GB, free: 15.39 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000547/0.3466, allocations: 331.6 kB / 0.5166 GB, free: 15.28 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001137/0.3478, allocations: 431.3 kB / 0.517 GB, free: 15.03 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001937/0.3497, allocations: 0.9251 MB / 0.5179 GB, free: 14.65 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.3498, allocations: 0 / 0.5179 GB, free: 14.65 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.3498, allocations: 3.938 kB / 0.5179 GB, free: 14.65 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.329e-05/0.3498, allocations: 0 / 0.5179 GB, free: 14.65 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 166 * Number of variables: 166 Notification: Performance of Generate backend data structure: time 0.00318/0.353, allocations: 1.244 MB / 0.5192 GB, free: 13.78 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.16e-05/0.3531, allocations: 14.73 kB / 0.5192 GB, free: 13.77 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000215/0.3533, allocations: 113.8 kB / 0.5193 GB, free: 13.69 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002567/0.3535, allocations: 102.2 kB / 0.5194 GB, free: 13.64 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001687/0.3552, allocations: 0.7232 MB / 0.5201 GB, free: 13.2 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.304e-05/0.3553, allocations: 43.5 kB / 0.5201 GB, free: 13.19 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000126/0.3554, allocations: 62.44 kB / 0.5202 GB, free: 13.17 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001436/0.3569, allocations: 0.8112 MB / 0.521 GB, free: 12.8 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.854e-05/0.3569, allocations: 0 / 0.521 GB, free: 12.8 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.809e-05/0.357, allocations: 28.25 kB / 0.521 GB, free: 12.79 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.611e-05/0.357, allocations: 40.27 kB / 0.521 GB, free: 12.77 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001162/0.3582, allocations: 0.6115 MB / 0.5216 GB, free: 12.58 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004277/0.3625, allocations: 2.622 MB / 0.5242 GB, free: 10.84 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001014/0.3635, allocations: 0.6181 MB / 0.5248 GB, free: 10.57 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006995/0.3643, allocations: 382.4 kB / 0.5252 GB, free: 10.43 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.207e-05/0.3643, allocations: 5.875 kB / 0.5252 GB, free: 10.43 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006649/0.365, allocations: 483 kB / 0.5256 GB, free: 10.14 MB / 398.1 MB Notification: Performance of pre-optimization done (n=63): time 3.637e-06/0.365, allocations: 0 / 0.5256 GB, free: 10.14 MB / 398.1 MB Notification: Performance of matching and sorting (n=64): time 0.003387/0.3684, allocations: 1.998 MB / 0.5276 GB, free: 9.004 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001433/0.3686, allocations: 254.7 kB / 0.5278 GB, free: 8.715 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007964/0.3694, allocations: 0.5645 MB / 0.5284 GB, free: 8.465 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.113e-05/0.3694, allocations: 42.11 kB / 0.5284 GB, free: 8.422 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003147/0.3697, allocations: 402.4 kB / 0.5288 GB, free: 8.105 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002011/0.3699, allocations: 221.7 kB / 0.529 GB, free: 7.934 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002179/0.3702, allocations: 145.2 kB / 0.5292 GB, free: 7.859 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001839/0.3704, allocations: 388.5 kB / 0.5295 GB, free: 7.512 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003904/0.3708, allocations: 221 kB / 0.5297 GB, free: 7.449 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005259/0.3713, allocations: 459 kB / 0.5302 GB, free: 7.094 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009568/0.3723, allocations: 0.7892 MB / 0.5309 GB, free: 6.477 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.257e-06/0.3723, allocations: 2.312 kB / 0.5309 GB, free: 6.477 MB / 398.1 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.001723/0.374, allocations: 0.9648 MB / 0.5319 GB, free: 6.027 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.532e-05/0.3741, allocations: 64.28 kB / 0.532 GB, free: 5.965 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.037e-05/0.3741, allocations: 10.66 kB / 0.532 GB, free: 5.961 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000429/0.3745, allocations: 110 kB / 0.5321 GB, free: 5.926 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005156/0.3751, allocations: 148.4 kB / 0.5322 GB, free: 5.906 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003185/0.3783, allocations: 3.555 MB / 0.5357 GB, free: 2.578 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000553/0.3788, allocations: 36.86 kB / 0.5357 GB, free: 2.566 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.4e-05/0.3789, allocations: 57.83 kB / 0.5358 GB, free: 2.555 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * Number of states: 0 () * Number of discrete variables: 21 (system.initime,tapRelay1.cnt_2,$PRE.tapRelay1.cnt_2,tapRelay1.cnt_1,$PRE.tapRelay1.cnt_1,$whenCondition4,$whenCondition3,tapRelay2.cnt_2,$PRE.tapRelay2.cnt_2,tapRelay2.cnt_1,$PRE.tapRelay2.cnt_1,$whenCondition2,$whenCondition1,tapRelay1.tap_2,$PRE.tapRelay1.tap_2,tapRelay1.tap_1,$PRE.tapRelay1.tap_1,tapRelay2.tap_2,$PRE.tapRelay2.tap_2,tapRelay2.tap_1,$PRE.tapRelay2.tap_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004801/0.3794, allocations: 353.3 kB / 0.5361 GB, free: 2.277 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001258/0.3796, allocations: 79.84 kB / 0.5362 GB, free: 2.234 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001175/0.3807, allocations: 0.7891 MB / 0.537 GB, free: 1.789 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.143e-06/0.3808, allocations: 6.625 kB / 0.537 GB, free: 1.789 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.3808, allocations: 3.984 kB / 0.537 GB, free: 1.785 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.893e-06/0.3808, allocations: 1.219 kB / 0.537 GB, free: 1.785 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002362/0.3832, allocations: 1.56 MB / 0.5385 GB, free: 0.75 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.148e-06/0.3832, allocations: 5 kB / 0.5385 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005061/0.3837, allocations: 110.4 kB / 0.5386 GB, free: 0.7188 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.426e-06/0.3837, allocations: 7.5 kB / 0.5386 GB, free: 0.7148 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.333e-05/0.3838, allocations: 28.2 kB / 0.5386 GB, free: 0.6953 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.071e-06/0.3838, allocations: 3.594 kB / 0.5386 GB, free: 0.6953 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.3838, allocations: 1.125 kB / 0.5386 GB, free: 0.6953 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001537/0.3853, allocations: 1.204 MB / 0.5398 GB, free: 15.98 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003209/0.3857, allocations: 189.2 kB / 0.54 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.049e-05/0.3857, allocations: 16.47 kB / 0.54 GB, free: 15.81 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003396/0.3861, allocations: 26.16 kB / 0.54 GB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.147e-05/0.3862, allocations: 37.95 kB / 0.5401 GB, free: 15.77 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.28e-05/0.3863, allocations: 62.61 kB / 0.5401 GB, free: 15.75 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004597/0.3868, allocations: 394.6 kB / 0.5405 GB, free: 15.52 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3868, allocations: 4.062 kB / 0.5405 GB, free: 15.51 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007988/0.3876, allocations: 178.4 kB / 0.5407 GB, free: 15.49 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (trafo1.i1,trafo2.i1) * Number of discrete variables: 13 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,tapRelay2.tap_1,tapRelay2.tap_2,tapRelay2.cnt_1,tapRelay2.cnt_2,tapRelay1.tap_1,tapRelay1.tap_2,tapRelay1.cnt_1,tapRelay1.cnt_2,system.initime) * Number of discrete states: 12 (tapRelay1.tap_2,tapRelay1.cnt_2,$whenCondition4,tapRelay1.tap_1,tapRelay1.cnt_1,$whenCondition3,tapRelay2.tap_2,tapRelay2.cnt_2,$whenCondition2,tapRelay2.tap_1,tapRelay2.cnt_1,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 1 * 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.001755/0.3893, allocations: 1.76 MB / 0.5424 GB, free: 14.25 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00147/0.3908, allocations: 0.9999 MB / 0.5434 GB, free: 13.59 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.3908, allocations: 1.375 kB / 0.5434 GB, free: 13.59 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005431/0.3914, allocations: 0.4957 MB / 0.5439 GB, free: 13.29 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008812/0.3923, allocations: 164.3 kB / 0.544 GB, free: 13.2 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008108/0.4004, allocations: 6.313 MB / 0.5502 GB, free: 7.352 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005774/0.401, allocations: 1.012 MB / 0.5512 GB, free: 6.309 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004344/0.4014, allocations: 153.8 kB / 0.5513 GB, free: 6.156 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003265/0.4018, allocations: 279.3 kB / 0.5516 GB, free: 5.883 MB / 414.1 MB Notification: Performance of SimCode: time 8.62e-07/0.4018, allocations: 0 / 0.5516 GB, free: 5.883 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04057/0.4424, allocations: 14.09 MB / 0.5653 GB, free: 7.973 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.76/12.2, allocations: 11.39 kB / 0.5654 GB, free: 7.965 MB / 430.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger_res.csv --start-time 0 --stop-time 4 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 PowerSystems_PowerSystems_Examples_AC1ph_DC_Transformation_TapChanger.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.pipe 2>&1)