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.00114/0.00114, allocations: 105 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.001126/0.001126, 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.403/1.403, 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.1847/0.1847, allocations: 37.98 MB / 309.2 MB, free: 5.961 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.001364/0.001364, allocations: 67.91 kB / 431.4 MB, free: 16.15 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1043/0.1056, allocations: 55.23 MB / 486.6 MB, free: 8.852 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Transformer): time 0.006474/0.1121, allocations: 5.519 MB / 492.1 MB, free: 3.301 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002156/0.1143, allocations: 1.399 MB / 493.5 MB, free: 1.895 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002258/0.1146, allocations: 19.88 kB / 493.5 MB, free: 1.875 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004239/0.1151, allocations: 139 kB / 493.7 MB, free: 1.738 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007389/0.1158, allocations: 378.1 kB / 494.1 MB, free: 1.367 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003052/0.1161, allocations: 147.8 kB / 494.2 MB, free: 1.223 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007227/0.1169, allocations: 0.7787 MB / 495 MB, free: 452 kB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003013/0.1172, allocations: 221.6 kB / 495.2 MB, free: 232 kB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004306/0.1176, allocations: 346.5 kB / 495.5 MB, free: 15.89 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000542/0.1182, allocations: 406.6 kB / 495.9 MB, free: 15.49 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.288e-05/0.1182, allocations: 40 kB / 496 MB, free: 15.45 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.287e-05/0.1183, allocations: 40 kB / 496 MB, free: 15.41 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002109/0.1186, allocations: 207.4 kB / 496.2 MB, free: 15.21 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002564/0.1188, allocations: 274.5 kB / 496.5 MB, free: 14.94 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005829/0.1194, allocations: 0.5722 MB / 497 MB, free: 14.36 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.1194, allocations: 0 / 497 MB, free: 14.36 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.1194, allocations: 0 / 497 MB, free: 14.36 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.111e-05/0.1194, allocations: 3.984 kB / 497 MB, free: 14.36 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.001405/0.1209, allocations: 0.8958 MB / 497.9 MB, free: 13.41 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.888e-05/0.1209, allocations: 11.89 kB / 498 MB, free: 13.39 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.268e-05/0.121, allocations: 82.7 kB / 498 MB, free: 13.3 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.929e-05/0.1211, allocations: 60.19 kB / 498.1 MB, free: 13.25 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007555/0.1218, allocations: 0.5101 MB / 498.6 MB, free: 12.7 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.67e-05/0.1219, allocations: 33 kB / 498.6 MB, free: 12.66 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.533e-05/0.122, allocations: 43.97 kB / 498.7 MB, free: 12.62 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007378/0.1227, allocations: 0.5312 MB / 499.2 MB, free: 12.05 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.32e-05/0.1227, allocations: 0 / 499.2 MB, free: 12.05 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.837e-05/0.1228, allocations: 23.94 kB / 499.2 MB, free: 12.03 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.088e-05/0.1228, allocations: 17 kB / 499.3 MB, free: 12.02 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005787/0.1234, allocations: 395.6 kB / 499.6 MB, free: 11.63 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002328/0.1257, allocations: 1.928 MB / 0.4898 GB, free: 9.586 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005582/0.1263, allocations: 325.3 kB / 0.4901 GB, free: 9.25 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003034/0.1266, allocations: 189.6 kB / 0.4903 GB, free: 9.059 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.716e-05/0.1267, allocations: 7.938 kB / 0.4903 GB, free: 9.051 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003516/0.127, allocations: 276.6 kB / 0.4906 GB, free: 8.75 MB / 382.1 MB Notification: Performance of pre-optimization done (n=35): time 1.673e-06/0.127, allocations: 0 / 0.4906 GB, free: 8.75 MB / 382.1 MB Notification: Performance of matching and sorting (n=36): time 0.001704/0.1288, allocations: 1.187 MB / 0.4917 GB, free: 7.492 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.388e-05/0.1289, allocations: 166.2 kB / 0.4919 GB, free: 7.293 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003737/0.1292, allocations: 397.8 kB / 0.4923 GB, free: 6.891 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.534e-05/0.1293, allocations: 29.7 kB / 0.4923 GB, free: 6.855 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001978/0.1295, allocations: 295.6 kB / 0.4926 GB, free: 6.562 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.33e-05/0.1296, allocations: 122.3 kB / 0.4927 GB, free: 6.441 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001146/0.1297, allocations: 98.16 kB / 0.4928 GB, free: 6.34 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001502/0.1299, allocations: 358.8 kB / 0.4931 GB, free: 5.98 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001932/0.1301, allocations: 121 kB / 0.4932 GB, free: 5.863 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000305/0.1304, allocations: 286.1 kB / 0.4935 GB, free: 5.508 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000525/0.1309, allocations: 483.6 kB / 0.494 GB, free: 4.949 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.641e-06/0.1309, allocations: 8 kB / 0.494 GB, free: 4.941 MB / 382.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0007198/0.1316, allocations: 0.5185 MB / 0.4945 GB, free: 4.41 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.834e-05/0.1317, allocations: 33.7 kB / 0.4945 GB, free: 4.371 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.786e-06/0.1317, allocations: 4 kB / 0.4945 GB, free: 4.367 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.102e-05/0.1317, allocations: 8 kB / 0.4945 GB, free: 4.359 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004058/0.1321, allocations: 107.8 kB / 0.4946 GB, free: 4.254 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.366e-05/0.1322, allocations: 12.47 kB / 0.4947 GB, free: 4.242 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002423/0.1324, allocations: 27.98 kB / 0.4947 GB, free: 4.215 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.674e-05/0.1325, allocations: 35.97 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.000231/0.1327, allocations: 243.3 kB / 0.4949 GB, free: 3.926 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.593e-05/0.1328, allocations: 51.36 kB / 0.495 GB, free: 3.875 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006259/0.1334, allocations: 451.2 kB / 0.4954 GB, free: 3.422 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.521e-06/0.1334, allocations: 4 kB / 0.4954 GB, free: 3.418 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.1334, allocations: 0 / 0.4954 GB, free: 3.418 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.1334, allocations: 4 kB / 0.4954 GB, free: 3.414 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001201/0.1346, allocations: 0.9819 MB / 0.4964 GB, free: 2.363 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.298e-06/0.1347, allocations: 4 kB / 0.4964 GB, free: 2.359 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002861/0.1349, allocations: 59.91 kB / 0.4965 GB, free: 2.301 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.236e-06/0.135, allocations: 0 / 0.4965 GB, free: 2.301 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.747e-05/0.135, allocations: 11.98 kB / 0.4965 GB, free: 2.289 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.408e-06/0.135, allocations: 8.062 kB / 0.4965 GB, free: 2.281 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.135, allocations: 0 / 0.4965 GB, free: 2.281 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008792/0.1359, allocations: 0.7037 MB / 0.4972 GB, free: 1.547 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001844/0.1361, allocations: 136.5 kB / 0.4973 GB, free: 1.395 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.106e-05/0.1362, allocations: 15.92 kB / 0.4973 GB, free: 1.379 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002078/0.1364, allocations: 16.06 kB / 0.4973 GB, free: 1.363 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.034e-05/0.1364, allocations: 27.91 kB / 0.4973 GB, free: 1.336 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.642e-05/0.1365, allocations: 35.94 kB / 0.4974 GB, free: 1.301 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002616/0.1368, allocations: 275.1 kB / 0.4976 GB, free: 1.035 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1368, allocations: 0 / 0.4976 GB, free: 1.035 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004289/0.1372, allocations: 100 kB / 0.4977 GB, free: 0.9375 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.001147/0.1384, allocations: 1.278 MB / 0.499 GB, free: 15.62 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006106/0.139, allocations: 407.5 kB / 0.4994 GB, free: 15.21 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.967e-06/0.139, allocations: 0 / 0.4994 GB, free: 15.21 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002883/0.1393, allocations: 259.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.0006114/0.1399, allocations: 118.5 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.004744/0.1447, allocations: 4.108 MB / 0.5038 GB, free: 10.47 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004855/0.1452, allocations: 0.8898 MB / 0.5046 GB, free: 9.555 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002428/0.1454, allocations: 84.31 kB / 0.5047 GB, free: 9.469 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000208/0.1457, allocations: 175.4 kB / 0.5049 GB, free: 9.297 MB / 398.1 MB Notification: Performance of SimCode: time 6.11e-07/0.1457, allocations: 0 / 0.5049 GB, free: 9.297 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03084/0.1765, allocations: 8.851 MB / 0.5135 GB, free: 396 kB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.452/8.628, allocations: 20 kB / 0.5135 GB, free: 376 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)