Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.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.AC3ph.Elementary.Transformer,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Transformer,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_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.001595/0.001599, allocations: 188.8 kB / 15.77 MB, free: 5.988 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.976/1.976, allocations: 205.4 MB / 221.9 MB, free: 13.81 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.001139/0.001138, allocations: 82.86 kB / 270.2 MB, free: 13.35 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2648/0.2648, allocations: 38.06 MB / 356.6 MB, free: 0.7852 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004454/0.0004454, allocations: 12 kB / 422.8 MB, free: 26.32 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.1058, allocations: 56.33 MB / 479.1 MB, free: 1.93 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Transformer): time 0.01021/0.1161, allocations: 6.447 MB / 485.6 MB, free: 11.45 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.006747/0.1229, allocations: 2.636 MB / 488.2 MB, free: 8.809 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008214/0.1238, allocations: 47.69 kB / 488.3 MB, free: 8.762 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007142/0.1245, allocations: 186.9 kB / 488.4 MB, free: 8.578 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002174/0.1267, allocations: 0.5218 MB / 489 MB, free: 8.055 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001651/0.1284, allocations: 407.1 kB / 489.4 MB, free: 7.656 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001327/0.1297, allocations: 0.6328 MB / 490 MB, free: 7.023 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001607/0.1313, allocations: 0.6985 MB / 490.7 MB, free: 6.293 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008777/0.1322, allocations: 402.4 kB / 491.1 MB, free: 5.898 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001109/0.1334, allocations: 0.5142 MB / 491.6 MB, free: 5.383 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001414/0.1335, allocations: 36 kB / 491.6 MB, free: 5.348 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005945/0.1341, allocations: 171.7 kB / 491.8 MB, free: 5.18 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006451/0.1348, allocations: 451 kB / 492.3 MB, free: 4.738 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003073/0.1351, allocations: 213.1 kB / 492.5 MB, free: 4.523 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001509/0.1366, allocations: 0.9781 MB / 493.4 MB, free: 3.535 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.986e-06/0.1366, allocations: 4 kB / 493.4 MB, free: 3.531 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.295e-06/0.1367, allocations: 0 / 493.4 MB, free: 3.531 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.194e-05/0.1367, allocations: 0 / 493.4 MB, free: 3.531 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: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.003148/0.1398, allocations: 1.147 MB / 494.6 MB, free: 2.324 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.77e-05/0.1399, allocations: 8.031 kB / 494.6 MB, free: 2.316 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002663/0.1402, allocations: 152.1 kB / 494.7 MB, free: 2.16 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001628/0.1418, allocations: 214.4 kB / 495 MB, free: 1.949 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001827/0.1437, allocations: 0.6618 MB / 495.6 MB, free: 1.246 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.418e-05/0.1438, allocations: 57.98 kB / 495.7 MB, free: 1.188 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003356/0.1441, allocations: 99.91 kB / 495.8 MB, free: 1.09 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00307/0.1472, allocations: 1.372 MB / 497.1 MB, free: 15.62 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.441e-05/0.1473, allocations: 4 kB / 497.1 MB, free: 15.61 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001385/0.1474, allocations: 43.94 kB / 497.2 MB, free: 15.57 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004623/0.1479, allocations: 113.9 kB / 497.3 MB, free: 15.46 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002931/0.1508, allocations: 1.077 MB / 498.4 MB, free: 14.38 MB / 346.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0105/0.1614, allocations: 5.954 MB / 0.4925 GB, free: 8.117 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001942/0.1633, allocations: 0.7207 MB / 0.4932 GB, free: 7.359 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.584e-05/0.1634, allocations: 12.61 kB / 0.4932 GB, free: 7.348 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009876/0.1644, allocations: 484.7 kB / 0.4937 GB, free: 6.848 MB / 346.7 MB Notification: Performance of pre-optimization done (n=65): time 3.176e-06/0.1645, allocations: 0 / 0.4937 GB, free: 6.848 MB / 346.7 MB Notification: Performance of matching and sorting (n=66): time 0.005374/0.1698, allocations: 2.201 MB / 0.4958 GB, free: 4.551 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001233/0.17, allocations: 174.8 kB / 0.496 GB, free: 4.344 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001085/0.1711, allocations: 0.6329 MB / 0.4966 GB, free: 3.703 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.473e-05/0.1712, allocations: 41.64 kB / 0.4967 GB, free: 3.656 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005238/0.1717, allocations: 0.5625 MB / 0.4972 GB, free: 3.086 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002776/0.172, allocations: 236.8 kB / 0.4974 GB, free: 2.852 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.963e-05/0.1721, allocations: 20 kB / 0.4975 GB, free: 2.832 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001782/0.1723, allocations: 354.8 kB / 0.4978 GB, free: 2.477 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008642/0.1732, allocations: 334.4 kB / 0.4981 GB, free: 2.148 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001252/0.1744, allocations: 0.7542 MB / 0.4988 GB, free: 1.191 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001194/0.1756, allocations: 0.4917 MB / 0.4993 GB, free: 0.6953 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-05/0.1757, allocations: 4 kB / 0.4993 GB, free: 0.6914 MB / 346.7 MB Notification: Performance of matching and sorting (n=136) (initialization): time 0.003923/0.1796, allocations: 1.4 MB / 0.5007 GB, free: 15.27 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.675e-05/0.1797, allocations: 41.66 kB / 0.5007 GB, free: 15.23 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002373/0.1821, allocations: 0.7821 MB / 0.5015 GB, free: 14.44 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001212/0.1833, allocations: 253.5 kB / 0.5017 GB, free: 14.18 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001412/0.1847, allocations: 223.6 kB / 0.502 GB, free: 13.96 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007121/0.1919, allocations: 4.134 MB / 0.506 GB, free: 9.555 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001031/0.193, allocations: 56.03 kB / 0.5061 GB, free: 9.5 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001449/0.1931, allocations: 59.98 kB / 0.5061 GB, free: 9.441 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 66 * Number of states: 0 () * Number of discrete variables: 11 (system.initime,$whenCondition1,$whenCondition2,$PRE.tapChanger.cnt_1,tapChanger.cnt_1,$PRE.tapChanger.cnt_2,tapChanger.cnt_2,$PRE.tapChanger.tap_1,tapChanger.tap_1,$PRE.tapChanger.tap_2,tapChanger.tap_2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (119): * Single equations (assignments): 116 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 12,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008146/0.194, allocations: 406.9 kB / 0.5065 GB, free: 9.027 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000162/0.1941, allocations: 82.95 kB / 0.5066 GB, free: 8.945 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002172/0.1963, allocations: 0.836 MB / 0.5074 GB, free: 8.09 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.068e-05/0.1963, allocations: 4 kB / 0.5074 GB, free: 8.086 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.534e-06/0.1964, allocations: 3.984 kB / 0.5074 GB, free: 8.082 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.408e-06/0.1964, allocations: 4.062 kB / 0.5074 GB, free: 8.078 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004194/0.2006, allocations: 1.76 MB / 0.5091 GB, free: 6.246 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.781e-06/0.2006, allocations: 0 / 0.5091 GB, free: 6.246 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001398/0.202, allocations: 163.8 kB / 0.5093 GB, free: 6.086 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.156e-05/0.202, allocations: 4 kB / 0.5093 GB, free: 6.082 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.949e-05/0.2021, allocations: 23.92 kB / 0.5093 GB, free: 6.059 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.678e-06/0.2022, allocations: 4 kB / 0.5093 GB, free: 6.055 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.34e-06/0.2022, allocations: 4.156 kB / 0.5093 GB, free: 6.051 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002928/0.2051, allocations: 1.366 MB / 0.5106 GB, free: 4.602 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004427/0.2056, allocations: 200.2 kB / 0.5108 GB, free: 4.387 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001429/0.2057, allocations: 19.98 kB / 0.5109 GB, free: 4.367 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000643/0.2064, allocations: 31.97 kB / 0.5109 GB, free: 4.336 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001603/0.2066, allocations: 48.53 kB / 0.5109 GB, free: 4.289 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001159/0.2067, allocations: 43.95 kB / 0.511 GB, free: 4.246 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000732/0.2074, allocations: 427 kB / 0.5114 GB, free: 3.832 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.2074, allocations: 4 kB / 0.5114 GB, free: 3.828 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001232/0.2087, allocations: 232 kB / 0.5116 GB, free: 3.602 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (trafo.i1[1],trafo.i1[2],trafo.i1[3]) * 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 (64): * Single equations (assignments): 62 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003442/0.2121, allocations: 2.323 MB / 0.5139 GB, free: 1.203 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.2885/0.5007, allocations: 1.224 MB / 0.5151 GB, free: 52.91 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 8.126e-06/0.5007, allocations: 0.8125 kB / 0.5151 GB, free: 52.91 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001118/0.5018, allocations: 458.3 kB / 0.5155 GB, free: 52.85 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001025/0.5029, allocations: 117.4 kB / 0.5156 GB, free: 52.84 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01457/0.5175, allocations: 15.58 MB / 0.5308 GB, free: 40.73 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001/0.5185, allocations: 1.137 MB / 0.5319 GB, free: 39.98 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007259/0.5193, allocations: 343.4 kB / 0.5323 GB, free: 39.73 MB / 362.7 MB Notification: Performance of SimCode: time 1.323e-06/0.5193, allocations: 0 / 0.5323 GB, free: 39.73 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.972/3.492, allocations: 17.74 MB / 0.5496 GB, free: 30.54 MB / 362.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Transformer.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Transformer.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Transformer.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Transformer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Transformer_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Transformer.fmu > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Transformer.pipe 2>&1)