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.001146/0.001146, allocations: 112.9 kB / 17.06 MB, free: 5.996 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.001199/0.001199, allocations: 198.9 kB / 18 MB, free: 5.078 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.344/1.344, allocations: 205.1 MB / 223.9 MB, free: 12.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1743/0.1743, allocations: 37.99 MB / 309.2 MB, free: 5.949 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.001702/0.001703, allocations: 64.33 kB / 431.4 MB, free: 16.14 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1048/0.1065, allocations: 55.24 MB / 486.6 MB, free: 8.84 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger): time 0.009175/0.1158, allocations: 7.302 MB / 493.9 MB, free: 1.5 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003201/0.119, allocations: 1.758 MB / 495.7 MB, free: 15.73 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006866/0.1197, allocations: 27.81 kB / 495.7 MB, free: 15.71 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009094/0.1207, allocations: 230.5 kB / 495.9 MB, free: 15.48 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001804/0.1225, allocations: 0.5676 MB / 496.5 MB, free: 14.91 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006518/0.1232, allocations: 219.6 kB / 496.7 MB, free: 14.7 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001784/0.125, allocations: 1.266 MB / 498 MB, free: 13.43 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005178/0.1255, allocations: 362.5 kB / 498.3 MB, free: 13.07 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001001/0.1265, allocations: 0.5446 MB / 498.9 MB, free: 12.52 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001128/0.1277, allocations: 0.6423 MB / 499.5 MB, free: 11.88 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001846/0.1279, allocations: 60 kB / 499.6 MB, free: 11.82 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002207/0.1281, allocations: 64 kB / 499.6 MB, free: 11.76 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003435/0.1285, allocations: 335.1 kB / 500 MB, free: 11.43 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006669/0.1291, allocations: 433.7 kB / 0.4886 GB, free: 11 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009474/0.1301, allocations: 0.9147 MB / 0.4895 GB, free: 10.09 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.708e-06/0.1301, allocations: 0 / 0.4895 GB, free: 10.09 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.1301, allocations: 0 / 0.4895 GB, free: 10.09 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.86e-05/0.1302, 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.002227/0.1324, allocations: 1.229 MB / 0.4907 GB, free: 8.789 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.166e-05/0.1324, allocations: 19.81 kB / 0.4908 GB, free: 8.77 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001473/0.1326, allocations: 110.7 kB / 0.4909 GB, free: 8.652 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001906/0.1328, allocations: 99.8 kB / 0.491 GB, free: 8.555 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00138/0.1342, allocations: 0.7069 MB / 0.4917 GB, free: 7.805 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.585e-05/0.1342, allocations: 45.31 kB / 0.4917 GB, free: 7.762 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001143/0.1344, allocations: 67.98 kB / 0.4918 GB, free: 7.695 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001291/0.1357, allocations: 0.8137 MB / 0.4926 GB, free: 6.844 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.132e-05/0.1357, allocations: 3.984 kB / 0.4926 GB, free: 6.84 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.811e-05/0.1358, allocations: 28 kB / 0.4926 GB, free: 6.812 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.938e-05/0.1358, allocations: 37.3 kB / 0.4926 GB, free: 6.773 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001014/0.1368, allocations: 0.614 MB / 0.4932 GB, free: 6.16 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003715/0.1406, allocations: 2.622 MB / 0.4958 GB, free: 3.426 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009622/0.1415, allocations: 0.605 MB / 0.4964 GB, free: 2.805 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006973/0.1423, allocations: 391.1 kB / 0.4967 GB, free: 2.41 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.776e-05/0.1423, allocations: 8.438 kB / 0.4968 GB, free: 2.402 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007022/0.143, allocations: 475 kB / 0.4972 GB, free: 1.898 MB / 382.1 MB Notification: Performance of pre-optimization done (n=63): time 1.159e-05/0.1431, allocations: 7.984 kB / 0.4972 GB, free: 1.891 MB / 382.1 MB Notification: Performance of matching and sorting (n=64): time 0.003001/0.1461, allocations: 1.977 MB / 0.4991 GB, free: 15.82 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001468/0.1462, allocations: 259.7 kB / 0.4994 GB, free: 15.51 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006498/0.1469, allocations: 0.5625 MB / 0.4999 GB, free: 14.94 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.071e-05/0.1469, allocations: 37.7 kB / 0.5 GB, free: 14.9 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003011/0.1473, allocations: 403.4 kB / 0.5004 GB, free: 14.5 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002127/0.1475, allocations: 209.1 kB / 0.5006 GB, free: 14.29 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002039/0.1477, allocations: 146.6 kB / 0.5007 GB, free: 14.14 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001664/0.1479, allocations: 386.8 kB / 0.5011 GB, free: 13.76 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003599/0.1482, allocations: 225.9 kB / 0.5013 GB, free: 13.54 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005209/0.1488, allocations: 449.8 kB / 0.5017 GB, free: 13 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000901/0.1497, allocations: 0.7974 MB / 0.5025 GB, free: 12.08 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.081e-06/0.1497, allocations: 7.938 kB / 0.5025 GB, free: 12.07 MB / 398.1 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.001526/0.1512, allocations: 0.9404 MB / 0.5034 GB, free: 11.11 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.374e-05/0.1513, allocations: 63.41 kB / 0.5035 GB, free: 11.03 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.59e-05/0.1513, allocations: 15.88 kB / 0.5035 GB, free: 11.02 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003842/0.1517, allocations: 118 kB / 0.5036 GB, free: 10.89 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000474/0.1522, allocations: 147.7 kB / 0.5037 GB, free: 10.75 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003167/0.1554, allocations: 3.547 MB / 0.5072 GB, free: 6.93 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004829/0.1559, allocations: 39.97 kB / 0.5073 GB, free: 6.891 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.708e-05/0.156, allocations: 59.84 kB / 0.5073 GB, free: 6.832 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.0004687/0.1564, allocations: 358.7 kB / 0.5076 GB, free: 6.461 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001193/0.1566, allocations: 71.16 kB / 0.5077 GB, free: 6.391 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001134/0.1577, allocations: 0.7819 MB / 0.5085 GB, free: 5.582 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.113e-06/0.1577, allocations: 7.984 kB / 0.5085 GB, free: 5.574 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.677e-06/0.1577, allocations: 4 kB / 0.5085 GB, free: 5.57 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.8e-06/0.1577, allocations: 0 / 0.5085 GB, free: 5.57 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002328/0.1601, allocations: 1.561 MB / 0.51 GB, free: 3.93 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.128e-06/0.1601, allocations: 0 / 0.51 GB, free: 3.93 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004839/0.1606, allocations: 107.9 kB / 0.5101 GB, free: 3.824 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.612e-06/0.1606, allocations: 8.031 kB / 0.5101 GB, free: 3.816 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.55e-05/0.1607, allocations: 31.97 kB / 0.5102 GB, free: 3.785 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.46e-06/0.1607, allocations: 3.938 kB / 0.5102 GB, free: 3.781 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.1607, allocations: 4 kB / 0.5102 GB, free: 3.777 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001538/0.1622, allocations: 1.187 MB / 0.5113 GB, free: 2.551 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003451/0.1626, allocations: 192 kB / 0.5115 GB, free: 2.344 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.444e-05/0.1627, allocations: 16 kB / 0.5115 GB, free: 2.328 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000341/0.163, allocations: 27.97 kB / 0.5115 GB, free: 2.301 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001043/0.1631, allocations: 40.33 kB / 0.5116 GB, free: 2.262 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.074e-05/0.1632, allocations: 67.98 kB / 0.5117 GB, free: 2.195 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004943/0.1637, allocations: 387.1 kB / 0.512 GB, free: 1.82 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.1638, allocations: 4.062 kB / 0.512 GB, free: 1.816 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007903/0.1645, allocations: 176 kB / 0.5122 GB, free: 1.645 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.002031/0.1666, allocations: 1.766 MB / 0.5139 GB, free: 15.82 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001427/0.168, allocations: 1.003 MB / 0.5149 GB, free: 14.77 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.965e-06/0.168, allocations: 0 / 0.5149 GB, free: 14.77 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005915/0.1686, allocations: 0.4973 MB / 0.5154 GB, free: 14.25 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000845/0.1695, allocations: 156.3 kB / 0.5155 GB, free: 14.1 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009128/0.1786, allocations: 6.295 MB / 0.5217 GB, free: 7.469 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007016/0.1794, allocations: 1.013 MB / 0.5227 GB, free: 6.43 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004165/0.1798, allocations: 149.8 kB / 0.5228 GB, free: 6.281 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003263/0.1801, allocations: 275.3 kB / 0.5231 GB, free: 6.016 MB / 414.1 MB Notification: Performance of SimCode: time 6.01e-07/0.1801, allocations: 0 / 0.5231 GB, free: 6.016 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2371/0.4172, allocations: 14.36 MB / 0.5371 GB, free: 51.61 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.49/11.9, allocations: 9.5 kB / 0.5371 GB, free: 51.6 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)