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.001124/0.001124, allocations: 180.2 kB / 16.38 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.248/1.248, allocations: 194.5 MB / 211.6 MB, free: 3.051 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.001578/0.001578, allocations: 113.7 kB / 256.9 MB, free: 4.371 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1762/0.1762, allocations: 38 MB / 340.1 MB, free: 1.371 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004334/0.0004331, allocations: 15.98 kB / 403.9 MB, free: 68.72 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09338/0.09384, allocations: 53.24 MB / 457.1 MB, free: 15.47 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3451/0.439, allocations: 95.06 MB / 0.5392 GB, free: 176 kB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002284/0.4392, allocations: 92.88 kB / 0.5393 GB, free: 124 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04331/0.4825, allocations: 16.92 MB / 0.5558 GB, free: 1.477 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.142e-06/0.4826, allocations: 0 / 0.5558 GB, free: 1.477 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.496e-05/0.4826, allocations: 20 kB / 0.5559 GB, free: 1.457 MB / 362.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.001864/0.4845, allocations: 1.125 MB / 0.557 GB, free: 332 kB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.838e-05/0.4846, allocations: 20.02 kB / 0.557 GB, free: 312 kB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001303/0.4847, allocations: 109.2 kB / 0.5571 GB, free: 232 kB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001588/0.4849, allocations: 98.17 kB / 0.5572 GB, free: 136 kB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003938/0.4888, allocations: 1.69 MB / 0.5588 GB, free: 14.67 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.769e-05/0.4889, allocations: 47.3 kB / 0.5589 GB, free: 14.64 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.616e-05/0.489, allocations: 73.38 kB / 0.5589 GB, free: 14.59 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001145/0.4901, allocations: 0.8046 MB / 0.5597 GB, free: 13.97 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.561e-05/0.4902, allocations: 0 / 0.5597 GB, free: 13.97 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.713e-05/0.4902, allocations: 32.61 kB / 0.5598 GB, free: 13.95 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.492e-05/0.4903, allocations: 30.62 kB / 0.5598 GB, free: 13.92 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00101/0.4913, allocations: 0.6119 MB / 0.5604 GB, free: 13.49 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003355/0.4947, allocations: 2.639 MB / 0.563 GB, free: 11.2 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009027/0.4956, allocations: 0.6309 MB / 0.5636 GB, free: 10.75 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.912e-05/0.4956, allocations: 4.5 kB / 0.5636 GB, free: 10.75 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005395/0.4962, allocations: 487.1 kB / 0.564 GB, free: 10.32 MB / 378.7 MB Notification: Performance of pre-optimization done (n=63): time 1.724e-06/0.4962, allocations: 0 / 0.564 GB, free: 10.32 MB / 378.7 MB Notification: Performance of matching and sorting (n=64): time 0.003128/0.4993, allocations: 2.518 MB / 0.5665 GB, free: 8.039 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001264/0.4994, allocations: 247 kB / 0.5667 GB, free: 7.746 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005208/0.5, allocations: 0.4931 MB / 0.5672 GB, free: 7.344 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.989e-05/0.5, allocations: 39.89 kB / 0.5673 GB, free: 7.309 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002575/0.5003, allocations: 404 kB / 0.5676 GB, free: 7.016 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001548/0.5005, allocations: 198.9 kB / 0.5678 GB, free: 6.848 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.824e-05/0.5005, allocations: 17.12 kB / 0.5679 GB, free: 6.844 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001629/0.5007, allocations: 386.3 kB / 0.5682 GB, free: 6.488 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003189/0.501, allocations: 222.4 kB / 0.5684 GB, free: 6.34 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004645/0.5015, allocations: 466.5 kB / 0.5689 GB, free: 5.871 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004073/0.5019, allocations: 333.1 kB / 0.5692 GB, free: 5.633 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.849e-06/0.5019, allocations: 4 kB / 0.5692 GB, free: 5.629 MB / 378.7 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.001364/0.5033, allocations: 0.9629 MB / 0.5701 GB, free: 4.855 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.992e-05/0.5033, allocations: 70.64 kB / 0.5702 GB, free: 4.777 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.194e-05/0.5033, allocations: 8 kB / 0.5702 GB, free: 4.77 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003892/0.5037, allocations: 121.2 kB / 0.5703 GB, free: 4.664 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004618/0.5042, allocations: 149 kB / 0.5705 GB, free: 4.523 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002791/0.507, allocations: 3.255 MB / 0.5737 GB, free: 1.363 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003728/0.5074, allocations: 41.36 kB / 0.5737 GB, free: 1.336 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.552e-05/0.5075, allocations: 58.39 kB / 0.5737 GB, free: 1.285 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (88): * Single equations (assignments): 84 * 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%) 6,(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003841/0.5079, allocations: 356.4 kB / 0.5741 GB, free: 0.9805 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.564e-05/0.508, allocations: 75.14 kB / 0.5742 GB, free: 0.9062 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001219/0.5092, allocations: 0.9812 MB / 0.5751 GB, free: 100 kB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.264e-06/0.5092, allocations: 11.94 kB / 0.5751 GB, free: 88 kB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.085e-06/0.5092, allocations: 0 / 0.5751 GB, free: 88 kB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.5092, allocations: 0 / 0.5751 GB, free: 88 kB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001991/0.5112, allocations: 1.712 MB / 0.5768 GB, free: 14.63 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.696e-06/0.5112, allocations: 0 / 0.5768 GB, free: 14.63 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004651/0.5117, allocations: 98.75 kB / 0.5769 GB, free: 14.54 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001009/0.5118, allocations: 50.66 kB / 0.5769 GB, free: 14.49 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.314e-05/0.5119, allocations: 23.11 kB / 0.577 GB, free: 14.48 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001766/0.5136, allocations: 2.745 MB / 0.5796 GB, free: 11.57 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.559e-06/0.5137, allocations: 4.031 kB / 0.5796 GB, free: 11.57 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001598/0.5153, allocations: 1.437 MB / 0.5811 GB, free: 10.37 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002744/0.5156, allocations: 190.9 kB / 0.5812 GB, free: 10.18 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.387e-05/0.5156, allocations: 22.69 kB / 0.5813 GB, free: 10.16 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003134/0.516, allocations: 27.84 kB / 0.5813 GB, free: 10.14 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.852e-05/0.5161, allocations: 43.83 kB / 0.5813 GB, free: 10.1 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.176e-05/0.5162, allocations: 59.3 kB / 0.5814 GB, free: 10.05 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0004281/0.5166, allocations: 388.4 kB / 0.5818 GB, free: 9.754 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5166, allocations: 0 / 0.5818 GB, free: 9.754 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0007459/0.5174, allocations: 188.1 kB / 0.5819 GB, free: 9.59 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (53): * Single equations (assignments): 48 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002153/0.5195, allocations: 2.186 MB / 0.5841 GB, free: 7.637 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001367/0.5209, allocations: 1.018 MB / 0.5851 GB, free: 6.758 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.5209, allocations: 3.938 kB / 0.5851 GB, free: 6.754 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006956/0.5216, allocations: 0.7086 MB / 0.5858 GB, free: 6.125 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006399/0.5223, allocations: 133.7 kB / 0.5859 GB, free: 6.031 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008025/0.5303, allocations: 9.251 MB / 0.5949 GB, free: 13.01 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006499/0.531, allocations: 1.029 MB / 0.5959 GB, free: 11.95 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0004933/0.5315, allocations: 149.8 kB / 0.5961 GB, free: 11.8 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003286/0.5318, allocations: 283.3 kB / 0.5963 GB, free: 11.53 MB / 410.7 MB Notification: Performance of SimCode: time 2.195e-06/0.5318, allocations: 0 / 0.5963 GB, free: 11.53 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02958/0.5614, allocations: 14.37 MB / 0.6104 GB, free: 13.16 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001953/0.5616, allocations: 209.7 kB / 0.6106 GB, free: 12.91 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.378/2.94, allocations: 0 / 0.6106 GB, free: 12.91 MB / 426.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)