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.001165/0.001165, allocations: 179.4 kB / 8.351 MB, free: 0.7227 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.648/1.648, allocations: 194.3 MB / 203.1 MB, free: 13.02 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.001793/0.001793, allocations: 107.8 kB / 248.1 MB, free: 40 kB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1703/0.1703, allocations: 37.93 MB / 330.9 MB, free: 2.656 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.228e-05/2.255e-05, allocations: 7.938 kB / 390.5 MB, free: 7 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2732/0.2732, allocations: 53.22 MB / 443.7 MB, free: 17.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1276/0.4009, allocations: 96.88 MB / 0.5279 GB, free: 0.6562 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002693/0.4012, allocations: 87.94 kB / 0.528 GB, free: 0.5703 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2933/0.6946, allocations: 21.79 MB / 0.5493 GB, free: 80.16 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.214e-06/0.6946, allocations: 0 / 0.5493 GB, free: 80.16 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.104e-05/0.6947, allocations: 16 kB / 0.5493 GB, free: 80.14 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.001875/0.6966, allocations: 1.175 MB / 0.5504 GB, free: 78.9 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.695e-05/0.6966, allocations: 12.03 kB / 0.5504 GB, free: 78.89 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007143/0.6973, allocations: 160.2 kB / 0.5506 GB, free: 78.73 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002523/0.6999, allocations: 1.188 MB / 0.5517 GB, free: 77.52 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.814e-05/0.6999, allocations: 39.94 kB / 0.5518 GB, free: 77.48 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001086/0.7001, allocations: 52 kB / 0.5518 GB, free: 77.43 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001326/0.7014, allocations: 1.004 MB / 0.5528 GB, free: 76.42 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001386/0.7028, allocations: 1.143 MB / 0.5539 GB, free: 75.21 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.639e-05/0.7028, allocations: 0 / 0.5539 GB, free: 75.21 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.074e-05/0.7029, allocations: 11.89 kB / 0.5539 GB, free: 75.21 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.159e-05/0.703, allocations: 57.98 kB / 0.554 GB, free: 75.15 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00458/0.7076, allocations: 4.401 MB / 0.5583 GB, free: 70.65 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008601/0.7084, allocations: 0.7806 MB / 0.5591 GB, free: 69.86 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005935/0.709, allocations: 0.6182 MB / 0.5597 GB, free: 69.23 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.322e-05/0.7091, allocations: 12.78 kB / 0.5597 GB, free: 69.22 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008945/0.71, allocations: 0.8723 MB / 0.5605 GB, free: 68.32 MB / 378.7 MB Notification: Performance of pre-optimization done (n=126): time 2.204e-06/0.71, allocations: 0 / 0.5605 GB, free: 68.32 MB / 378.7 MB Notification: Performance of matching and sorting (n=127): time 0.003884/0.7139, allocations: 2.77 MB / 0.5632 GB, free: 65.49 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.018e-05/0.714, allocations: 234.9 kB / 0.5635 GB, free: 65.21 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003862/0.7144, allocations: 389 kB / 0.5638 GB, free: 64.83 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.263e-05/0.7145, allocations: 41.69 kB / 0.5639 GB, free: 64.78 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002559/0.7147, allocations: 396 kB / 0.5642 GB, free: 64.39 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002093/0.715, allocations: 362.7 kB / 0.5646 GB, free: 64.04 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.96e-05/0.715, allocations: 0 / 0.5646 GB, free: 64.04 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.887e-05/0.7151, allocations: 394.7 kB / 0.565 GB, free: 63.64 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005696/0.7157, allocations: 0.4953 MB / 0.5654 GB, free: 63.14 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006689/0.7164, allocations: 0.7309 MB / 0.5662 GB, free: 62.33 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007289/0.7171, allocations: 0.5762 MB / 0.5667 GB, free: 61.75 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.699e-06/0.7171, allocations: 7.938 kB / 0.5667 GB, free: 61.75 MB / 378.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.00286/0.72, allocations: 1.897 MB / 0.5686 GB, free: 59.84 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.979e-05/0.7201, allocations: 65.11 kB / 0.5686 GB, free: 59.77 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002327/0.7224, allocations: 1.594 MB / 0.5702 GB, free: 58.17 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001611/0.724, allocations: 0.633 MB / 0.5708 GB, free: 57.53 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004547/0.7245, allocations: 139.8 kB / 0.571 GB, free: 57.39 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006545/0.7311, allocations: 5.661 MB / 0.5765 GB, free: 51.62 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006915/0.7318, allocations: 39.94 kB / 0.5765 GB, free: 51.58 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.442e-05/0.7319, allocations: 40 kB / 0.5766 GB, free: 51.54 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.0002763/0.7321, allocations: 241.2 kB / 0.5768 GB, free: 51.29 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001542/0.7337, allocations: 1.215 MB / 0.578 GB, free: 50.06 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001209/0.7338, allocations: 83.05 kB / 0.5781 GB, free: 49.98 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001642/0.7355, allocations: 1.288 MB / 0.5793 GB, free: 48.68 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.075e-05/0.7355, allocations: 28.05 kB / 0.5793 GB, free: 48.66 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.7355, allocations: 4 kB / 0.5793 GB, free: 48.65 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.949e-06/0.7355, allocations: 7.938 kB / 0.5793 GB, free: 48.64 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003225/0.7388, allocations: 2.543 MB / 0.5818 GB, free: 46.08 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.891e-06/0.7388, allocations: 0 / 0.5818 GB, free: 46.08 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009797/0.7398, allocations: 227.8 kB / 0.582 GB, free: 45.86 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.204e-05/0.7398, allocations: 7.984 kB / 0.5821 GB, free: 45.85 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.275e-05/0.7399, allocations: 12 kB / 0.5821 GB, free: 45.84 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.943e-06/0.7399, allocations: 11.98 kB / 0.5821 GB, free: 45.82 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.925e-06/0.7399, allocations: 160 / 0.5821 GB, free: 45.82 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002253/0.7422, allocations: 2.192 MB / 0.5842 GB, free: 43.58 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001599/0.7423, allocations: 156.1 kB / 0.5844 GB, free: 43.41 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000124/0.7425, allocations: 19.92 kB / 0.5844 GB, free: 43.39 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005032/0.743, allocations: 39.94 kB / 0.5844 GB, free: 43.35 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001924/0.7432, allocations: 112.5 kB / 0.5845 GB, free: 43.24 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.501e-05/0.7433, allocations: 35.98 kB / 0.5846 GB, free: 43.2 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002666/0.7435, allocations: 290.9 kB / 0.5848 GB, free: 42.92 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.7435, allocations: 0 / 0.5848 GB, free: 42.92 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00102/0.7446, allocations: 276 kB / 0.5851 GB, free: 42.65 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.002752/0.7473, allocations: 3.099 MB / 0.5881 GB, free: 39.5 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002437/0.7498, allocations: 1.771 MB / 0.5899 GB, free: 37.7 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.7498, allocations: 0.5625 kB / 0.5899 GB, free: 37.7 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008777/0.7507, allocations: 0.8808 MB / 0.5907 GB, free: 36.79 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006609/0.7514, allocations: 90.72 kB / 0.5908 GB, free: 36.7 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0032/0.7546, allocations: 2.035 MB / 0.5928 GB, free: 34.61 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005001/0.7551, allocations: 1.129 MB / 0.5939 GB, free: 33.46 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0006139/0.7557, allocations: 234.7 kB / 0.5941 GB, free: 33.23 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004033/0.7561, allocations: 335.3 kB / 0.5944 GB, free: 32.9 MB / 378.7 MB Notification: Performance of SimCode: time 5.91e-07/0.7562, allocations: 0 / 0.5944 GB, free: 32.9 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03912/0.7953, allocations: 19.25 MB / 0.6132 GB, free: 13.63 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000149/0.7955, allocations: 135.6 kB / 0.6134 GB, free: 13.44 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.698/3.493, allocations: 0 / 0.6134 GB, free: 13.44 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)