Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Transmission.RXline.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.Transmission.RXline,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Transmission_RXline",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Transmission.RXline,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Transmission_RXline",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.001148/0.001148, allocations: 110.4 kB / 16.92 MB, free: 6.332 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.000988/0.0009881, allocations: 191.4 kB / 17.85 MB, free: 5.414 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.243/1.243, allocations: 222.9 MB / 241.6 MB, free: 15.29 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1697/0.1697, allocations: 38.02 MB / 329.7 MB, free: 8.715 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002265/0.002265, allocations: 61.16 kB / 398.9 MB, free: 33.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1045/0.1068, allocations: 58.07 MB / 457 MB, free: 7.941 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Transmission.RXline): time 0.007581/0.1144, allocations: 6.577 MB / 463.5 MB, free: 1.328 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00323/0.1177, allocations: 2.103 MB / 465.6 MB, free: 15.22 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003743/0.1181, allocations: 27.88 kB / 465.7 MB, free: 15.19 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001565/0.1196, allocations: 0.6337 MB / 466.3 MB, free: 14.56 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001165/0.1208, allocations: 0.5482 MB / 466.9 MB, free: 14.01 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000757/0.1216, allocations: 375.2 kB / 467.2 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001159/0.1228, allocations: 1.197 MB / 468.4 MB, free: 12.44 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007389/0.1235, allocations: 0.5834 MB / 469 MB, free: 11.86 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006612/0.1242, allocations: 0.5098 MB / 469.5 MB, free: 11.34 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008451/0.125, allocations: 0.6542 MB / 470.2 MB, free: 10.69 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001661/0.1252, allocations: 92 kB / 470.3 MB, free: 10.6 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008429/0.1261, allocations: 0.5499 MB / 470.8 MB, free: 10.05 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004256/0.1265, allocations: 482.8 kB / 471.3 MB, free: 9.574 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000585/0.1271, allocations: 0.5287 MB / 471.8 MB, free: 9.043 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001289/0.1284, allocations: 1.359 MB / 473.2 MB, free: 7.68 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.496e-06/0.1284, allocations: 0 / 473.2 MB, free: 7.68 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.1284, allocations: 4 kB / 473.2 MB, free: 7.676 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.3e-05/0.1285, allocations: 0 / 473.2 MB, free: 7.676 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: 242 * Number of variables: 242 Notification: Performance of Generate backend data structure: time 0.002397/0.1309, allocations: 1.382 MB / 474.5 MB, free: 6.227 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.665e-05/0.1309, allocations: 15.89 kB / 474.6 MB, free: 6.211 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001642/0.1311, allocations: 148.2 kB / 474.7 MB, free: 6.059 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007576/0.1319, allocations: 147.6 kB / 474.9 MB, free: 5.914 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000871/0.1327, allocations: 0.6046 MB / 475.5 MB, free: 5.266 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.419e-05/0.1328, allocations: 82.34 kB / 475.5 MB, free: 5.188 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001855/0.133, allocations: 87.94 kB / 475.6 MB, free: 5.102 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001738/0.1347, allocations: 1.315 MB / 476.9 MB, free: 3.723 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.711e-05/0.1348, allocations: 11.84 kB / 476.9 MB, free: 3.711 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.849e-05/0.1349, allocations: 39.98 kB / 477 MB, free: 3.672 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001362/0.135, allocations: 61.97 kB / 477 MB, free: 3.613 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001724/0.1368, allocations: 1.183 MB / 478.2 MB, free: 2.43 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005636/0.1424, allocations: 4.652 MB / 482.9 MB, free: 13.61 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001392/0.1438, allocations: 1.3 MB / 484.2 MB, free: 12.18 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007923/0.1446, allocations: 0.6366 MB / 484.8 MB, free: 11.54 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.735e-05/0.1447, allocations: 12.88 kB / 484.8 MB, free: 11.53 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00109/0.1458, allocations: 0.8946 MB / 485.7 MB, free: 10.6 MB / 366.1 MB Notification: Performance of pre-optimization done (n=122): time 2.775e-06/0.1458, allocations: 0 / 485.7 MB, free: 10.6 MB / 366.1 MB Notification: Performance of matching and sorting (n=123): time 0.004822/0.1506, allocations: 3.574 MB / 489.3 MB, free: 6.938 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001198/0.1507, allocations: 250.5 kB / 489.5 MB, free: 6.645 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004881/0.1512, allocations: 497.8 kB / 490 MB, free: 6.148 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.927e-05/0.1513, allocations: 57.69 kB / 490.1 MB, free: 6.086 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002549/0.1516, allocations: 404 kB / 490.5 MB, free: 5.684 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002736/0.1519, allocations: 359.1 kB / 490.8 MB, free: 5.328 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002919/0.1522, allocations: 222.8 kB / 491.1 MB, free: 5.102 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001642/0.1523, allocations: 398.8 kB / 491.4 MB, free: 4.703 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007452/0.1531, allocations: 0.5147 MB / 492 MB, free: 4.191 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009708/0.1541, allocations: 0.7817 MB / 492.7 MB, free: 3.312 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001795/0.1559, allocations: 1.415 MB / 494.2 MB, free: 1.781 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.692e-06/0.1559, allocations: 0 / 494.2 MB, free: 1.781 MB / 366.1 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.003875/0.1598, allocations: 2.063 MB / 496.2 MB, free: 15.7 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.885e-05/0.1599, allocations: 61.75 kB / 496.3 MB, free: 15.63 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002808/0.1627, allocations: 1.646 MB / 497.9 MB, free: 13.97 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001878/0.1646, allocations: 0.6564 MB / 498.6 MB, free: 13.31 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004442/0.165, allocations: 135.7 kB / 498.7 MB, free: 13.18 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009396/0.1744, allocations: 6.5 MB / 0.4934 GB, free: 6.535 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005971/0.175, allocations: 59.83 kB / 0.4934 GB, free: 6.477 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001106/0.1752, allocations: 52 kB / 0.4935 GB, free: 6.426 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 67 (system.initime,relay2.cnt,$PRE.relay2.cnt,$whenCondition2,relay1.cnt,$PRE.relay1.cnt,$whenCondition1,relay2.y[3],$PRE.relay2.y[3],relay2.y[2],$PRE.relay2.y[2],relay2.y[1],$PRE.relay2.y[1],relay1.y[3],$PRE.relay1.y[3],relay1.y[2],$PRE.relay1.y[2],relay1.y[1],$PRE.relay1.y[1],switch2.switch_c.closed,switch2.switch_c.open,$PRE.switch2.switch_c.open,switch2.switch_c.arc,$PRE.switch2.switch_c.arc,switch2.switch_b.closed,switch2.switch_b.open,$PRE.switch2.switch_b.open,switch2.switch_b.arc,$PRE.switch2.switch_b.arc,switch2.switch_a.closed,switch2.switch_a.open,$PRE.switch2.switch_a.open,switch2.switch_a.arc,$PRE.switch2.switch_a.arc,switch1.switch_c.closed,switch1.switch_c.open,$PRE.switch1.switch_c.open,switch1.switch_c.arc,$PRE.switch1.switch_c.arc,switch1.switch_b.closed,switch1.switch_b.open,$PRE.switch1.switch_b.open,switch1.switch_b.arc,$PRE.switch1.switch_b.arc,switch1.switch_a.closed,switch1.switch_a.open,$PRE.switch1.switch_a.open,switch1.switch_a.arc,$PRE.switch1.switch_a.arc,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,$whenCondition17,$whenCondition18,$whenCondition19,$whenCondition20) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (124): * Single equations (assignments): 119 * Array equations: 2 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(7,29,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006173/0.1758, allocations: 430.8 kB / 0.4939 GB, free: 5.984 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002141/0.176, allocations: 86.97 kB / 0.494 GB, free: 5.898 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002022/0.1781, allocations: 1.423 MB / 0.4954 GB, free: 4.449 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.98e-05/0.1781, allocations: 23.98 kB / 0.4954 GB, free: 4.426 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.1781, allocations: 0 / 0.4954 GB, free: 4.426 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.049e-05/0.1781, allocations: 7.922 kB / 0.4954 GB, free: 4.418 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00384/0.182, allocations: 2.775 MB / 0.4981 GB, free: 1.566 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.933e-06/0.182, allocations: 0 / 0.4981 GB, free: 1.566 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009924/0.183, allocations: 227.7 kB / 0.4983 GB, free: 1.344 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.818e-06/0.183, allocations: 12 kB / 0.4983 GB, free: 1.332 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.035e-05/0.1831, allocations: 27.98 kB / 0.4984 GB, free: 1.305 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.891e-06/0.1831, allocations: 4 kB / 0.4984 GB, free: 1.301 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.1831, allocations: 0 / 0.4984 GB, free: 1.301 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1604/0.3436, allocations: 2.286 MB / 0.5006 GB, free: 56.62 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002305/0.3438, allocations: 143.1 kB / 0.5007 GB, free: 56.52 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001495/0.344, allocations: 38.62 kB / 0.5008 GB, free: 56.52 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000446/0.3444, allocations: 48.72 kB / 0.5008 GB, free: 56.52 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002445/0.3447, allocations: 103.1 kB / 0.5009 GB, free: 56.52 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.452e-05/0.3448, allocations: 32.81 kB / 0.5009 GB, free: 56.52 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004033/0.3452, allocations: 344.3 kB / 0.5013 GB, free: 56.44 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3452, allocations: 0 / 0.5013 GB, free: 56.44 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009845/0.3462, allocations: 310.4 kB / 0.5016 GB, free: 56.44 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (line.i[1],line.i[2],line.i[3]) * Number of discrete variables: 47 (switch1.switch_c.closed,switch1.switch_a.closed,switch1.switch_b.closed,switch2.switch_b.closed,switch2.switch_c.closed,switch2.switch_a.closed,$whenCondition20,$whenCondition19,$whenCondition18,$whenCondition17,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,switch1.switch_a.arc,switch1.switch_a.open,switch1.switch_b.arc,switch1.switch_b.open,switch1.switch_c.arc,switch1.switch_c.open,switch2.switch_a.arc,switch2.switch_a.open,switch2.switch_b.arc,switch2.switch_b.open,switch2.switch_c.arc,switch2.switch_c.open,relay1.y[1],relay1.y[2],relay1.y[3],relay1.cnt,relay2.y[1],relay2.y[2],relay2.y[3],relay2.cnt,system.initime) * Number of discrete states: 16 (relay2.y[3],relay2.y[2],relay2.y[1],relay2.cnt,$whenCondition2,switch2.switch_a.open,switch2.switch_c.open,switch2.switch_b.open,relay1.y[3],relay1.y[2],relay1.y[1],relay1.cnt,$whenCondition1,switch1.switch_b.open,switch1.switch_a.open,switch1.switch_c.open) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (99): * Single equations (assignments): 88 * Array equations: 2 * Algorithm blocks: 2 * Record equations: 0 * When equations: 7 * 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.003418/0.3496, allocations: 2.893 MB / 0.5044 GB, free: 55.3 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004024/0.3536, allocations: 2.388 MB / 0.5067 GB, free: 54.54 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.028e-06/0.3537, allocations: 0 / 0.5067 GB, free: 54.54 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001045/0.3547, allocations: 0.9012 MB / 0.5076 GB, free: 54.14 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007956/0.3555, allocations: 139.4 kB / 0.5077 GB, free: 54.09 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01374/0.3693, allocations: 9.885 MB / 0.5174 GB, free: 49.27 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005925/0.3699, allocations: 1.107 MB / 0.5185 GB, free: 48.53 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006622/0.3706, allocations: 234 kB / 0.5187 GB, free: 48.5 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004069/0.371, allocations: 334 kB / 0.519 GB, free: 48.26 MB / 382.1 MB Notification: Performance of SimCode: time 6.51e-07/0.371, allocations: 0 / 0.519 GB, free: 48.26 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03896/0.41, allocations: 20.82 MB / 0.5393 GB, free: 31.2 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.513/9.923, allocations: 9.375 kB / 0.5394 GB, free: 31.19 MB / 382.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Transmission.RXline.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Transmission.RXline.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Transmission.RXline.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Transmission.RXline.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Transmission_RXline_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Transmission_RXline.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Transmission.RXline.pipe 2>&1)