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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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/Complex 3.2.2+maint.om/package.mo): time 0.001103/0.001103, allocations: 179.6 kB / 8.351 MB, free: 0.7227 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.68/1.68, allocations: 194.4 MB / 203.1 MB, free: 13.03 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001999/0.001999, allocations: 127.1 kB / 248.1 MB, free: 32 kB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1631/0.1631, allocations: 37.94 MB / 330.9 MB, free: 2.641 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.833e-05/1.835e-05, allocations: 0 / 390.5 MB, free: 6.996 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2988/0.2988, allocations: 53.23 MB / 443.7 MB, free: 17.76 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1336/0.4325, allocations: 94.3 MB / 0.5254 GB, free: 3.32 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003505/0.4329, allocations: 91.94 kB / 0.5255 GB, free: 3.23 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3159/0.7488, allocations: 16.72 MB / 0.5418 GB, free: 87.14 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.7488, allocations: 0 / 0.5418 GB, free: 87.14 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.107e-05/0.7489, allocations: 23.31 kB / 0.5418 GB, free: 87.14 MB / 378.7 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.001534/0.7504, allocations: 1.011 MB / 0.5428 GB, free: 86.34 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.939e-05/0.7505, allocations: 7.906 kB / 0.5428 GB, free: 86.34 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001687/0.7506, allocations: 94.06 kB / 0.5429 GB, free: 86.28 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003761/0.7544, allocations: 1.681 MB / 0.5445 GB, free: 84.58 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.174e-05/0.7545, allocations: 24 kB / 0.5446 GB, free: 84.56 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.265e-05/0.7546, allocations: 40 kB / 0.5446 GB, free: 84.52 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008204/0.7554, allocations: 0.557 MB / 0.5452 GB, free: 83.96 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009177/0.7563, allocations: 0.702 MB / 0.5458 GB, free: 83.23 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.78e-05/0.7563, allocations: 0 / 0.5458 GB, free: 83.23 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.3e-05/0.7564, allocations: 4 kB / 0.5458 GB, free: 83.22 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.311e-05/0.7564, allocations: 33.3 kB / 0.5459 GB, free: 83.19 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002848/0.7593, allocations: 2.537 MB / 0.5484 GB, free: 80.57 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007187/0.76, allocations: 0.5737 MB / 0.5489 GB, free: 79.98 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004296/0.7605, allocations: 347.2 kB / 0.5492 GB, free: 79.63 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.13e-05/0.7605, allocations: 8.438 kB / 0.5492 GB, free: 79.62 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004343/0.761, allocations: 466 kB / 0.5497 GB, free: 79.13 MB / 378.7 MB Notification: Performance of pre-optimization done (n=63): time 2.094e-06/0.761, allocations: 4 kB / 0.5497 GB, free: 79.12 MB / 378.7 MB Notification: Performance of matching and sorting (n=64): time 0.001926/0.7629, allocations: 1.471 MB / 0.5511 GB, free: 77.6 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.81e-05/0.763, allocations: 251.9 kB / 0.5514 GB, free: 77.3 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004314/0.7634, allocations: 446.3 kB / 0.5518 GB, free: 76.86 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.495e-05/0.7635, allocations: 37.69 kB / 0.5518 GB, free: 76.81 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002221/0.7637, allocations: 399.4 kB / 0.5522 GB, free: 76.41 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001343/0.7638, allocations: 205.1 kB / 0.5524 GB, free: 76.21 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.388e-05/0.7639, allocations: 0 / 0.5524 GB, free: 76.21 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001276/0.764, allocations: 382.8 kB / 0.5528 GB, free: 75.83 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000249/0.7643, allocations: 198.6 kB / 0.553 GB, free: 75.64 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003592/0.7646, allocations: 427.8 kB / 0.5534 GB, free: 75.12 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003091/0.765, allocations: 265.9 kB / 0.5536 GB, free: 74.86 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.935e-06/0.765, allocations: 0 / 0.5536 GB, free: 74.86 MB / 378.7 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.001154/0.7661, allocations: 0.789 MB / 0.5544 GB, free: 74.06 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.504e-05/0.7662, allocations: 63.39 kB / 0.5545 GB, free: 73.99 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.436e-05/0.7662, allocations: 12.03 kB / 0.5545 GB, free: 73.98 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003729/0.7666, allocations: 105.6 kB / 0.5546 GB, free: 73.87 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004733/0.7671, allocations: 147.7 kB / 0.5547 GB, free: 73.72 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00218/0.7693, allocations: 3.082 MB / 0.5577 GB, free: 70.41 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004063/0.7697, allocations: 35.94 kB / 0.5578 GB, free: 70.37 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.626e-05/0.7698, allocations: 55.91 kB / 0.5578 GB, free: 70.32 MB / 378.7 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,$whenCondition3,$whenCondition4,$PRE.tapRelay1.cnt_1,tapRelay1.cnt_1,$PRE.tapRelay1.cnt_2,tapRelay1.cnt_2,$whenCondition1,$whenCondition2,$PRE.tapRelay2.cnt_1,tapRelay2.cnt_1,$PRE.tapRelay2.cnt_2,tapRelay2.cnt_2,$PRE.tapRelay2.tap_1,tapRelay2.tap_1,$PRE.tapRelay2.tap_2,tapRelay2.tap_2,$PRE.tapRelay1.tap_1,tapRelay1.tap_1,$PRE.tapRelay1.tap_2,tapRelay1.tap_2) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001953/0.77, allocations: 213.7 kB / 0.558 GB, free: 70.09 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007248/0.7707, allocations: 0.6224 MB / 0.5586 GB, free: 69.46 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.228e-05/0.7708, allocations: 71.16 kB / 0.5587 GB, free: 69.39 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008345/0.7716, allocations: 0.6615 MB / 0.5593 GB, free: 68.72 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.7716, allocations: 8 kB / 0.5593 GB, free: 68.71 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.864e-06/0.7716, allocations: 0 / 0.5593 GB, free: 68.71 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.805e-06/0.7717, allocations: 3.984 kB / 0.5593 GB, free: 68.71 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001585/0.7733, allocations: 1.355 MB / 0.5607 GB, free: 67.31 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.999e-06/0.7733, allocations: 8 kB / 0.5607 GB, free: 67.3 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004552/0.7737, allocations: 107.8 kB / 0.5608 GB, free: 67.2 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.09e-06/0.7737, allocations: 4 kB / 0.5608 GB, free: 67.2 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.491e-05/0.7738, allocations: 15.98 kB / 0.5608 GB, free: 67.18 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.888e-06/0.7738, allocations: 7.953 kB / 0.5608 GB, free: 67.17 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.7738, allocations: 0 / 0.5608 GB, free: 67.17 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001054/0.7749, allocations: 1.111 MB / 0.5619 GB, free: 66.01 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001913/0.7751, allocations: 188.3 kB / 0.5621 GB, free: 65.8 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.555e-05/0.7751, allocations: 11.92 kB / 0.5621 GB, free: 65.79 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002935/0.7754, allocations: 19.98 kB / 0.5621 GB, free: 65.77 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.978e-05/0.7755, allocations: 40.39 kB / 0.5621 GB, free: 65.73 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.232e-05/0.7756, allocations: 55.92 kB / 0.5622 GB, free: 65.68 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003054/0.7759, allocations: 350.8 kB / 0.5625 GB, free: 65.34 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.7759, allocations: 0 / 0.5625 GB, free: 65.34 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007499/0.7767, allocations: 167.9 kB / 0.5627 GB, free: 65.18 MB / 378.7 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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001559/0.7783, allocations: 1.986 MB / 0.5646 GB, free: 63.14 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001171/0.7794, allocations: 0.9187 MB / 0.5655 GB, free: 62.18 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.998e-06/0.7795, allocations: 0 / 0.5655 GB, free: 62.18 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004019/0.7799, allocations: 480.4 kB / 0.566 GB, free: 61.69 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006484/0.7805, allocations: 137.2 kB / 0.5661 GB, free: 61.56 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002192/0.7827, allocations: 1.323 MB / 0.5674 GB, free: 60.18 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004401/0.7832, allocations: 1.025 MB / 0.5684 GB, free: 59.12 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004474/0.7836, allocations: 161.7 kB / 0.5686 GB, free: 58.96 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002726/0.7839, allocations: 279.3 kB / 0.5688 GB, free: 58.69 MB / 378.7 MB Notification: Performance of SimCode: time 7.31e-07/0.7839, allocations: 0 / 0.5688 GB, free: 58.69 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03439/0.8183, allocations: 12.72 MB / 0.5812 GB, free: 45.96 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001778/0.8186, allocations: 150.8 kB / 0.5814 GB, free: 45.77 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.437/3.255, allocations: 0 / 0.5814 GB, free: 45.77 MB / 378.7 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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Transformation_TapChanger_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Transformation_TapChanger.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.pipe 2>&1)