Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Fault.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.Elementary.Fault,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Fault",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Fault,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Fault",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.001815/0.001815, allocations: 175.2 kB / 13.63 MB, free: 1.684 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.613/1.613, allocations: 205.2 MB / 219.4 MB, free: 14.26 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.0008661/0.0008661, allocations: 86.66 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1649/0.1649, allocations: 37.97 MB / 353.5 MB, free: 1.75 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 3.612e-05/3.614e-05, allocations: 4 kB / 417.8 MB, free: 29.03 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1229/0.123, allocations: 56.32 MB / 474.2 MB, free: 4.699 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4425/0.5655, allocations: 106.9 MB / 0.5675 GB, free: 11.9 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003384/0.5659, allocations: 88.69 kB / 0.5676 GB, free: 11.86 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06793/0.6338, allocations: 25.07 MB / 0.592 GB, free: 6.223 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.6339, allocations: 0 / 0.592 GB, free: 6.223 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.42e-05/0.634, allocations: 28 kB / 0.5921 GB, free: 6.195 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 292 * Number of variables: 292 Notification: Performance of Generate backend data structure: time 0.002694/0.6367, allocations: 1.378 MB / 0.5934 GB, free: 4.816 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.406e-05/0.6367, allocations: 12.03 kB / 0.5934 GB, free: 4.805 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002267/0.637, allocations: 178.8 kB / 0.5936 GB, free: 4.684 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001059/0.638, allocations: 194.3 kB / 0.5938 GB, free: 4.492 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002923/0.641, allocations: 1.206 MB / 0.595 GB, free: 3.461 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.592e-05/0.6411, allocations: 90.22 kB / 0.595 GB, free: 3.402 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001711/0.6412, allocations: 105.5 kB / 0.5951 GB, free: 3.332 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002142/0.6434, allocations: 1.548 MB / 0.5967 GB, free: 2.145 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.829e-05/0.6434, allocations: 7.938 kB / 0.5967 GB, free: 2.137 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001024/0.6435, allocations: 46.84 kB / 0.5967 GB, free: 2.117 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.288e-05/0.6436, allocations: 65.92 kB / 0.5968 GB, free: 2.059 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001854/0.6455, allocations: 1.36 MB / 0.5981 GB, free: 1.109 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007295/0.6528, allocations: 5.692 MB / 0.6037 GB, free: 12.24 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001386/0.6542, allocations: 1.053 MB / 0.6047 GB, free: 11.52 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009599/0.6552, allocations: 0.8111 MB / 0.6055 GB, free: 11 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.932e-05/0.6553, allocations: 16.98 kB / 0.6055 GB, free: 10.99 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00136/0.6566, allocations: 1.102 MB / 0.6066 GB, free: 10.13 MB / 410.7 MB Notification: Performance of pre-optimization done (n=157): time 3.086e-06/0.6567, allocations: 3.938 kB / 0.6066 GB, free: 10.13 MB / 410.7 MB Notification: Performance of matching and sorting (n=158): time 0.005327/0.662, allocations: 3.762 MB / 0.6103 GB, free: 7.148 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001224/0.6621, allocations: 219.5 kB / 0.6105 GB, free: 6.895 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006092/0.6628, allocations: 481.2 kB / 0.6109 GB, free: 6.516 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 9.065e-05/0.6629, allocations: 62.75 kB / 0.611 GB, free: 6.469 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003592/0.6632, allocations: 442.6 kB / 0.6114 GB, free: 6.137 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003859/0.6636, allocations: 485.4 kB / 0.6119 GB, free: 5.695 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.691e-05/0.6637, allocations: 32 kB / 0.6119 GB, free: 5.664 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001909/0.6639, allocations: 414.7 kB / 0.6123 GB, free: 5.25 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009735/0.6649, allocations: 0.6756 MB / 0.613 GB, free: 4.574 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001148/0.666, allocations: 0.9492 MB / 0.6139 GB, free: 3.531 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001144/0.6672, allocations: 0.8477 MB / 0.6147 GB, free: 2.676 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.813e-06/0.6672, allocations: 4 kB / 0.6147 GB, free: 2.672 MB / 410.7 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.005284/0.6725, allocations: 2.807 MB / 0.6175 GB, free: 15.84 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.332e-05/0.6726, allocations: 59.41 kB / 0.6175 GB, free: 15.77 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.004313/0.6769, allocations: 2.36 MB / 0.6198 GB, free: 13.4 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003195/0.6801, allocations: 1.083 MB / 0.6209 GB, free: 12.32 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005396/0.6807, allocations: 151.7 kB / 0.621 GB, free: 12.17 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01295/0.6936, allocations: 8.285 MB / 0.6291 GB, free: 3.746 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001002/0.6947, allocations: 99.75 kB / 0.6292 GB, free: 3.648 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001128/0.6948, allocations: 52 kB / 0.6293 GB, free: 3.598 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 79 (system.initime,$PRE.fault_ab.fault_pp.t0,fault_ab.fault_pp.t0,$whenCondition2,$PRE.relay2.cnt,relay2.cnt,$whenCondition1,$PRE.relay1.cnt,relay1.cnt,$whenCondition22,$whenCondition21,$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],$PRE.fault_ab.theta_zero,fault_ab.theta_zero,$PRE.fault_ab.v_pos,fault_ab.v_pos,$PRE.fault_ab.first,fault_ab.first,$PRE.fault_ab.fault_pp.on,fault_ab.fault_pp.on) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (140): * Single equations (assignments): 133 * Array equations: 4 * 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 {(12,84.0%) 40} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003921/0.6952, allocations: 288 kB / 0.6295 GB, free: 3.297 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002157/0.6954, allocations: 102.8 kB / 0.6296 GB, free: 3.195 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002869/0.6983, allocations: 1.826 MB / 0.6314 GB, free: 1.344 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.709e-05/0.6984, allocations: 35.98 kB / 0.6314 GB, free: 1.309 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.6984, allocations: 4 kB / 0.6314 GB, free: 1.305 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.185e-05/0.6984, allocations: 11.97 kB / 0.6315 GB, free: 1.293 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005167/0.7036, allocations: 3.383 MB / 0.6348 GB, free: 13.83 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.182e-06/0.7036, allocations: 0 / 0.6348 GB, free: 13.83 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001934/0.7056, allocations: 383.6 kB / 0.6351 GB, free: 13.45 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001228/0.7057, allocations: 32.8 kB / 0.6352 GB, free: 13.42 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.494e-05/0.7058, allocations: 31.98 kB / 0.6352 GB, free: 13.39 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009607/0.7068, allocations: 1.331 MB / 0.6365 GB, free: 11.93 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.7068, allocations: 4.031 kB / 0.6365 GB, free: 11.92 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004007/0.7108, allocations: 2.917 MB / 0.6393 GB, free: 8.938 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006716/0.7115, allocations: 299.8 kB / 0.6396 GB, free: 8.625 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001652/0.7117, allocations: 35.98 kB / 0.6397 GB, free: 8.59 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006676/0.7124, allocations: 79.91 kB / 0.6397 GB, free: 8.512 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003036/0.7127, allocations: 136.8 kB / 0.6399 GB, free: 8.379 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000105/0.7128, allocations: 39.98 kB / 0.6399 GB, free: 8.34 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0005316/0.7133, allocations: 373.5 kB / 0.6403 GB, free: 7.977 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.7133, allocations: 0 / 0.6403 GB, free: 7.977 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001458/0.7148, allocations: 407.9 kB / 0.6407 GB, free: 7.578 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (line.i1[1],line.i1[2],line.i1[3],line.i2[1],line.i2[2],line.i2[3]) * Number of discrete variables: 54 (switch1.switch_c.closed,switch1.switch_b.closed,switch1.switch_a.closed,switch2.switch_a.closed,switch2.switch_c.closed,switch2.switch_b.closed,$whenCondition22,$whenCondition21,$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,fault_ab.theta_zero,fault_ab.v_pos,fault_ab.first,fault_ab.fault_pp.on,fault_ab.fault_pp.t0,system.initime) * Number of discrete states: 20 (fault_ab.theta_zero,fault_ab.fault_pp.on,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_a.open,switch2.switch_b.open,switch2.switch_c.open,fault_ab.v_pos,fault_ab.first,switch1.switch_c.open,switch1.switch_a.open,switch1.switch_b.open) * Top-level inputs: 0 Notification: Strong component statistics for simulation (122): * Single equations (assignments): 105 * Array equations: 4 * Algorithm blocks: 2 * Record equations: 0 * When equations: 10 * 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 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00482/0.7196, allocations: 3.782 MB / 0.6443 GB, free: 3.738 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004902/0.7246, allocations: 2.499 MB / 0.6468 GB, free: 1.195 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.822e-06/0.7246, allocations: 64 / 0.6468 GB, free: 1.195 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001694/0.7263, allocations: 1.198 MB / 0.648 GB, free: 15.96 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009717/0.7273, allocations: 143.2 kB / 0.6481 GB, free: 15.82 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005764/0.7331, allocations: 2.766 MB / 0.6508 GB, free: 13 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009839/0.7341, allocations: 1.242 MB / 0.652 GB, free: 11.73 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0009112/0.735, allocations: 276.1 kB / 0.6523 GB, free: 11.45 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006865/0.7357, allocations: 395.3 kB / 0.6526 GB, free: 11.07 MB / 458.7 MB Notification: Performance of SimCode: time 1.152e-06/0.7357, allocations: 3.938 kB / 0.6526 GB, free: 11.06 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04968/0.7854, allocations: 26.12 MB / 0.6782 GB, free: 0.957 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000164/0.7856, allocations: 170.8 kB / 0.6783 GB, free: 0.7344 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.83/3.616, allocations: 0 / 0.6783 GB, free: 0.7344 MB / 474.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Fault.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Fault.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Fault.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Fault.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Fault_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Fault_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Fault.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Fault.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Fault_res.mat does not exist to compare? outputFormat=mat