Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.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.AC1ph_DC.Elementary.Breaker,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_Breaker",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Breaker,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_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.003242/0.003241, allocations: 182.4 kB / 15.76 MB, free: 6.344 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.054/2.054, allocations: 205.4 MB / 221.9 MB, free: 13.83 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.001187/0.001187, allocations: 98.86 kB / 270.2 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2724/0.2724, allocations: 38.06 MB / 356.5 MB, free: 0.8086 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004689/0.0004692, allocations: 16 kB / 422.8 MB, free: 26.33 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.132/0.1326, allocations: 56.33 MB / 479.1 MB, free: 1.949 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4903/0.6229, allocations: 98.68 MB / 0.5643 GB, free: 0.5938 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003016/0.6233, allocations: 95.75 kB / 0.5644 GB, free: 0.543 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04697/0.6703, allocations: 10.1 MB / 0.5742 GB, free: 7.867 MB / 378.7 MB Notification: Performance of FrontEnd: time 4.178e-06/0.6703, allocations: 0 / 0.5742 GB, free: 7.867 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.696e-05/0.6704, allocations: 19.88 kB / 0.5742 GB, free: 7.848 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.002353/0.6728, allocations: 0.7916 MB / 0.575 GB, free: 7.039 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.447e-05/0.6728, allocations: 12.02 kB / 0.575 GB, free: 7.027 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002301/0.6731, allocations: 72.16 kB / 0.5751 GB, free: 6.969 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001892/0.6733, allocations: 59.3 kB / 0.5752 GB, free: 6.91 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003766/0.6771, allocations: 0.8993 MB / 0.576 GB, free: 6.113 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.609e-05/0.6772, allocations: 31.23 kB / 0.5761 GB, free: 6.09 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001057/0.6773, allocations: 39 kB / 0.5761 GB, free: 6.062 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001203/0.6785, allocations: 469.6 kB / 0.5765 GB, free: 5.695 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.13e-05/0.6785, allocations: 0 / 0.5765 GB, free: 5.695 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.053e-05/0.6786, allocations: 16.38 kB / 0.5766 GB, free: 5.691 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.77e-05/0.6786, allocations: 12 kB / 0.5766 GB, free: 5.68 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001083/0.6797, allocations: 365.8 kB / 0.5769 GB, free: 5.426 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003627/0.6834, allocations: 1.708 MB / 0.5786 GB, free: 3.91 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009166/0.6844, allocations: 311.4 kB / 0.5789 GB, free: 3.676 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.57e-05/0.6845, allocations: 8.281 kB / 0.5789 GB, free: 3.668 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006417/0.6851, allocations: 283.9 kB / 0.5792 GB, free: 3.418 MB / 378.7 MB Notification: Performance of pre-optimization done (n=35): time 3.156e-06/0.6851, allocations: 0 / 0.5792 GB, free: 3.418 MB / 378.7 MB Notification: Performance of matching and sorting (n=36): time 0.003903/0.689, allocations: 1.428 MB / 0.5806 GB, free: 2.086 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001284/0.6892, allocations: 140.5 kB / 0.5807 GB, free: 1.922 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006405/0.6899, allocations: 326.4 kB / 0.581 GB, free: 1.652 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.77e-05/0.69, allocations: 39.56 kB / 0.581 GB, free: 1.613 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002539/0.6903, allocations: 305.9 kB / 0.5813 GB, free: 1.363 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001745/0.6904, allocations: 112.8 kB / 0.5814 GB, free: 1.27 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.589e-05/0.6905, allocations: 6.688 kB / 0.5815 GB, free: 1.27 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001644/0.6907, allocations: 333.8 kB / 0.5818 GB, free: 0.9414 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004212/0.6911, allocations: 127.2 kB / 0.5819 GB, free: 0.8594 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005407/0.6917, allocations: 258.2 kB / 0.5821 GB, free: 0.6016 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000487/0.6922, allocations: 175.5 kB / 0.5823 GB, free: 492 kB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.482e-06/0.6922, allocations: 7.938 kB / 0.5823 GB, free: 484 kB / 378.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001465/0.6937, allocations: 0.5121 MB / 0.5828 GB, free: 60 kB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.842e-05/0.6938, allocations: 33.7 kB / 0.5828 GB, free: 20 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.637e-05/0.6938, allocations: 7.984 kB / 0.5829 GB, free: 12 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004779/0.6943, allocations: 75.34 kB / 0.5829 GB, free: 15.95 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005888/0.6949, allocations: 75.45 kB / 0.583 GB, free: 15.88 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003614/0.6985, allocations: 2.778 MB / 0.5857 GB, free: 12.98 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005997/0.6992, allocations: 27.17 kB / 0.5857 GB, free: 12.96 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.633e-05/0.6993, allocations: 19.38 kB / 0.5858 GB, free: 12.95 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 18 (system.initime,$whenCondition1,$PRE.relay.cnt,relay.cnt,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$PRE.relay.y[1],relay.y[1],$PRE.breaker.breaker_1.arc,breaker.breaker_1.arc,$PRE.breaker.breaker_1.open,breaker.breaker_1.open,breaker.breaker_1.closed,$PRE.breaker.breaker_1.t0,breaker.breaker_1.t0,breaker.breaker_1.opening) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (54): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005321/0.6998, allocations: 250.4 kB / 0.586 GB, free: 12.72 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001142/0.6999, allocations: 39.53 kB / 0.586 GB, free: 12.68 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001366/0.7013, allocations: 471.4 kB / 0.5865 GB, free: 12.33 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.678e-06/0.7014, allocations: 8 kB / 0.5865 GB, free: 12.32 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.987e-06/0.7014, allocations: 4 kB / 0.5865 GB, free: 12.32 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.955e-06/0.7014, allocations: 0 / 0.5865 GB, free: 12.32 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002507/0.7039, allocations: 1.028 MB / 0.5875 GB, free: 11.44 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.727e-06/0.704, allocations: 3.953 kB / 0.5875 GB, free: 11.44 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003614/0.7043, allocations: 47.34 kB / 0.5875 GB, free: 11.39 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004004/0.7048, allocations: 75.56 kB / 0.5876 GB, free: 11.32 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.317e-05/0.7048, allocations: 13.42 kB / 0.5876 GB, free: 11.32 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003262/0.7081, allocations: 2.786 MB / 0.5903 GB, free: 8.414 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.7081, allocations: 0 / 0.5903 GB, free: 8.414 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001894/0.7101, allocations: 0.7639 MB / 0.5911 GB, free: 7.777 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001932/0.7103, allocations: 115.2 kB / 0.5912 GB, free: 7.648 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001057/0.7104, allocations: 14.83 kB / 0.5912 GB, free: 7.641 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004282/0.7108, allocations: 19.36 kB / 0.5912 GB, free: 7.625 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000155/0.711, allocations: 37 kB / 0.5913 GB, free: 7.594 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.851e-05/0.7111, allocations: 11.38 kB / 0.5913 GB, free: 7.586 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0004762/0.7116, allocations: 262.8 kB / 0.5915 GB, free: 7.383 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.7116, allocations: 0 / 0.5915 GB, free: 7.383 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0007563/0.7123, allocations: 112.1 kB / 0.5916 GB, free: 7.285 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (ind.i[1],ind.i[2]) * Number of discrete variables: 13 (breaker.breaker_1.closed,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,relay.y[1],relay.cnt,breaker.breaker_1.arc,breaker.breaker_1.open,breaker.breaker_1.t0,breaker.breaker_1.opening,system.initime) * Number of discrete states: 5 (breaker.breaker_1.arc,relay.y[1],relay.cnt,$whenCondition1,breaker.breaker_1.open) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(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.002386/0.7147, allocations: 1.467 MB / 0.5931 GB, free: 5.945 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001622/0.7164, allocations: 0.6408 MB / 0.5937 GB, free: 5.367 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.749e-06/0.7165, allocations: 3.938 kB / 0.5937 GB, free: 5.363 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001097/0.7176, allocations: 491.5 kB / 0.5942 GB, free: 4.906 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000794/0.7184, allocations: 77.8 kB / 0.5942 GB, free: 4.848 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007848/0.7263, allocations: 5.277 MB / 0.5994 GB, free: 15.85 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000645/0.727, allocations: 0.8764 MB / 0.6003 GB, free: 14.96 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003662/0.7273, allocations: 161.1 kB / 0.6004 GB, free: 14.91 MB / 410.7 MB Notification: Performance of SimCode: time 1.242e-06/0.7274, allocations: 0 / 0.6004 GB, free: 14.91 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.981/3.708, allocations: 11.04 MB / 0.6112 GB, free: 3.949 MB / 410.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_Breaker_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Elementary_Breaker.fmu > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Breaker.pipe 2>&1)