Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.AC3ph.Elementary.Transformer,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Transformer,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_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.001158/0.001158, allocations: 107.3 kB / 16.92 MB, free: 5.664 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.001203/0.001203, allocations: 190.8 kB / 17.85 MB, free: 5.176 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.326/1.326, allocations: 222.9 MB / 241.5 MB, free: 15.32 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1721/0.1721, allocations: 38.02 MB / 329.7 MB, free: 8.816 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001188/0.001188, allocations: 67.75 kB / 398.9 MB, free: 33.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08901/0.09022, allocations: 58.06 MB / 457 MB, free: 7.965 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Transformer): time 0.008396/0.09865, allocations: 6.521 MB / 463.5 MB, free: 1.414 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004387/0.1031, allocations: 2.445 MB / 465.9 MB, free: 14.96 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005965/0.1037, allocations: 23.88 kB / 466 MB, free: 14.94 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001699/0.1054, allocations: 0.6062 MB / 466.6 MB, free: 14.33 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001737/0.1072, allocations: 0.6847 MB / 467.2 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001345/0.1085, allocations: 447 kB / 467.7 MB, free: 13.21 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001783/0.1103, allocations: 1.372 MB / 469.1 MB, free: 11.83 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008661/0.1112, allocations: 483.9 kB / 469.5 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009898/0.1122, allocations: 0.5681 MB / 470.1 MB, free: 10.79 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001301/0.1135, allocations: 0.7866 MB / 470.9 MB, free: 9.996 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000147/0.1137, allocations: 76 kB / 471 MB, free: 9.922 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005835/0.1143, allocations: 275.6 kB / 471.2 MB, free: 9.652 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004573/0.1147, allocations: 0.5182 MB / 471.7 MB, free: 9.133 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005068/0.1153, allocations: 0.5247 MB / 472.3 MB, free: 8.605 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001192/0.1165, allocations: 1.308 MB / 473.6 MB, free: 7.293 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.369e-06/0.1165, allocations: 4 kB / 473.6 MB, free: 7.289 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.1165, allocations: 0 / 473.6 MB, free: 7.289 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.454e-05/0.1165, allocations: 0 / 473.6 MB, free: 7.289 MB / 350.1 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.002144/0.1187, allocations: 1.326 MB / 474.9 MB, free: 5.906 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.29e-05/0.1187, allocations: 11.89 kB / 474.9 MB, free: 5.895 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001695/0.1189, allocations: 156.3 kB / 475.1 MB, free: 5.734 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009937/0.1199, allocations: 199.5 kB / 475.3 MB, free: 5.539 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001003/0.1209, allocations: 0.6745 MB / 475.9 MB, free: 4.82 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.653e-05/0.1209, allocations: 62.36 kB / 476 MB, free: 4.762 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001913/0.1211, allocations: 95.91 kB / 476.1 MB, free: 4.668 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001758/0.1229, allocations: 1.396 MB / 477.5 MB, free: 3.168 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.752e-05/0.123, allocations: 7.875 kB / 477.5 MB, free: 3.16 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.624e-05/0.123, allocations: 39.98 kB / 477.5 MB, free: 3.121 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002553/0.1233, allocations: 113.9 kB / 477.6 MB, free: 3.012 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001687/0.125, allocations: 1.097 MB / 478.7 MB, free: 1.914 MB / 350.1 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.006566/0.1316, allocations: 5.973 MB / 484.7 MB, free: 11.63 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001076/0.1327, allocations: 0.6983 MB / 485.4 MB, free: 10.9 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004484/0.1331, allocations: 315.3 kB / 485.7 MB, free: 10.59 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.485e-05/0.1332, allocations: 16.53 kB / 485.7 MB, free: 10.57 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006244/0.1338, allocations: 476.5 kB / 486.2 MB, free: 10.07 MB / 366.1 MB Notification: Performance of pre-optimization done (n=65): time 2.425e-06/0.1339, allocations: 0 / 486.2 MB, free: 10.07 MB / 366.1 MB Notification: Performance of matching and sorting (n=66): time 0.003279/0.1371, allocations: 2.148 MB / 488.4 MB, free: 7.848 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001135/0.1373, allocations: 166.8 kB / 488.5 MB, free: 7.648 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000749/0.138, allocations: 0.6368 MB / 489.2 MB, free: 7 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.447e-05/0.1381, allocations: 41.7 kB / 489.2 MB, free: 6.953 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003542/0.1384, allocations: 0.5327 MB / 489.7 MB, free: 6.41 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001972/0.1386, allocations: 228.8 kB / 489.9 MB, free: 6.184 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002577/0.1389, allocations: 210.7 kB / 490.2 MB, free: 5.973 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001522/0.1391, allocations: 386.7 kB / 490.5 MB, free: 5.586 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004846/0.1396, allocations: 342.4 kB / 490.9 MB, free: 5.25 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007425/0.1403, allocations: 0.7698 MB / 491.6 MB, free: 4.281 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001387/0.1417, allocations: 1.244 MB / 492.9 MB, free: 2.82 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.326e-06/0.1417, allocations: 4 kB / 492.9 MB, free: 2.816 MB / 366.1 MB Notification: Performance of matching and sorting (n=136) (initialization): time 0.002375/0.1441, allocations: 1.434 MB / 494.3 MB, free: 1.363 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.197e-05/0.1442, allocations: 47.66 kB / 494.4 MB, free: 1.312 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00133/0.1455, allocations: 0.7864 MB / 495.2 MB, free: 0.5195 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007297/0.1462, allocations: 249.5 kB / 495.4 MB, free: 276 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006846/0.1469, allocations: 215.6 kB / 495.6 MB, free: 60 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004599/0.1516, allocations: 4.382 MB / 500 MB, free: 11.39 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006621/0.1522, allocations: 51.97 kB / 0.4883 GB, free: 11.34 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001269/0.1524, allocations: 71.91 kB / 0.4884 GB, free: 11.27 MB / 382.1 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,tapChanger.cnt_2,$PRE.tapChanger.cnt_2,tapChanger.cnt_1,$PRE.tapChanger.cnt_1,$whenCondition2,$whenCondition1,tapChanger.tap_2,$PRE.tapChanger.tap_2,tapChanger.tap_1,$PRE.tapChanger.tap_1) * 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 (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 {(2,12,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006074/0.153, allocations: 399 kB / 0.4888 GB, free: 10.86 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001412/0.1531, allocations: 83 kB / 0.4888 GB, free: 10.78 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001284/0.1544, allocations: 0.8476 MB / 0.4897 GB, free: 9.91 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.294e-05/0.1545, allocations: 15.97 kB / 0.4897 GB, free: 9.895 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.465e-06/0.1545, allocations: 3.938 kB / 0.4897 GB, free: 9.891 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.326e-06/0.1545, allocations: 3.984 kB / 0.4897 GB, free: 9.887 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002484/0.157, allocations: 1.764 MB / 0.4914 GB, free: 8.051 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.851e-06/0.157, allocations: 4 kB / 0.4914 GB, free: 8.047 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006635/0.1577, allocations: 151.9 kB / 0.4916 GB, free: 7.898 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.875e-06/0.1577, allocations: 4 kB / 0.4916 GB, free: 7.895 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.251e-05/0.1577, allocations: 19.98 kB / 0.4916 GB, free: 7.875 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.849e-06/0.1578, allocations: 7.938 kB / 0.4916 GB, free: 7.867 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.006e-06/0.1578, allocations: 4 kB / 0.4916 GB, free: 7.863 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001657/0.1594, allocations: 1.305 MB / 0.4929 GB, free: 6.516 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002741/0.1597, allocations: 204.1 kB / 0.4931 GB, free: 6.297 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001063/0.1598, allocations: 16 kB / 0.4931 GB, free: 6.281 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003554/0.1602, allocations: 27.97 kB / 0.4931 GB, free: 6.254 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001105/0.1603, allocations: 48.44 kB / 0.4932 GB, free: 6.207 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.286e-05/0.1604, allocations: 43.97 kB / 0.4932 GB, free: 6.164 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004612/0.1609, allocations: 423 kB / 0.4936 GB, free: 5.758 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.71e-07/0.1609, allocations: 0 / 0.4936 GB, free: 5.758 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008523/0.1617, allocations: 232 kB / 0.4938 GB, free: 5.531 MB / 382.1 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 (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.002003/0.1637, allocations: 1.873 MB / 0.4957 GB, free: 3.609 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00215/0.1659, allocations: 1.416 MB / 0.497 GB, free: 2.156 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.458e-06/0.1659, allocations: 0 / 0.497 GB, free: 2.156 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005556/0.1665, allocations: 464.1 kB / 0.4975 GB, free: 1.695 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007816/0.1673, allocations: 138.3 kB / 0.4976 GB, free: 1.562 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0107/0.178, allocations: 8.252 MB / 0.5057 GB, free: 8.77 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008011/0.1788, allocations: 1.107 MB / 0.5068 GB, free: 7.633 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0007803/0.1796, allocations: 294.4 kB / 0.507 GB, free: 7.34 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004426/0.1801, allocations: 331.3 kB / 0.5073 GB, free: 7.016 MB / 398.1 MB Notification: Performance of SimCode: time 8.82e-07/0.1801, allocations: 0 / 0.5073 GB, free: 7.016 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2661/0.4462, allocations: 15.78 MB / 0.5228 GB, free: 71.74 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.209/9.655, allocations: 7.781 kB / 0.5228 GB, free: 71.74 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Transformer.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Transformer.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Transformer.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Transformer.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Transformer_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Transformer.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Transformer.pipe 2>&1)