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.001971/0.001971, allocations: 182 kB / 13.64 MB, free: 1.676 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.754/1.754, allocations: 194.3 MB / 208.4 MB, free: 6.711 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.00178/0.00178, allocations: 116.8 kB / 253.5 MB, free: 9.582 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1908/0.1908, allocations: 37.91 MB / 336.4 MB, free: 14.25 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 3.461e-05/3.476e-05, allocations: 0 / 397.6 MB, free: 0.9336 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3735/0.3735, allocations: 53.22 MB / 450.9 MB, free: 13.45 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4756/0.8492, allocations: 97.54 MB / 0.5355 GB, free: 88.43 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0005571/0.8498, allocations: 91.52 kB / 0.5356 GB, free: 88.43 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.059/0.9088, allocations: 21.97 MB / 0.5571 GB, free: 71.68 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.935e-06/0.9089, allocations: 0 / 0.5571 GB, free: 71.68 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.03e-05/0.9089, allocations: 35.92 kB / 0.5571 GB, free: 71.64 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.002041/0.911, allocations: 1.164 MB / 0.5583 GB, free: 70.4 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.299e-05/0.911, allocations: 12.03 kB / 0.5583 GB, free: 70.39 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001734/0.9112, allocations: 155.9 kB / 0.5584 GB, free: 70.23 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007644/0.912, allocations: 155.3 kB / 0.5586 GB, free: 70.08 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002628/0.9146, allocations: 1.195 MB / 0.5597 GB, free: 68.84 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.848e-05/0.9147, allocations: 77.94 kB / 0.5598 GB, free: 68.76 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001324/0.9149, allocations: 87.98 kB / 0.5599 GB, free: 68.68 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001648/0.9165, allocations: 1.256 MB / 0.5611 GB, free: 67.36 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.061e-05/0.9166, allocations: 3.984 kB / 0.5611 GB, free: 67.36 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.629e-05/0.9166, allocations: 36 kB / 0.5611 GB, free: 67.32 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.376e-05/0.9167, allocations: 53.98 kB / 0.5612 GB, free: 67.27 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001424/0.9182, allocations: 1.117 MB / 0.5623 GB, free: 66.15 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005323/0.9235, allocations: 4.565 MB / 0.5667 GB, free: 61.43 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001096/0.9246, allocations: 0.8168 MB / 0.5675 GB, free: 60.59 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007188/0.9254, allocations: 0.6447 MB / 0.5682 GB, free: 59.94 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.95e-05/0.9255, allocations: 9.719 kB / 0.5682 GB, free: 59.93 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001028/0.9265, allocations: 0.8983 MB / 0.5691 GB, free: 59 MB / 378.7 MB Notification: Performance of pre-optimization done (n=126): time 2.605e-06/0.9265, allocations: 0 / 0.5691 GB, free: 59 MB / 378.7 MB Notification: Performance of matching and sorting (n=127): time 0.004341/0.9309, allocations: 3.092 MB / 0.5721 GB, free: 55.82 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.723e-05/0.931, allocations: 238.6 kB / 0.5723 GB, free: 55.54 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004647/0.9314, allocations: 431.7 kB / 0.5727 GB, free: 55.11 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.609e-05/0.9315, allocations: 53.69 kB / 0.5728 GB, free: 55.05 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002322/0.9317, allocations: 392.2 kB / 0.5731 GB, free: 54.66 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002253/0.932, allocations: 378.8 kB / 0.5735 GB, free: 54.28 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.181e-05/0.932, allocations: 24 kB / 0.5735 GB, free: 54.26 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001243/0.9322, allocations: 402.8 kB / 0.5739 GB, free: 53.86 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00063/0.9328, allocations: 0.5148 MB / 0.5744 GB, free: 53.34 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007386/0.9336, allocations: 0.7605 MB / 0.5752 GB, free: 52.5 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000779/0.9343, allocations: 0.656 MB / 0.5758 GB, free: 51.83 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.348e-06/0.9344, allocations: 4 kB / 0.5758 GB, free: 51.82 MB / 378.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.003426/0.9378, allocations: 2.059 MB / 0.5778 GB, free: 49.74 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.406e-05/0.9379, allocations: 59.41 kB / 0.5779 GB, free: 49.67 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002499/0.9404, allocations: 1.666 MB / 0.5795 GB, free: 48 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001658/0.942, allocations: 0.6604 MB / 0.5801 GB, free: 47.34 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004495/0.9425, allocations: 131.7 kB / 0.5803 GB, free: 47.21 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00724/0.9497, allocations: 5.903 MB / 0.586 GB, free: 41.17 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008173/0.9506, allocations: 63.94 kB / 0.5861 GB, free: 41.11 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.718e-05/0.9507, allocations: 47.98 kB / 0.5861 GB, free: 41.06 MB / 378.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 () * 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.0003444/0.951, allocations: 268.6 kB / 0.5864 GB, free: 40.78 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000201/0.9513, allocations: 90.95 kB / 0.5865 GB, free: 40.69 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002021/0.9533, allocations: 1.434 MB / 0.5879 GB, free: 39.24 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.437e-05/0.9533, allocations: 27.98 kB / 0.5879 GB, free: 39.21 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.025e-06/0.9533, allocations: 0 / 0.5879 GB, free: 39.21 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.214e-05/0.9534, allocations: 15.94 kB / 0.5879 GB, free: 39.2 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003682/0.957, allocations: 2.803 MB / 0.5907 GB, free: 36.31 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.04e-06/0.9571, allocations: 0 / 0.5907 GB, free: 36.31 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009903/0.9581, allocations: 227.8 kB / 0.5909 GB, free: 36.09 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.084e-05/0.9581, allocations: 8 kB / 0.5909 GB, free: 36.08 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.708e-05/0.9582, allocations: 27.98 kB / 0.5909 GB, free: 36.05 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.803e-06/0.9582, allocations: 7.938 kB / 0.5909 GB, free: 36.04 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.9582, allocations: 0 / 0.5909 GB, free: 36.04 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002526/0.9607, allocations: 2.336 MB / 0.5932 GB, free: 33.64 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001794/0.9609, allocations: 152.1 kB / 0.5933 GB, free: 33.47 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001215/0.961, allocations: 43.94 kB / 0.5934 GB, free: 33.43 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004496/0.9615, allocations: 55.88 kB / 0.5934 GB, free: 33.38 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002202/0.9617, allocations: 112.5 kB / 0.5936 GB, free: 33.27 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.917e-05/0.9618, allocations: 35.98 kB / 0.5936 GB, free: 33.23 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003449/0.9622, allocations: 325.6 kB / 0.5939 GB, free: 32.91 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.9622, allocations: 0 / 0.5939 GB, free: 32.91 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00105/0.9632, allocations: 328 kB / 0.5942 GB, free: 32.59 MB / 378.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) * 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.003033/0.9663, allocations: 3.261 MB / 0.5974 GB, free: 29.26 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002963/0.9692, allocations: 1.847 MB / 0.5992 GB, free: 27.38 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.369e-06/0.9693, allocations: 4.125 kB / 0.5992 GB, free: 27.38 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000953/0.9702, allocations: 0.9054 MB / 0.6001 GB, free: 26.45 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006956/0.9709, allocations: 110.2 kB / 0.6002 GB, free: 26.34 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003612/0.9746, allocations: 2.115 MB / 0.6023 GB, free: 24.18 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006348/0.9752, allocations: 1.121 MB / 0.6034 GB, free: 23.03 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0006069/0.9758, allocations: 234.9 kB / 0.6036 GB, free: 22.79 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004247/0.9763, allocations: 351.2 kB / 0.6039 GB, free: 22.45 MB / 378.7 MB Notification: Performance of SimCode: time 2.043e-06/0.9763, allocations: 0 / 0.6039 GB, free: 22.45 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03773/1.014, allocations: 20.42 MB / 0.6239 GB, free: 2.02 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001783/1.014, allocations: 170.3 kB / 0.624 GB, free: 1.793 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.844/3.858, allocations: 0 / 0.624 GB, free: 1.793 MB / 378.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)