Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.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.Elementary.Transformer,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Transformer,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Transformer",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.001093/0.001093, allocations: 111.5 kB / 17.06 MB, free: 6.102 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.002503/0.002503, allocations: 200 kB / 18 MB, free: 5.18 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.342/1.342, allocations: 205.1 MB / 223.9 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.18/0.18, 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.001443/0.001443, allocations: 67.91 kB / 431.4 MB, free: 16.14 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09254/0.094, allocations: 55.24 MB / 486.6 MB, free: 8.848 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Transformer): time 0.007243/0.1013, allocations: 5.519 MB / 492.1 MB, free: 3.297 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002446/0.1038, allocations: 1.403 MB / 493.5 MB, free: 1.887 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000397/0.1042, allocations: 23.81 kB / 493.6 MB, free: 1.863 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004955/0.1047, allocations: 139 kB / 493.7 MB, free: 1.727 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009763/0.1057, allocations: 370.1 kB / 494.1 MB, free: 1.363 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003616/0.1061, allocations: 151.8 kB / 494.2 MB, free: 1.215 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009231/0.107, allocations: 0.7826 MB / 495 MB, free: 440 kB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003127/0.1073, allocations: 217.7 kB / 495.2 MB, free: 224 kB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005738/0.1079, allocations: 346.6 kB / 495.5 MB, free: 15.88 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006949/0.1086, allocations: 402.5 kB / 495.9 MB, free: 15.48 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.759e-05/0.1087, allocations: 40 kB / 496 MB, free: 15.45 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001142/0.1089, allocations: 44 kB / 496 MB, free: 15.4 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000201/0.1091, allocations: 207.4 kB / 496.2 MB, free: 15.2 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003546/0.1094, allocations: 278.5 kB / 496.5 MB, free: 14.93 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006094/0.11, allocations: 0.5721 MB / 497.1 MB, free: 14.35 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.628e-06/0.1101, allocations: 0 / 497.1 MB, free: 14.35 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.996e-06/0.1101, allocations: 4 kB / 497.1 MB, free: 14.35 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.707e-05/0.1101, allocations: 0 / 497.1 MB, free: 14.35 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: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.001632/0.1117, allocations: 0.8919 MB / 497.9 MB, free: 13.4 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.268e-05/0.1118, allocations: 11.89 kB / 498 MB, free: 13.39 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.435e-05/0.1119, allocations: 86.69 kB / 498 MB, free: 13.29 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001103/0.112, allocations: 60.19 kB / 498.1 MB, free: 13.23 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009796/0.113, allocations: 0.5179 MB / 498.6 MB, free: 12.68 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.774e-05/0.113, allocations: 29 kB / 498.7 MB, free: 12.64 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.984e-05/0.1131, allocations: 40 kB / 498.7 MB, free: 12.61 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007743/0.1139, allocations: 0.5273 MB / 499.2 MB, free: 12.05 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.382e-05/0.1139, allocations: 4 kB / 499.2 MB, free: 12.04 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.897e-05/0.114, allocations: 16 kB / 499.2 MB, free: 12.03 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.465e-05/0.114, allocations: 17 kB / 499.3 MB, free: 12.01 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000623/0.1146, allocations: 395.6 kB / 499.6 MB, free: 11.62 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002546/0.1172, allocations: 1.928 MB / 0.4898 GB, free: 9.582 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005444/0.1177, allocations: 333.3 kB / 0.4901 GB, free: 9.238 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003005/0.1181, allocations: 177.7 kB / 0.4903 GB, free: 9.059 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.291e-05/0.1181, allocations: 4 kB / 0.4903 GB, free: 9.055 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003542/0.1184, allocations: 284.5 kB / 0.4906 GB, free: 8.746 MB / 382.1 MB Notification: Performance of pre-optimization done (n=35): time 2.004e-06/0.1185, allocations: 0 / 0.4906 GB, free: 8.746 MB / 382.1 MB Notification: Performance of matching and sorting (n=36): time 0.001891/0.1204, allocations: 1.179 MB / 0.4917 GB, free: 7.496 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001097/0.1205, allocations: 178.3 kB / 0.4919 GB, free: 7.285 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004051/0.1209, allocations: 397.8 kB / 0.4923 GB, free: 6.883 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.763e-05/0.1209, allocations: 29.7 kB / 0.4923 GB, free: 6.848 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002036/0.1211, allocations: 295.5 kB / 0.4926 GB, free: 6.555 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001056/0.1213, allocations: 118.3 kB / 0.4927 GB, free: 6.438 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001307/0.1214, allocations: 102.1 kB / 0.4928 GB, free: 6.332 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001478/0.1215, allocations: 354.8 kB / 0.4931 GB, free: 5.977 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002093/0.1218, allocations: 117 kB / 0.4932 GB, free: 5.863 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003238/0.1221, allocations: 290.1 kB / 0.4935 GB, free: 5.504 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006515/0.1228, allocations: 483.6 kB / 0.494 GB, free: 4.945 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.552e-06/0.1228, allocations: 4 kB / 0.494 GB, free: 4.941 MB / 382.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0008336/0.1236, allocations: 0.5228 MB / 0.4945 GB, free: 4.406 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.158e-05/0.1237, allocations: 37.69 kB / 0.4945 GB, free: 4.363 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.768e-06/0.1237, allocations: 4 kB / 0.4945 GB, free: 4.359 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.253e-05/0.1237, allocations: 8 kB / 0.4945 GB, free: 4.352 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004074/0.1241, allocations: 103.8 kB / 0.4946 GB, free: 4.25 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.71e-05/0.1242, allocations: 15.98 kB / 0.4947 GB, free: 4.234 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002579/0.1244, allocations: 19.98 kB / 0.4947 GB, free: 4.215 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.35e-05/0.1245, allocations: 36.17 kB / 0.4947 GB, free: 4.18 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 11 (system.initime,tapChanger.tap_2,$PRE.tapChanger.tap_2,tapChanger.tap_1,$PRE.tapChanger.tap_1,tapChanger.cnt_2,$PRE.tapChanger.cnt_2,tapChanger.cnt_1,$PRE.tapChanger.cnt_1,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (60): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002336/0.1247, allocations: 247.3 kB / 0.4949 GB, free: 3.922 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.005e-05/0.1248, allocations: 51.38 kB / 0.495 GB, free: 3.871 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006546/0.1254, allocations: 451.2 kB / 0.4954 GB, free: 3.418 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.1255, allocations: 4 kB / 0.4954 GB, free: 3.414 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.1255, allocations: 0 / 0.4954 GB, free: 3.414 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.1255, allocations: 0 / 0.4954 GB, free: 3.414 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00141/0.1269, allocations: 0.9859 MB / 0.4964 GB, free: 2.359 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.1269, allocations: 0 / 0.4964 GB, free: 2.359 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003027/0.1272, allocations: 59.91 kB / 0.4965 GB, free: 2.301 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.09e-06/0.1272, allocations: 0 / 0.4965 GB, free: 2.301 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.147e-05/0.1273, allocations: 19.97 kB / 0.4965 GB, free: 2.281 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.755e-06/0.1273, allocations: 0 / 0.4965 GB, free: 2.281 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.955e-06/0.1273, allocations: 3.938 kB / 0.4965 GB, free: 2.277 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009029/0.1282, allocations: 0.7076 MB / 0.4972 GB, free: 1.539 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001825/0.1284, allocations: 140.5 kB / 0.4973 GB, free: 1.383 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.501e-05/0.1285, allocations: 8 kB / 0.4973 GB, free: 1.375 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000218/0.1287, allocations: 15.98 kB / 0.4973 GB, free: 1.359 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.582e-05/0.1288, allocations: 31.97 kB / 0.4974 GB, free: 1.328 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.804e-05/0.1288, allocations: 39.84 kB / 0.4974 GB, free: 1.289 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002566/0.1291, allocations: 267.1 kB / 0.4976 GB, free: 1.031 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1291, allocations: 0 / 0.4976 GB, free: 1.031 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004296/0.1295, allocations: 100 kB / 0.4977 GB, free: 0.9336 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 1 (trafo.i1) * Number of discrete variables: 7 ($whenCondition1,$whenCondition2,tapChanger.tap_1,tapChanger.tap_2,tapChanger.cnt_1,tapChanger.cnt_2,system.initime) * Number of discrete states: 6 (tapChanger.tap_2,tapChanger.cnt_2,$whenCondition2,tapChanger.tap_1,tapChanger.cnt_1,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 1 * 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.001152/0.1307, allocations: 1.263 MB / 0.499 GB, free: 15.63 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005724/0.1313, allocations: 408.1 kB / 0.4994 GB, free: 15.22 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.1313, allocations: 8.062 kB / 0.4994 GB, free: 15.21 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003202/0.1316, allocations: 263.2 kB / 0.4996 GB, free: 14.94 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006308/0.1322, allocations: 117.3 kB / 0.4997 GB, free: 14.83 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004717/0.137, allocations: 4.116 MB / 0.5038 GB, free: 10.46 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004308/0.1374, allocations: 0.8781 MB / 0.5046 GB, free: 9.559 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002523/0.1377, allocations: 92.31 kB / 0.5047 GB, free: 9.465 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000215/0.1379, allocations: 171.4 kB / 0.5049 GB, free: 9.297 MB / 398.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1379, allocations: 0 / 0.5049 GB, free: 9.297 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02882/0.1667, allocations: 8.859 MB / 0.5135 GB, free: 388 kB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.55/8.717, allocations: 20 kB / 0.5135 GB, free: 368 kB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Transformer_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Transformer.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe 2>&1)