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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.001161/0.001161, allocations: 106.4 kB / 17.06 MB, free: 6.027 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.001188/0.001189, allocations: 195 kB / 18 MB, free: 5.109 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.32/1.32, allocations: 205.1 MB / 223.9 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.178/0.178, allocations: 37.99 MB / 309.2 MB, free: 5.957 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002504/0.002504, allocations: 63.91 kB / 431.4 MB, free: 16.15 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09777/0.1003, allocations: 55.25 MB / 486.6 MB, free: 8.84 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger): time 0.007998/0.1083, allocations: 7.302 MB / 493.9 MB, free: 1.5 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002865/0.1112, allocations: 1.742 MB / 495.7 MB, free: 15.75 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005655/0.1118, allocations: 31.81 kB / 495.7 MB, free: 15.72 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007727/0.1126, allocations: 234.4 kB / 495.9 MB, free: 15.49 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001442/0.1141, allocations: 0.5637 MB / 496.5 MB, free: 14.92 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005065/0.1146, allocations: 223.6 kB / 496.7 MB, free: 14.7 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001359/0.116, allocations: 1.269 MB / 498 MB, free: 13.43 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004695/0.1165, allocations: 358.5 kB / 498.3 MB, free: 13.08 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009945/0.1175, allocations: 0.5485 MB / 498.9 MB, free: 12.53 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001072/0.1186, allocations: 0.6346 MB / 499.5 MB, free: 11.89 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001824/0.1188, allocations: 67.94 kB / 499.6 MB, free: 11.82 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000229/0.119, allocations: 64 kB / 499.6 MB, free: 11.76 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003246/0.1193, allocations: 335.1 kB / 500 MB, free: 11.43 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005349/0.1199, allocations: 437.8 kB / 0.4887 GB, free: 11 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008545/0.1207, allocations: 0.9069 MB / 0.4895 GB, free: 10.09 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.1208, allocations: 0 / 0.4895 GB, free: 10.09 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.1208, allocations: 3.938 kB / 0.4895 GB, free: 10.09 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.444e-05/0.1208, allocations: 0 / 0.4895 GB, free: 10.09 MB / 382.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.002155/0.123, allocations: 1.229 MB / 0.4907 GB, free: 8.793 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.23e-05/0.123, allocations: 19.83 kB / 0.4908 GB, free: 8.773 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000145/0.1232, allocations: 110.7 kB / 0.4909 GB, free: 8.656 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001611/0.1233, allocations: 91.81 kB / 0.491 GB, free: 8.566 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001179/0.1245, allocations: 0.7146 MB / 0.4917 GB, free: 7.809 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.099e-05/0.1246, allocations: 49.3 kB / 0.4917 GB, free: 7.762 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001002/0.1247, allocations: 64 kB / 0.4918 GB, free: 7.699 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001095/0.1258, allocations: 0.8099 MB / 0.4926 GB, free: 6.852 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.56e-05/0.1258, allocations: 0 / 0.4926 GB, free: 6.852 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.604e-05/0.1259, allocations: 24 kB / 0.4926 GB, free: 6.828 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.548e-05/0.1259, allocations: 41.28 kB / 0.4926 GB, free: 6.785 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009274/0.1269, allocations: 0.6178 MB / 0.4932 GB, free: 6.168 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003237/0.1301, allocations: 2.618 MB / 0.4958 GB, free: 3.438 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008825/0.131, allocations: 0.6128 MB / 0.4964 GB, free: 2.809 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005461/0.1316, allocations: 379 kB / 0.4967 GB, free: 2.426 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.315e-05/0.1316, allocations: 8.422 kB / 0.4967 GB, free: 2.418 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000521/0.1321, allocations: 479.1 kB / 0.4972 GB, free: 1.91 MB / 382.1 MB Notification: Performance of pre-optimization done (n=63): time 1.993e-06/0.1321, allocations: 0 / 0.4972 GB, free: 1.91 MB / 382.1 MB Notification: Performance of matching and sorting (n=64): time 0.002698/0.1348, allocations: 1.981 MB / 0.4991 GB, free: 15.84 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000118/0.135, allocations: 255.8 kB / 0.4994 GB, free: 15.53 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005681/0.1356, allocations: 0.5625 MB / 0.4999 GB, free: 14.96 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.944e-05/0.1356, allocations: 37.7 kB / 0.5 GB, free: 14.92 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002604/0.1359, allocations: 407.4 kB / 0.5004 GB, free: 14.52 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001563/0.136, allocations: 205.1 kB / 0.5005 GB, free: 14.31 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001731/0.1362, allocations: 142.6 kB / 0.5007 GB, free: 14.17 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001378/0.1364, allocations: 390.8 kB / 0.5011 GB, free: 13.78 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003276/0.1367, allocations: 217.9 kB / 0.5013 GB, free: 13.56 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004616/0.1372, allocations: 461.8 kB / 0.5017 GB, free: 13.02 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008522/0.138, allocations: 0.8012 MB / 0.5025 GB, free: 12.09 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.881e-06/0.138, allocations: 4 kB / 0.5025 GB, free: 12.09 MB / 398.1 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.00145/0.1395, allocations: 0.9443 MB / 0.5034 GB, free: 11.12 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.649e-05/0.1396, allocations: 67.39 kB / 0.5035 GB, free: 11.04 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.542e-05/0.1396, allocations: 15.88 kB / 0.5035 GB, free: 11.02 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003791/0.14, allocations: 105.9 kB / 0.5036 GB, free: 10.91 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004723/0.1405, allocations: 151.7 kB / 0.5037 GB, free: 10.77 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00302/0.1435, allocations: 3.555 MB / 0.5072 GB, free: 6.938 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004002/0.1439, allocations: 35.98 kB / 0.5072 GB, free: 6.902 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.411e-05/0.144, allocations: 59.89 kB / 0.5073 GB, free: 6.844 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.0003946/0.1444, allocations: 346.7 kB / 0.5076 GB, free: 6.484 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001071/0.1445, allocations: 75.16 kB / 0.5077 GB, free: 6.41 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001036/0.1456, allocations: 0.7819 MB / 0.5085 GB, free: 5.602 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.282e-06/0.1456, allocations: 8 kB / 0.5085 GB, free: 5.594 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.864e-06/0.1456, allocations: 3.938 kB / 0.5085 GB, free: 5.59 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.305e-05/0.1456, allocations: 4.172 kB / 0.5085 GB, free: 5.586 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002112/0.1477, allocations: 1.565 MB / 0.51 GB, free: 3.941 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.222e-06/0.1477, allocations: 4 kB / 0.51 GB, free: 3.938 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004774/0.1482, allocations: 107.8 kB / 0.5101 GB, free: 3.832 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.125e-05/0.1482, allocations: 7.938 kB / 0.5101 GB, free: 3.824 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.454e-05/0.1483, allocations: 24.08 kB / 0.5101 GB, free: 3.801 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.731e-06/0.1483, allocations: 4 kB / 0.5102 GB, free: 3.797 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.285e-06/0.1483, allocations: 0 / 0.5102 GB, free: 3.797 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001488/0.1498, allocations: 1.195 MB / 0.5113 GB, free: 2.562 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002502/0.1501, allocations: 196 kB / 0.5115 GB, free: 2.352 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.979e-05/0.1502, allocations: 16 kB / 0.5115 GB, free: 2.336 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003073/0.1505, allocations: 27.98 kB / 0.5115 GB, free: 2.309 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.919e-05/0.1506, allocations: 40.38 kB / 0.5116 GB, free: 2.27 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.316e-05/0.1507, allocations: 63.86 kB / 0.5116 GB, free: 2.207 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004019/0.1511, allocations: 387 kB / 0.512 GB, free: 1.832 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1511, allocations: 4.062 kB / 0.512 GB, free: 1.828 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006483/0.1518, allocations: 180 kB / 0.5122 GB, free: 1.652 MB / 398.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.001765/0.1535, allocations: 1.762 MB / 0.5139 GB, free: 15.83 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001547/0.1551, allocations: 1.004 MB / 0.5149 GB, free: 14.78 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.1551, allocations: 0 / 0.5149 GB, free: 14.78 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005341/0.1557, allocations: 0.4894 MB / 0.5154 GB, free: 14.27 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008117/0.1565, allocations: 168.2 kB / 0.5155 GB, free: 14.11 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008386/0.1649, allocations: 6.291 MB / 0.5217 GB, free: 7.48 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006611/0.1656, allocations: 1.005 MB / 0.5227 GB, free: 6.449 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000424/0.166, allocations: 153.8 kB / 0.5228 GB, free: 6.297 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003351/0.1663, allocations: 283.3 kB / 0.5231 GB, free: 6.023 MB / 414.1 MB Notification: Performance of SimCode: time 9.92e-07/0.1664, allocations: 3.938 kB / 0.5231 GB, free: 6.02 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2293/0.3956, allocations: 14.35 MB / 0.5371 GB, free: 52.22 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.25/12.65, allocations: 5.172 kB / 0.5371 GB, free: 52.22 MB / 414.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 & /home/hudson/saved_omc/OMSimulator/install/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)