Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_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_cpp_PowerSystems_Examples_AC3ph_Elementary_Breaker",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Breaker,fileNamePrefix="PowerSystems_cpp_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.002539/0.002538, allocations: 185.7 kB / 8.013 MB, free: 1.062 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.176/2.176, allocations: 205.3 MB / 213.7 MB, free: 1.742 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001089/0.001089, allocations: 86.64 kB / 261.8 MB, free: 1.688 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2666/0.2666, allocations: 37.99 MB / 347.7 MB, free: 5.773 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.478e-05/2.469e-05, allocations: 4 kB / 409.9 MB, free: 35.05 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1151/0.1152, allocations: 56.32 MB / 466.3 MB, free: 10.74 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5036/0.6188, allocations: 104.6 MB / 0.5575 GB, free: 7 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003004/0.6191, allocations: 90.27 kB / 0.5576 GB, free: 6.953 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08717/0.7063, allocations: 19.36 MB / 0.5765 GB, free: 6.531 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.174e-06/0.7064, allocations: 0 / 0.5765 GB, free: 6.531 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.581e-05/0.7065, allocations: 16 kB / 0.5765 GB, free: 6.516 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: 199 * Number of variables: 199 Notification: Performance of Generate backend data structure: time 0.003606/0.7101, allocations: 1.06 MB / 0.5775 GB, free: 5.445 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.216e-05/0.7101, allocations: 8.031 kB / 0.5775 GB, free: 5.438 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001281/0.7114, allocations: 142.5 kB / 0.5777 GB, free: 5.301 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004325/0.7158, allocations: 1.008 MB / 0.5786 GB, free: 4.434 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.237e-05/0.7159, allocations: 35.92 kB / 0.5787 GB, free: 4.402 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002184/0.7161, allocations: 47.91 kB / 0.5787 GB, free: 4.355 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002256/0.7184, allocations: 0.7861 MB / 0.5795 GB, free: 3.832 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00234/0.7208, allocations: 0.9417 MB / 0.5804 GB, free: 3.062 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.013e-05/0.7209, allocations: 11.81 kB / 0.5804 GB, free: 3.051 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000105/0.721, allocations: 4 kB / 0.5804 GB, free: 3.047 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001042/0.7211, allocations: 49.55 kB / 0.5805 GB, free: 3.004 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008575/0.7297, allocations: 3.999 MB / 0.5844 GB, free: 15.48 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001649/0.7314, allocations: 0.6618 MB / 0.585 GB, free: 15.04 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009357/0.7324, allocations: 439.2 kB / 0.5854 GB, free: 14.77 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.14e-05/0.7325, allocations: 16.53 kB / 0.5855 GB, free: 14.75 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001389/0.7339, allocations: 0.6173 MB / 0.5861 GB, free: 14.26 MB / 394.7 MB Notification: Performance of pre-optimization done (n=96): time 5.561e-06/0.7339, allocations: 3.984 kB / 0.5861 GB, free: 14.25 MB / 394.7 MB Notification: Performance of matching and sorting (n=97): time 0.005765/0.7397, allocations: 2.112 MB / 0.5881 GB, free: 12.54 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001233/0.7398, allocations: 153.3 kB / 0.5883 GB, free: 12.37 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007303/0.7406, allocations: 386.8 kB / 0.5886 GB, free: 12.07 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001573/0.7408, allocations: 37.44 kB / 0.5887 GB, free: 12.03 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003809/0.7412, allocations: 413.4 kB / 0.5891 GB, free: 11.7 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003764/0.7415, allocations: 281.5 kB / 0.5893 GB, free: 11.45 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.652e-05/0.7416, allocations: 0 / 0.5893 GB, free: 11.45 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001665/0.7418, allocations: 357 kB / 0.5897 GB, free: 11.11 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008966/0.7427, allocations: 376.2 kB / 0.59 GB, free: 10.88 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001075/0.7438, allocations: 0.5807 MB / 0.5906 GB, free: 10.37 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001165/0.745, allocations: 460.7 kB / 0.5911 GB, free: 10.05 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.879e-06/0.745, allocations: 4 kB / 0.5911 GB, free: 10.05 MB / 394.7 MB Notification: Performance of matching and sorting (n=138) (initialization): time 0.004669/0.7497, allocations: 1.364 MB / 0.5924 GB, free: 8.984 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.277e-05/0.7498, allocations: 41.69 kB / 0.5924 GB, free: 8.938 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.004143/0.754, allocations: 1.129 MB / 0.5935 GB, free: 8.086 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002169/0.7562, allocations: 423.7 kB / 0.5939 GB, free: 7.746 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001043/0.7572, allocations: 139.1 kB / 0.5941 GB, free: 7.617 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01074/0.768, allocations: 4.488 MB / 0.5985 GB, free: 4.109 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001153/0.7692, allocations: 51.97 kB / 0.5985 GB, free: 4.059 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000116/0.7693, allocations: 44.25 kB / 0.5985 GB, free: 4.023 MB / 394.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.0003613/0.7697, allocations: 185.9 kB / 0.5987 GB, free: 3.836 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002606/0.7723, allocations: 0.9539 MB / 0.5997 GB, free: 3.117 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002109/0.7726, allocations: 71.16 kB / 0.5997 GB, free: 3.047 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003061/0.7756, allocations: 1.054 MB / 0.6007 GB, free: 2.141 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.757e-05/0.7757, allocations: 16 kB / 0.6008 GB, free: 2.125 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.228e-05/0.7757, allocations: 7.984 kB / 0.6008 GB, free: 2.117 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.74e-05/0.7758, allocations: 3.984 kB / 0.6008 GB, free: 2.113 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005629/0.7814, allocations: 2.014 MB / 0.6027 GB, free: 40 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-05/0.7815, allocations: 4 kB / 0.6027 GB, free: 36 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001299/0.7828, allocations: 131.9 kB / 0.6029 GB, free: 15.91 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002464/0.783, allocations: 90.47 kB / 0.603 GB, free: 15.81 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001073/0.7832, allocations: 11.92 kB / 0.603 GB, free: 15.8 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003551/0.7867, allocations: 3.769 MB / 0.6067 GB, free: 11.68 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.921e-06/0.7868, allocations: 0 / 0.6067 GB, free: 11.68 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004345/0.7911, allocations: 1.725 MB / 0.6083 GB, free: 9.902 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002819/0.7914, allocations: 144.2 kB / 0.6085 GB, free: 9.742 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001786/0.7916, allocations: 15.98 kB / 0.6085 GB, free: 9.727 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008792/0.7925, allocations: 47.94 kB / 0.6085 GB, free: 9.68 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003189/0.7929, allocations: 88.59 kB / 0.6086 GB, free: 9.594 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001062/0.793, allocations: 27.98 kB / 0.6086 GB, free: 9.566 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0005279/0.7935, allocations: 287 kB / 0.6089 GB, free: 9.285 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.7935, allocations: 0 / 0.6089 GB, free: 9.285 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001423/0.795, allocations: 239.9 kB / 0.6091 GB, free: 9.051 MB / 410.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.004913/0.7999, allocations: 2.552 MB / 0.6116 GB, free: 6.449 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003452/0.8034, allocations: 1.297 MB / 0.6129 GB, free: 5.129 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.943e-06/0.8034, allocations: 4 kB / 0.6129 GB, free: 5.125 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001821/0.8053, allocations: 0.9102 MB / 0.6138 GB, free: 4.168 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009591/0.8063, allocations: 78.05 kB / 0.6139 GB, free: 4.094 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004921/0.8112, allocations: 1.659 MB / 0.6155 GB, free: 2.379 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001123/0.8124, allocations: 1.045 MB / 0.6165 GB, free: 1.305 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008988/0.8133, allocations: 299.3 kB / 0.6168 GB, free: 1.012 MB / 410.7 MB Notification: Performance of SimCode: time 1.713e-06/0.8133, allocations: 0 / 0.6168 GB, free: 1.012 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.395/4.208, allocations: 19.61 MB / 0.6359 GB, free: 13.39 MB / 442.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Breaker.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Breaker.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Breaker.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Breaker.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Breaker_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Breaker.fmu > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Breaker.pipe 2>&1)