Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Breaker.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.Breaker,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Breaker",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Breaker,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Breaker",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.001072/0.001072, allocations: 175.1 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.537/1.537, allocations: 205.2 MB / 219.4 MB, free: 14.2 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.0008096/0.0008096, allocations: 82.66 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1783/0.1783, allocations: 37.98 MB / 353.5 MB, free: 1.754 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 3.472e-05/3.474e-05, allocations: 4 kB / 417.8 MB, free: 29.02 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1261/0.1262, allocations: 56.32 MB / 474.2 MB, free: 4.691 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4624/0.5886, allocations: 105.2 MB / 0.5658 GB, free: 13.57 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002511/0.5889, allocations: 92.69 kB / 0.5659 GB, free: 13.53 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05421/0.6432, allocations: 19.53 MB / 0.585 GB, free: 12.72 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.6432, allocations: 0 / 0.585 GB, free: 12.72 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.025e-05/0.6433, allocations: 16 kB / 0.585 GB, free: 12.71 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: 199 * Number of variables: 199 Notification: Performance of Generate backend data structure: time 0.002063/0.6453, allocations: 1.061 MB / 0.586 GB, free: 11.63 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.499e-05/0.6454, allocations: 8.031 kB / 0.586 GB, free: 11.62 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001606/0.6456, allocations: 132.3 kB / 0.5862 GB, free: 11.53 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000634/0.6462, allocations: 130.8 kB / 0.5863 GB, free: 11.4 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0025/0.6487, allocations: 1.02 MB / 0.5873 GB, free: 10.53 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.774e-05/0.6488, allocations: 68.36 kB / 0.5874 GB, free: 10.48 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001288/0.6489, allocations: 74.28 kB / 0.5874 GB, free: 10.43 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001526/0.6505, allocations: 1.04 MB / 0.5884 GB, free: 9.621 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.403e-05/0.6505, allocations: 3.938 kB / 0.5884 GB, free: 9.617 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.052e-05/0.6506, allocations: 38.67 kB / 0.5885 GB, free: 9.602 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.093e-05/0.6507, allocations: 45.86 kB / 0.5885 GB, free: 9.559 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001326/0.652, allocations: 0.8819 MB / 0.5894 GB, free: 8.945 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005039/0.657, allocations: 4.133 MB / 0.5934 GB, free: 5.328 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001028/0.6581, allocations: 0.6965 MB / 0.5941 GB, free: 4.844 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005591/0.6587, allocations: 461.5 kB / 0.5945 GB, free: 4.555 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.354e-05/0.6587, allocations: 8.562 kB / 0.5946 GB, free: 4.547 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009325/0.6597, allocations: 0.647 MB / 0.5952 GB, free: 4.035 MB / 394.7 MB Notification: Performance of pre-optimization done (n=96): time 3.406e-06/0.6597, allocations: 0 / 0.5952 GB, free: 4.035 MB / 394.7 MB Notification: Performance of matching and sorting (n=97): time 0.00374/0.6634, allocations: 2.319 MB / 0.5974 GB, free: 2.152 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001172/0.6636, allocations: 156.8 kB / 0.5976 GB, free: 1.973 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004896/0.6641, allocations: 399.3 kB / 0.598 GB, free: 1.66 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 6.445e-05/0.6642, allocations: 47.14 kB / 0.598 GB, free: 1.621 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002923/0.6645, allocations: 376 kB / 0.5984 GB, free: 1.332 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002266/0.6647, allocations: 295.1 kB / 0.5987 GB, free: 1.082 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.399e-05/0.6647, allocations: 22.28 kB / 0.5987 GB, free: 1.074 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001677/0.6649, allocations: 382.9 kB / 0.5991 GB, free: 0.7188 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005616/0.6655, allocations: 394.6 kB / 0.5994 GB, free: 480 kB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007249/0.6662, allocations: 0.5953 MB / 0.6 GB, free: 15.94 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006788/0.6669, allocations: 0.4937 MB / 0.6005 GB, free: 15.57 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.407e-06/0.6669, allocations: 7.938 kB / 0.6005 GB, free: 15.57 MB / 410.7 MB Notification: Performance of matching and sorting (n=138) (initialization): time 0.002811/0.6697, allocations: 1.505 MB / 0.602 GB, free: 14.39 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.933e-05/0.6698, allocations: 41.08 kB / 0.602 GB, free: 14.35 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002181/0.672, allocations: 1.188 MB / 0.6032 GB, free: 13.47 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001249/0.6732, allocations: 434 kB / 0.6036 GB, free: 13.12 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005005/0.6738, allocations: 138 kB / 0.6037 GB, free: 12.99 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006784/0.6806, allocations: 4.696 MB / 0.6083 GB, free: 9.266 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007121/0.6813, allocations: 75.94 kB / 0.6084 GB, free: 9.191 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.313e-05/0.6814, allocations: 39.98 kB / 0.6084 GB, free: 9.152 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 46 (system.initime,$whenCondition1,$PRE.relay.cnt,relay.cnt,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$PRE.breaker.breaker_a.arc,breaker.breaker_a.arc,$PRE.breaker.breaker_a.open,breaker.breaker_a.open,breaker.breaker_a.closed,$PRE.breaker.breaker_a.t0,breaker.breaker_a.t0,breaker.breaker_a.opening,$PRE.breaker.breaker_b.arc,breaker.breaker_b.arc,$PRE.breaker.breaker_b.open,breaker.breaker_b.open,breaker.breaker_b.closed,$PRE.breaker.breaker_b.t0,breaker.breaker_b.t0,breaker.breaker_b.opening,$PRE.breaker.breaker_c.arc,breaker.breaker_c.arc,$PRE.breaker.breaker_c.open,breaker.breaker_c.open,breaker.breaker_c.closed,$PRE.breaker.breaker_c.t0,breaker.breaker_c.t0,breaker.breaker_c.opening,$PRE.relay.y[1],relay.y[1],$PRE.relay.y[2],relay.y[2],$PRE.relay.y[3],relay.y[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (103): * Single equations (assignments): 99 * Array equations: 2 * Algorithm blocks: 1 * 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: 0 * Non-linear torn systems: 1 {4 21} Notification: Performance of prepare postOptimizeDAE: time 0.0002809/0.6817, allocations: 214.4 kB / 0.6086 GB, free: 8.934 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001555/0.6818, allocations: 75.16 kB / 0.6087 GB, free: 8.859 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001911/0.6837, allocations: 1.14 MB / 0.6098 GB, free: 7.695 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.922e-05/0.6838, allocations: 19.95 kB / 0.6098 GB, free: 7.676 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.119e-06/0.6838, allocations: 3.984 kB / 0.6098 GB, free: 7.672 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.04e-05/0.6838, allocations: 7.984 kB / 0.6098 GB, free: 7.664 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003418/0.6872, allocations: 2.209 MB / 0.612 GB, free: 5.375 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.626e-06/0.6873, allocations: 8 kB / 0.612 GB, free: 5.367 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006562/0.6879, allocations: 131.8 kB / 0.6121 GB, free: 5.238 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001574/0.6881, allocations: 86.55 kB / 0.6122 GB, free: 5.145 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.208e-05/0.6882, allocations: 23.98 kB / 0.6122 GB, free: 5.121 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002631/0.6908, allocations: 3.914 MB / 0.616 GB, free: 0.8086 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.6908, allocations: 3.938 kB / 0.6161 GB, free: 0.8047 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002583/0.6934, allocations: 1.821 MB / 0.6178 GB, free: 14.92 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002286/0.6937, allocations: 144.3 kB / 0.618 GB, free: 14.76 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001032/0.6938, allocations: 35.88 kB / 0.618 GB, free: 14.73 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004916/0.6943, allocations: 63.94 kB / 0.6181 GB, free: 14.66 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002117/0.6945, allocations: 84.66 kB / 0.6181 GB, free: 14.58 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.426e-05/0.6946, allocations: 27.98 kB / 0.6182 GB, free: 14.55 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0004014/0.695, allocations: 305.2 kB / 0.6185 GB, free: 14.25 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.695, allocations: 0 / 0.6185 GB, free: 14.25 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00102/0.696, allocations: 283.9 kB / 0.6187 GB, free: 13.98 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (ind.i[1],ind.i[2],ind.i[3]) * Number of discrete variables: 33 (breaker.breaker_c.closed,breaker.breaker_b.closed,breaker.breaker_a.closed,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,breaker.breaker_a.arc,breaker.breaker_a.open,breaker.breaker_a.t0,breaker.breaker_a.opening,breaker.breaker_b.arc,breaker.breaker_b.open,breaker.breaker_b.t0,breaker.breaker_b.opening,breaker.breaker_c.arc,breaker.breaker_c.open,breaker.breaker_c.t0,breaker.breaker_c.opening,relay.y[1],relay.y[2],relay.y[3],relay.cnt,system.initime) * Number of discrete states: 11 (breaker.breaker_a.arc,breaker.breaker_b.arc,breaker.breaker_c.arc,relay.y[3],relay.y[2],relay.y[1],relay.cnt,$whenCondition1,breaker.breaker_c.open,breaker.breaker_a.open,breaker.breaker_b.open) * Top-level inputs: 0 Notification: Strong component statistics for simulation (85): * Single equations (assignments): 72 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 0 * When equations: 7 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003135/0.6991, allocations: 2.65 MB / 0.6213 GB, free: 11.26 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002264/0.7014, allocations: 1.356 MB / 0.6226 GB, free: 9.883 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.7014, allocations: 0 / 0.6226 GB, free: 9.883 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001146/0.7026, allocations: 0.9575 MB / 0.6236 GB, free: 8.875 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000635/0.7032, allocations: 98 kB / 0.6237 GB, free: 8.781 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003615/0.7069, allocations: 1.665 MB / 0.6253 GB, free: 7.066 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007811/0.7077, allocations: 1.049 MB / 0.6263 GB, free: 5.992 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0006446/0.7083, allocations: 193.8 kB / 0.6265 GB, free: 5.801 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004902/0.7088, allocations: 287.3 kB / 0.6268 GB, free: 5.52 MB / 426.7 MB Notification: Performance of SimCode: time 1.122e-06/0.7088, allocations: 0 / 0.6268 GB, free: 5.52 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03594/0.7448, allocations: 17.95 MB / 0.6443 GB, free: 3.598 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001812/0.745, allocations: 195.7 kB / 0.6445 GB, free: 3.363 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.506/3.251, allocations: 0 / 0.6445 GB, free: 3.363 MB / 442.7 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Breaker.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Breaker.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Breaker.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Breaker.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Breaker_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Breaker_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Elementary_Breaker.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Breaker.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC3ph.Elementary.Breaker_res.mat does not exist to compare? outputFormat=mat