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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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/Complex 3.2.2+maint.om/package.mo): time 0.001114/0.001114, allocations: 179.6 kB / 16.38 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.132/1.132, allocations: 194.5 MB / 211.6 MB, free: 2.965 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001546/0.001546, allocations: 119 kB / 256.9 MB, free: 4.34 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1511/0.1511, allocations: 37.99 MB / 340.1 MB, free: 1.336 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003167/0.0003166, allocations: 12 kB / 403.9 MB, free: 68.7 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06362/0.06395, allocations: 53.22 MB / 457.1 MB, free: 15.46 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2381/0.3021, allocations: 97.63 MB / 0.5417 GB, free: 13.76 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000206/0.3023, allocations: 102.1 kB / 0.5418 GB, free: 13.7 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05327/0.3556, allocations: 21.99 MB / 0.5633 GB, free: 10.75 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.393e-06/0.3556, allocations: 0 / 0.5633 GB, free: 10.75 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.794e-05/0.3557, allocations: 24 kB / 0.5633 GB, free: 10.72 MB / 378.7 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.001985/0.3577, allocations: 1.259 MB / 0.5646 GB, free: 9.449 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.973e-05/0.3577, allocations: 12.02 kB / 0.5646 GB, free: 9.438 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001614/0.3579, allocations: 150.6 kB / 0.5647 GB, free: 9.336 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006717/0.3586, allocations: 159.4 kB / 0.5649 GB, free: 9.18 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002649/0.3612, allocations: 1.226 MB / 0.5661 GB, free: 8.125 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.216e-05/0.3613, allocations: 67.38 kB / 0.5661 GB, free: 8.082 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001264/0.3614, allocations: 85 kB / 0.5662 GB, free: 8.027 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001602/0.3631, allocations: 1.278 MB / 0.5674 GB, free: 7.047 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.03e-05/0.3631, allocations: 0 / 0.5674 GB, free: 7.047 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.779e-05/0.3632, allocations: 38.61 kB / 0.5675 GB, free: 7.031 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.317e-05/0.3632, allocations: 57.67 kB / 0.5675 GB, free: 6.977 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001454/0.3647, allocations: 1.134 MB / 0.5686 GB, free: 6.188 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005076/0.3698, allocations: 4.571 MB / 0.5731 GB, free: 2.262 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00101/0.3708, allocations: 0.8297 MB / 0.5739 GB, free: 1.68 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.481e-05/0.3709, allocations: 12.72 kB / 0.5739 GB, free: 1.668 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009972/0.3719, allocations: 0.9045 MB / 0.5748 GB, free: 0.9453 MB / 378.7 MB Notification: Performance of pre-optimization done (n=126): time 2.454e-06/0.3719, allocations: 0 / 0.5748 GB, free: 0.9453 MB / 378.7 MB Notification: Performance of matching and sorting (n=127): time 0.005471/0.3774, allocations: 4.046 MB / 0.5788 GB, free: 13.66 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001778/0.3776, allocations: 234.2 kB / 0.579 GB, free: 13.39 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006545/0.3783, allocations: 433.5 kB / 0.5794 GB, free: 13.04 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 9.016e-05/0.3784, allocations: 53.89 kB / 0.5795 GB, free: 13 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003409/0.3787, allocations: 398.2 kB / 0.5798 GB, free: 12.69 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003944/0.3791, allocations: 379.7 kB / 0.5802 GB, free: 12.37 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.296e-05/0.3792, allocations: 28.44 kB / 0.5802 GB, free: 12.36 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002001/0.3794, allocations: 395.7 kB / 0.5806 GB, free: 12 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001005/0.3804, allocations: 0.5303 MB / 0.5811 GB, free: 11.64 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001232/0.3817, allocations: 0.7725 MB / 0.5819 GB, free: 10.98 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001182/0.3829, allocations: 0.6613 MB / 0.5825 GB, free: 10.53 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.472e-06/0.3829, allocations: 4 kB / 0.5825 GB, free: 10.53 MB / 394.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.004866/0.3878, allocations: 2.071 MB / 0.5845 GB, free: 8.836 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.949e-05/0.3878, allocations: 67.39 kB / 0.5846 GB, free: 8.758 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.004032/0.3919, allocations: 1.681 MB / 0.5863 GB, free: 7.07 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002429/0.3943, allocations: 0.6642 MB / 0.5869 GB, free: 6.402 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000633/0.395, allocations: 135.7 kB / 0.587 GB, free: 6.27 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01222/0.4072, allocations: 6.165 MB / 0.5931 GB, free: 15.96 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008789/0.4081, allocations: 63.89 kB / 0.5931 GB, free: 15.91 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001849/0.4083, allocations: 47.98 kB / 0.5932 GB, free: 15.86 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 67 (system.initime,$whenCondition2,$PRE.relay2.cnt,relay2.cnt,$whenCondition1,$PRE.relay1.cnt,relay1.cnt,$whenCondition20,$whenCondition19,$whenCondition18,$whenCondition17,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$PRE.switch1.switch_a.arc,switch1.switch_a.arc,$PRE.switch1.switch_a.open,switch1.switch_a.open,switch1.switch_a.closed,$PRE.switch1.switch_b.arc,switch1.switch_b.arc,$PRE.switch1.switch_b.open,switch1.switch_b.open,switch1.switch_b.closed,$PRE.switch1.switch_c.arc,switch1.switch_c.arc,$PRE.switch1.switch_c.open,switch1.switch_c.open,switch1.switch_c.closed,$PRE.switch2.switch_a.arc,switch2.switch_a.arc,$PRE.switch2.switch_a.open,switch2.switch_a.open,switch2.switch_a.closed,$PRE.switch2.switch_b.arc,switch2.switch_b.arc,$PRE.switch2.switch_b.open,switch2.switch_b.open,switch2.switch_b.closed,$PRE.switch2.switch_c.arc,switch2.switch_c.arc,$PRE.switch2.switch_c.open,switch2.switch_c.open,switch2.switch_c.closed,$PRE.relay1.y[1],relay1.y[1],$PRE.relay1.y[2],relay1.y[2],$PRE.relay1.y[3],relay1.y[3],$PRE.relay2.y[1],relay2.y[1],$PRE.relay2.y[2],relay2.y[2],$PRE.relay2.y[3],relay2.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (122): * Single equations (assignments): 116 * Array equations: 3 * Algorithm blocks: 2 * 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 {(7,100.0%) 29} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008713/0.4092, allocations: 426 kB / 0.5936 GB, free: 15.42 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002708/0.4095, allocations: 86.97 kB / 0.5936 GB, free: 15.34 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003008/0.4125, allocations: 1.455 MB / 0.5951 GB, free: 13.86 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.028e-05/0.4126, allocations: 31.97 kB / 0.5951 GB, free: 13.83 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.07e-06/0.4126, allocations: 4 kB / 0.5951 GB, free: 13.82 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.624e-05/0.4127, allocations: 11.94 kB / 0.5951 GB, free: 13.81 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005396/0.4181, allocations: 2.818 MB / 0.5979 GB, free: 10.92 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.733e-06/0.4181, allocations: 0 / 0.5979 GB, free: 10.92 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001171/0.4193, allocations: 235.8 kB / 0.5981 GB, free: 10.69 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.246e-05/0.4193, allocations: 4 kB / 0.5981 GB, free: 10.68 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.702e-05/0.4194, allocations: 31.97 kB / 0.5981 GB, free: 10.65 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.277e-05/0.4194, allocations: 7.938 kB / 0.5981 GB, free: 10.64 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.4194, allocations: 0 / 0.5981 GB, free: 10.64 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00343/0.4229, allocations: 2.357 MB / 0.6004 GB, free: 8.223 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002017/0.4231, allocations: 148.1 kB / 0.6006 GB, free: 8.059 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001374/0.4232, allocations: 35.98 kB / 0.6006 GB, free: 8.023 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005126/0.4237, allocations: 59.89 kB / 0.6007 GB, free: 7.965 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002361/0.424, allocations: 108.8 kB / 0.6008 GB, free: 7.859 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.086e-05/0.4241, allocations: 31.98 kB / 0.6008 GB, free: 7.828 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0004241/0.4245, allocations: 338.8 kB / 0.6011 GB, free: 7.496 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4245, allocations: 0 / 0.6011 GB, free: 7.496 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001056/0.4256, allocations: 331.9 kB / 0.6014 GB, free: 7.172 MB / 410.7 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_b.closed,switch1.switch_c.closed,switch1.switch_a.closed,switch2.switch_a.closed,switch2.switch_b.closed,switch2.switch_c.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,relay1.y[3],relay1.y[2],relay1.y[1],relay1.cnt,$whenCondition1,switch2.switch_c.open,switch2.switch_a.open,switch2.switch_b.open,switch1.switch_b.open,switch1.switch_c.open,switch1.switch_a.open) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (100): * Single equations (assignments): 88 * Array equations: 3 * Algorithm blocks: 2 * Record equations: 0 * When equations: 7 * 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.003941/0.4295, allocations: 3.282 MB / 0.6046 GB, free: 3.82 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00321/0.4328, allocations: 1.885 MB / 0.6065 GB, free: 1.898 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.417e-06/0.4328, allocations: 4.062 kB / 0.6065 GB, free: 1.895 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001084/0.4339, allocations: 0.9142 MB / 0.6074 GB, free: 0.9609 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005692/0.4345, allocations: 122.2 kB / 0.6075 GB, free: 0.8438 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01041/0.4449, allocations: 10.99 MB / 0.6182 GB, free: 5.602 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006563/0.4456, allocations: 1.125 MB / 0.6193 GB, free: 4.453 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.000602/0.4462, allocations: 238.9 kB / 0.6196 GB, free: 4.215 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000456/0.4466, allocations: 343.3 kB / 0.6199 GB, free: 3.879 MB / 426.7 MB Notification: Performance of SimCode: time 5.01e-07/0.4467, allocations: 0 / 0.6199 GB, free: 3.879 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2881/0.7347, allocations: 20.22 MB / 0.6396 GB, free: 15.67 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001961/0.735, allocations: 191.2 kB / 0.6398 GB, free: 15.43 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.668/4.403, allocations: 0 / 0.6398 GB, free: 15.43 MB / 458.7 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/linux/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)