Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Transformer,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Transformer,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_Transformer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001495/0.001499, allocations: 188.1 kB / 15.77 MB, free: 5.984 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.937/1.937, allocations: 205.4 MB / 221.9 MB, free: 13.8 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001109/0.001108, allocations: 94.86 kB / 270.2 MB, free: 13.34 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2532/0.2532, allocations: 38.06 MB / 356.6 MB, free: 0.7734 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004455/0.0004454, allocations: 20 kB / 422.8 MB, free: 26.3 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1087/0.1092, allocations: 56.33 MB / 479.1 MB, free: 1.922 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Transformer): time 0.008838/0.1181, allocations: 5.586 MB / 484.7 MB, free: 12.31 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.003768/0.1219, allocations: 1.654 MB / 486.4 MB, free: 10.65 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004079/0.1223, allocations: 39.69 kB / 486.4 MB, free: 10.61 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004431/0.1228, allocations: 115.2 kB / 486.5 MB, free: 10.5 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001163/0.124, allocations: 346.9 kB / 486.9 MB, free: 10.16 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005971/0.1246, allocations: 179.7 kB / 487 MB, free: 9.98 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007076/0.1253, allocations: 419.1 kB / 487.4 MB, free: 9.57 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003622/0.1257, allocations: 164 kB / 487.6 MB, free: 9.406 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005134/0.1262, allocations: 251 kB / 487.9 MB, free: 9.16 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006388/0.1269, allocations: 279 kB / 488.1 MB, free: 8.887 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 8.242e-05/0.127, allocations: 20 kB / 488.1 MB, free: 8.867 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001079/0.1271, allocations: 24 kB / 488.2 MB, free: 8.844 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002446/0.1273, allocations: 167.5 kB / 488.3 MB, free: 8.68 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001614/0.1275, allocations: 121.4 kB / 488.5 MB, free: 8.555 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000604/0.1281, allocations: 426.9 kB / 488.9 MB, free: 8.137 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.515e-06/0.1281, allocations: 3.938 kB / 488.9 MB, free: 8.133 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1282, allocations: 0 / 488.9 MB, free: 8.133 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.334e-06/0.1282, allocations: 0 / 488.9 MB, free: 8.133 MB / 330.7 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.001884/0.1301, allocations: 0.8062 MB / 489.7 MB, free: 7.273 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.472e-05/0.1301, allocations: 8.031 kB / 489.7 MB, free: 7.266 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001291/0.1303, allocations: 86.48 kB / 489.8 MB, free: 7.172 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001401/0.1304, allocations: 63.25 kB / 489.8 MB, free: 7.109 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001114/0.1315, allocations: 481.5 kB / 490.3 MB, free: 6.598 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.587e-05/0.1316, allocations: 29 kB / 490.3 MB, free: 6.57 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.921e-05/0.1317, allocations: 40 kB / 490.4 MB, free: 6.531 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00121/0.1329, allocations: 0.5273 MB / 490.9 MB, free: 5.965 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.939e-05/0.133, allocations: 0 / 490.9 MB, free: 5.965 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.393e-05/0.133, allocations: 23.98 kB / 490.9 MB, free: 5.941 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.422e-05/0.1331, allocations: 24.94 kB / 490.9 MB, free: 5.918 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001022/0.1341, allocations: 387.6 kB / 491.3 MB, free: 5.539 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00355/0.1377, allocations: 1.936 MB / 493.3 MB, free: 3.492 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008789/0.1386, allocations: 325.3 kB / 493.6 MB, free: 3.156 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.434e-05/0.1386, allocations: 8.062 kB / 493.6 MB, free: 3.148 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005652/0.1392, allocations: 276.2 kB / 493.9 MB, free: 2.848 MB / 330.7 MB Notification: Performance of pre-optimization done (n=35): time 2.174e-06/0.1392, allocations: 0 / 493.9 MB, free: 2.848 MB / 330.7 MB Notification: Performance of matching and sorting (n=36): time 0.003125/0.1424, allocations: 1.453 MB / 495.3 MB, free: 1.266 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001261/0.1425, allocations: 166.2 kB / 495.5 MB, free: 1.066 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006239/0.1432, allocations: 393.9 kB / 495.9 MB, free: 0.6758 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.347e-05/0.1432, allocations: 29.7 kB / 495.9 MB, free: 0.6406 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002736/0.1435, allocations: 338 kB / 496.2 MB, free: 316 kB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001361/0.1436, allocations: 118.3 kB / 496.3 MB, free: 196 kB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.125e-05/0.1437, allocations: 12 kB / 496.3 MB, free: 184 kB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001688/0.1439, allocations: 334.8 kB / 496.7 MB, free: 15.84 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003397/0.1442, allocations: 125 kB / 496.8 MB, free: 15.72 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004748/0.1447, allocations: 282.1 kB / 497.1 MB, free: 15.37 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004366/0.1452, allocations: 181.6 kB / 497.2 MB, free: 15.19 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.787e-06/0.1452, allocations: 3.938 kB / 497.2 MB, free: 15.18 MB / 346.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001266/0.1465, allocations: 0.5911 MB / 497.8 MB, free: 14.56 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.419e-05/0.1465, allocations: 33.7 kB / 497.9 MB, free: 14.52 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.471e-05/0.1465, allocations: 8 kB / 497.9 MB, free: 14.51 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001673/0.1467, allocations: 32.83 kB / 497.9 MB, free: 14.48 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007134/0.1474, allocations: 100.3 kB / 498 MB, free: 14.38 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001311/0.1488, allocations: 1.385 MB / 499.4 MB, free: 12.86 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004517/0.1492, allocations: 32.17 kB / 499.4 MB, free: 12.83 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.318e-05/0.1493, allocations: 35.92 kB / 499.5 MB, free: 12.79 MB / 346.7 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,$PRE.tapChanger.tap_1,tapChanger.tap_1,$PRE.tapChanger.tap_2,tapChanger.tap_2,$whenCondition1,$whenCondition2,$PRE.tapChanger.cnt_1,tapChanger.cnt_1,$PRE.tapChanger.cnt_2,tapChanger.cnt_2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (59): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003921/0.1497, allocations: 247.3 kB / 499.7 MB, free: 12.54 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.694e-05/0.1498, allocations: 51.38 kB / 499.8 MB, free: 12.48 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0012/0.151, allocations: 0.5441 MB / 0.4886 GB, free: 11.9 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.204e-06/0.1511, allocations: 4 kB / 0.4886 GB, free: 11.9 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.1511, allocations: 0 / 0.4886 GB, free: 11.9 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.305e-06/0.1511, allocations: 3.984 kB / 0.4886 GB, free: 11.89 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00201/0.1531, allocations: 1.077 MB / 0.4896 GB, free: 10.73 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.756e-06/0.1531, allocations: 8 kB / 0.4896 GB, free: 10.72 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005304/0.1537, allocations: 59.94 kB / 0.4897 GB, free: 10.66 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.024e-05/0.1538, allocations: 20.84 kB / 0.4897 GB, free: 10.64 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.853e-05/0.1538, allocations: 12 kB / 0.4897 GB, free: 10.63 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001245/0.1551, allocations: 1.385 MB / 0.4911 GB, free: 9.109 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.1551, allocations: 3.938 kB / 0.4911 GB, free: 9.105 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001625/0.1567, allocations: 0.8243 MB / 0.4919 GB, free: 8.219 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002232/0.157, allocations: 144.5 kB / 0.492 GB, free: 8.059 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.309e-05/0.1571, allocations: 8 kB / 0.492 GB, free: 8.051 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003753/0.1575, allocations: 15.98 kB / 0.492 GB, free: 8.035 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.882e-05/0.1576, allocations: 27.91 kB / 0.4921 GB, free: 8.008 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.352e-05/0.1577, allocations: 40.02 kB / 0.4921 GB, free: 7.969 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.000409/0.1581, allocations: 263.1 kB / 0.4924 GB, free: 7.715 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.1581, allocations: 0 / 0.4924 GB, free: 7.715 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007505/0.1589, allocations: 104 kB / 0.4925 GB, free: 7.613 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (32): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002023/0.1609, allocations: 1.53 MB / 0.494 GB, free: 6.012 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001144/0.1621, allocations: 0.5141 MB / 0.4945 GB, free: 5.473 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.1621, allocations: 4 kB / 0.4945 GB, free: 5.469 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000669/0.1628, allocations: 370.3 kB / 0.4948 GB, free: 5.082 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007397/0.1635, allocations: 97.83 kB / 0.4949 GB, free: 4.984 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007376/0.1709, allocations: 6.413 MB / 0.5012 GB, free: 14.38 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006454/0.1716, allocations: 0.8976 MB / 0.502 GB, free: 13.46 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003741/0.172, allocations: 175.4 kB / 0.5022 GB, free: 13.29 MB / 362.7 MB Notification: Performance of SimCode: time 1.022e-06/0.172, allocations: 0 / 0.5022 GB, free: 13.29 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.691/2.863, allocations: 9.951 MB / 0.5119 GB, free: 3.332 MB / 362.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_Transformer_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_Transformer.fmu > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe 2>&1)