Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.RXline.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Transmission.RXline,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Transmission_RXline",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Transmission.RXline,fileNamePrefix="PowerSystems_latest_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.3+maint.om/package.mo): time 0.001073/0.001073, allocations: 179.3 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.264/1.264, allocations: 205.4 MB / 222.5 MB, free: 9.125 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008033/0.0008031, allocations: 97.55 kB / 270.9 MB, free: 8.379 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1584/0.1584, allocations: 38.06 MB / 357.2 MB, free: 1.898 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002775/0.0002776, allocations: 16 kB / 424.1 MB, free: 37.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2529/0.2532, allocations: 56.32 MB / 480.4 MB, free: 9.559 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1312/0.3844, allocations: 102.7 MB / 0.5695 GB, free: 15.68 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00024/0.3847, allocations: 91.95 kB / 0.5695 GB, free: 15.59 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05904/0.4438, allocations: 22.01 MB / 0.591 GB, free: 9.32 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.4438, allocations: 0 / 0.591 GB, free: 9.32 MB / 426.7 MB Notification: Performance of Transformations before backend: time 6.084e-05/0.4439, allocations: 23.98 kB / 0.5911 GB, free: 9.297 MB / 426.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.002933/0.4468, allocations: 1.261 MB / 0.5923 GB, free: 7.953 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.388e-05/0.4469, allocations: 12.03 kB / 0.5923 GB, free: 7.941 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004082/0.4473, allocations: 148 kB / 0.5924 GB, free: 7.789 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000879/0.4482, allocations: 154.6 kB / 0.5926 GB, free: 7.637 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00321/0.4514, allocations: 1.22 MB / 0.5938 GB, free: 6.375 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.726e-05/0.4515, allocations: 73.94 kB / 0.5938 GB, free: 6.301 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001766/0.4517, allocations: 84 kB / 0.5939 GB, free: 6.219 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001905/0.4536, allocations: 1.279 MB / 0.5952 GB, free: 4.879 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.669e-05/0.4537, allocations: 4 kB / 0.5952 GB, free: 4.875 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.647e-05/0.4537, allocations: 32 kB / 0.5952 GB, free: 4.844 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.918e-05/0.4538, allocations: 57.98 kB / 0.5953 GB, free: 4.785 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001712/0.4555, allocations: 1.136 MB / 0.5964 GB, free: 3.648 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005786/0.4613, allocations: 4.575 MB / 0.6008 GB, free: 14.92 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001171/0.4625, allocations: 0.8279 MB / 0.6017 GB, free: 14.07 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.383e-05/0.4626, allocations: 13.64 kB / 0.6017 GB, free: 14.05 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001124/0.4637, allocations: 0.9102 MB / 0.6026 GB, free: 13.11 MB / 442.7 MB Notification: Performance of pre-optimization done (n=126): time 3.046e-06/0.4637, allocations: 0 / 0.6026 GB, free: 13.11 MB / 442.7 MB Notification: Performance of matching and sorting (n=127): time 0.00519/0.4689, allocations: 4.053 MB / 0.6065 GB, free: 8.879 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001068/0.4691, allocations: 230.6 kB / 0.6067 GB, free: 8.605 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004685/0.4695, allocations: 433.3 kB / 0.6071 GB, free: 8.172 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 7.328e-05/0.4696, allocations: 53.7 kB / 0.6072 GB, free: 8.113 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000271/0.4699, allocations: 400.2 kB / 0.6076 GB, free: 7.715 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002721/0.4702, allocations: 374.8 kB / 0.6079 GB, free: 7.344 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.751e-05/0.4702, allocations: 28 kB / 0.608 GB, free: 7.316 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001504/0.4704, allocations: 394.7 kB / 0.6083 GB, free: 6.922 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007391/0.4711, allocations: 0.5303 MB / 0.6089 GB, free: 6.395 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008673/0.472, allocations: 0.7837 MB / 0.6096 GB, free: 5.523 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008521/0.4729, allocations: 0.6613 MB / 0.6103 GB, free: 4.852 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/0.4729, allocations: 0 / 0.6103 GB, free: 4.852 MB / 442.7 MB Notification: Performance of matching and sorting (n=176) (initialization): time 0.003526/0.4764, allocations: 2.067 MB / 0.6123 GB, free: 2.762 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.269e-05/0.4765, allocations: 67.33 kB / 0.6124 GB, free: 2.684 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002809/0.4793, allocations: 1.681 MB / 0.614 GB, free: 0.9961 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001834/0.4812, allocations: 0.6603 MB / 0.6146 GB, free: 340 kB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004286/0.4816, allocations: 131.7 kB / 0.6148 GB, free: 208 kB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008287/0.4899, allocations: 6.174 MB / 0.6208 GB, free: 9.895 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006095/0.4905, allocations: 67.88 kB / 0.6209 GB, free: 9.828 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001009/0.4907, allocations: 44 kB / 0.6209 GB, free: 9.785 MB / 458.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.000718/0.4914, allocations: 438 kB / 0.6213 GB, free: 9.336 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002663/0.4917, allocations: 86.97 kB / 0.6214 GB, free: 9.25 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002184/0.4938, allocations: 1.443 MB / 0.6228 GB, free: 7.789 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.264e-05/0.4939, allocations: 27.98 kB / 0.6228 GB, free: 7.762 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.4939, allocations: 4 kB / 0.6228 GB, free: 7.758 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.668e-06/0.4939, allocations: 3.984 kB / 0.6228 GB, free: 7.754 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004306/0.4982, allocations: 2.826 MB / 0.6256 GB, free: 4.848 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.845e-06/0.4983, allocations: 4 kB / 0.6256 GB, free: 4.844 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009769/0.4992, allocations: 235.8 kB / 0.6258 GB, free: 4.613 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.787e-05/0.4993, allocations: 15.94 kB / 0.6258 GB, free: 4.598 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.084e-05/0.4994, allocations: 23.98 kB / 0.6259 GB, free: 4.574 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.464e-06/0.4994, allocations: 4 kB / 0.6259 GB, free: 4.57 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/0.4994, allocations: 4 kB / 0.6259 GB, free: 4.566 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002976/0.5024, allocations: 2.372 MB / 0.6282 GB, free: 2.125 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002158/0.5026, allocations: 148.1 kB / 0.6283 GB, free: 1.961 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001465/0.5027, allocations: 31.98 kB / 0.6284 GB, free: 1.93 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000481/0.5032, allocations: 51.94 kB / 0.6284 GB, free: 1.879 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002381/0.5035, allocations: 112.8 kB / 0.6285 GB, free: 1.77 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.967e-05/0.5036, allocations: 31.98 kB / 0.6286 GB, free: 1.738 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0004205/0.504, allocations: 338.8 kB / 0.6289 GB, free: 1.406 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.504, allocations: 0 / 0.6289 GB, free: 1.406 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001086/0.5051, allocations: 331.9 kB / 0.6292 GB, free: 1.082 MB / 458.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.003584/0.5087, allocations: 3.278 MB / 0.6324 GB, free: 13.74 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.002973/0.5117, allocations: 1.884 MB / 0.6342 GB, free: 11.81 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.5117, allocations: 0 / 0.6342 GB, free: 11.81 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001092/0.5128, allocations: 0.9142 MB / 0.6351 GB, free: 10.88 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007081/0.5135, allocations: 129.1 kB / 0.6353 GB, free: 10.76 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1824/0.6959, allocations: 10.98 MB / 0.646 GB, free: 139.9 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008098/0.6968, allocations: 1.127 MB / 0.6471 GB, free: 139.2 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0008604/0.6976, allocations: 237.6 kB / 0.6473 GB, free: 139.2 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004883/0.6981, allocations: 341.7 kB / 0.6476 GB, free: 139.2 MB / 474.7 MB Notification: Performance of SimCode: time 1.863e-06/0.6981, allocations: 0 / 0.6476 GB, free: 139.2 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03796/0.7361, allocations: 20.22 MB / 0.6674 GB, free: 138.2 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001457/0.7363, allocations: 207.3 kB / 0.6676 GB, free: 138 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.329/3.065, allocations: 0 / 0.6676 GB, free: 138 MB / 474.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.RXline.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.RXline.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.RXline.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.RXline.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.RXline_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Transmission_RXline_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Transmission_RXline.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.RXline.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC3ph.Transmission.RXline_res.mat does not exist to compare? outputFormat=mat