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.001176/0.001176, allocations: 176.4 kB / 8.346 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.981/1.981, allocations: 205.3 MB / 214.1 MB, free: 14.11 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009289/0.0009284, allocations: 84.2 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2186/0.2186, allocations: 37.99 MB / 348 MB, free: 7.766 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.51e-05/2.514e-05, allocations: 4 kB / 410.7 MB, free: 46.86 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1428/0.1428, allocations: 56.33 MB / 467 MB, free: 6.469 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.543/0.6859, allocations: 106.3 MB / 0.5598 GB, free: 4.484 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000348/0.6863, allocations: 87.95 kB / 0.5599 GB, free: 4.398 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.07539/0.7618, allocations: 24.87 MB / 0.5842 GB, free: 11.27 MB / 427.1 MB Notification: Performance of FrontEnd: time 2.504e-06/0.7618, allocations: 0.75 kB / 0.5842 GB, free: 11.27 MB / 427.1 MB Notification: Performance of Transformations before backend: time 7.208e-05/0.7619, allocations: 24 kB / 0.5842 GB, free: 11.24 MB / 427.1 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.003555/0.7655, allocations: 1.385 MB / 0.5856 GB, free: 9.781 MB / 427.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.757e-05/0.7656, allocations: 8.031 kB / 0.5856 GB, free: 9.773 MB / 427.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001233/0.7668, allocations: 198.3 kB / 0.5858 GB, free: 9.578 MB / 427.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003894/0.7707, allocations: 1.206 MB / 0.587 GB, free: 8.328 MB / 427.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.829e-05/0.7708, allocations: 40 kB / 0.587 GB, free: 8.289 MB / 427.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001761/0.771, allocations: 71.91 kB / 0.5871 GB, free: 8.219 MB / 427.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002437/0.7735, allocations: 1.265 MB / 0.5883 GB, free: 6.953 MB / 427.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002356/0.7758, allocations: 1.407 MB / 0.5897 GB, free: 5.461 MB / 427.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.053e-05/0.7759, allocations: 7.938 kB / 0.5897 GB, free: 5.453 MB / 427.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.841e-05/0.776, allocations: 4 kB / 0.5897 GB, free: 5.449 MB / 427.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001286/0.7761, allocations: 77.95 kB / 0.5898 GB, free: 5.375 MB / 427.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009092/0.7852, allocations: 5.496 MB / 0.5951 GB, free: 15.73 MB / 443.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001543/0.7868, allocations: 1.012 MB / 0.5961 GB, free: 14.69 MB / 443.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001025/0.7879, allocations: 0.7787 MB / 0.5969 GB, free: 13.91 MB / 443.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.34e-05/0.788, allocations: 21.3 kB / 0.5969 GB, free: 13.89 MB / 443.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00158/0.7896, allocations: 1.061 MB / 0.5979 GB, free: 12.79 MB / 443.1 MB Notification: Performance of pre-optimization done (n=157): time 3.817e-06/0.7896, allocations: 3.938 kB / 0.5979 GB, free: 12.79 MB / 443.1 MB Notification: Performance of matching and sorting (n=158): time 0.006675/0.7963, allocations: 3.406 MB / 0.6013 GB, free: 9.324 MB / 443.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001925/0.7965, allocations: 213.2 kB / 0.6015 GB, free: 9.074 MB / 443.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007596/0.7973, allocations: 442 kB / 0.6019 GB, free: 8.633 MB / 443.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001045/0.7974, allocations: 37.7 kB / 0.6019 GB, free: 8.59 MB / 443.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005031/0.7979, allocations: 452.4 kB / 0.6024 GB, free: 8.141 MB / 443.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005415/0.7985, allocations: 461.5 kB / 0.6028 GB, free: 7.684 MB / 443.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.594e-05/0.7986, allocations: 0 / 0.6028 GB, free: 7.684 MB / 443.1 MB Notification: Performance of setup shared object (initialization): time 0.0003214/0.7989, allocations: 410.7 kB / 0.6032 GB, free: 7.273 MB / 443.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001071/0.8, allocations: 0.6482 MB / 0.6038 GB, free: 6.625 MB / 443.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001258/0.8012, allocations: 0.9137 MB / 0.6047 GB, free: 5.613 MB / 443.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001338/0.8026, allocations: 0.7585 MB / 0.6054 GB, free: 4.859 MB / 443.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.866e-06/0.8026, allocations: 4 kB / 0.6055 GB, free: 4.855 MB / 443.1 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.005701/0.8083, allocations: 2.617 MB / 0.608 GB, free: 2.223 MB / 443.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001176/0.8085, allocations: 59.41 kB / 0.6081 GB, free: 2.152 MB / 443.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.004807/0.8133, allocations: 2.262 MB / 0.6103 GB, free: 15.88 MB / 459.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003523/0.8169, allocations: 1.051 MB / 0.6113 GB, free: 14.83 MB / 459.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008482/0.8177, allocations: 147.7 kB / 0.6114 GB, free: 14.68 MB / 459.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01682/0.8346, allocations: 7.942 MB / 0.6192 GB, free: 6.621 MB / 459.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001267/0.8359, allocations: 63.81 kB / 0.6193 GB, free: 6.559 MB / 459.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003511/0.8363, allocations: 52 kB / 0.6193 GB, free: 6.508 MB / 459.1 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,97.2%) 40} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007746/0.8371, allocations: 244 kB / 0.6195 GB, free: 6.25 MB / 459.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003511/0.8406, allocations: 1.567 MB / 0.6211 GB, free: 4.676 MB / 459.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003298/0.841, allocations: 98.91 kB / 0.6212 GB, free: 4.578 MB / 459.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003122/0.8441, allocations: 1.664 MB / 0.6228 GB, free: 2.898 MB / 459.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.166e-05/0.8442, allocations: 35.97 kB / 0.6228 GB, free: 2.863 MB / 459.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.492e-05/0.8443, allocations: 4 kB / 0.6228 GB, free: 2.859 MB / 459.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.516e-05/0.8443, allocations: 7.969 kB / 0.6228 GB, free: 2.852 MB / 459.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006842/0.8511, allocations: 3.076 MB / 0.6258 GB, free: 15.72 MB / 475.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.41e-05/0.8512, allocations: 4 kB / 0.6258 GB, free: 15.72 MB / 475.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002223/0.8534, allocations: 379.6 kB / 0.6262 GB, free: 15.35 MB / 475.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002148/0.8537, allocations: 32.84 kB / 0.6262 GB, free: 15.31 MB / 475.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001779/0.8539, allocations: 19.92 kB / 0.6263 GB, free: 15.29 MB / 475.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001591/0.8555, allocations: 1.276 MB / 0.6275 GB, free: 13.9 MB / 475.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.272e-06/0.8555, allocations: 0 / 0.6275 GB, free: 13.9 MB / 475.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004773/0.8603, allocations: 2.758 MB / 0.6302 GB, free: 11.1 MB / 475.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007229/0.8611, allocations: 295.8 kB / 0.6305 GB, free: 10.79 MB / 475.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000295/0.8614, allocations: 24.11 kB / 0.6305 GB, free: 10.77 MB / 475.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009155/0.8623, allocations: 55.91 kB / 0.6306 GB, free: 10.71 MB / 475.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003634/0.8627, allocations: 137.1 kB / 0.6307 GB, free: 10.58 MB / 475.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001165/0.8628, allocations: 43.98 kB / 0.6307 GB, free: 10.54 MB / 475.1 MB Notification: Performance of sorting global known variables: time 0.0005728/0.8634, allocations: 330.9 kB / 0.631 GB, free: 10.21 MB / 475.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.8634, allocations: 0 / 0.631 GB, free: 10.21 MB / 475.1 MB Notification: Performance of remove unused functions: time 0.002165/0.8656, allocations: 355.9 kB / 0.6314 GB, free: 9.863 MB / 475.1 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.005923/0.8715, allocations: 3.596 MB / 0.6349 GB, free: 6.223 MB / 475.1 MB Notification: Performance of simCode: created initialization part: time 0.005358/0.8769, allocations: 2.392 MB / 0.6372 GB, free: 3.797 MB / 475.1 MB Notification: Performance of simCode: created event and clocks part: time 7.244e-06/0.877, allocations: 0 / 0.6372 GB, free: 3.797 MB / 475.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001948/0.879, allocations: 1.165 MB / 0.6384 GB, free: 2.598 MB / 475.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001366/0.8804, allocations: 126.6 kB / 0.6385 GB, free: 2.477 MB / 475.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2785/1.159, allocations: 2.644 MB / 0.6411 GB, free: 139.4 MB / 475.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001046/1.16, allocations: 1.232 MB / 0.6423 GB, free: 138.7 MB / 475.1 MB Notification: Performance of simCode: alias equations: time 0.001129/1.161, allocations: 274.8 kB / 0.6425 GB, free: 138.7 MB / 475.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006433/1.162, allocations: 401.9 kB / 0.6429 GB, free: 138.7 MB / 475.1 MB Notification: Performance of SimCode: time 6.51e-07/1.162, allocations: 0 / 0.6429 GB, free: 138.7 MB / 475.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0636/1.225, allocations: 24.81 MB / 0.6671 GB, free: 137.7 MB / 475.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001724/1.226, allocations: 148.6 kB / 0.6673 GB, free: 137.5 MB / 475.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.876/4.102, allocations: 3.844 kB / 0.6673 GB, free: 137.5 MB / 475.1 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