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.001545/0.001545, allocations: 186.1 kB / 13.19 MB, free: 2.125 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.948/1.948, allocations: 205.2 MB / 218.9 MB, free: 9.137 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.001082/0.001082, allocations: 83.78 kB / 267.1 MB, free: 9.262 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2738/0.2738, allocations: 37.96 MB / 353.1 MB, free: 3.035 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.7e-05/3.711e-05, allocations: 4 kB / 416.9 MB, free: 41.18 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1052/0.1052, allocations: 56.31 MB / 473.2 MB, free: 0.8125 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4782/0.5835, allocations: 98.59 MB / 0.5584 GB, free: 5.066 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003389/0.5839, allocations: 91.94 kB / 0.5585 GB, free: 4.977 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04777/0.6317, allocations: 10.1 MB / 0.5683 GB, free: 10.77 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.6317, allocations: 3.938 kB / 0.5683 GB, free: 10.77 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.114e-05/0.6317, allocations: 12 kB / 0.5684 GB, free: 10.75 MB / 410.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.001703/0.6335, allocations: 0.7146 MB / 0.5691 GB, free: 9.992 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.122e-05/0.6335, allocations: 8.031 kB / 0.5691 GB, free: 9.984 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001405/0.6337, allocations: 74.53 kB / 0.5691 GB, free: 9.902 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001567/0.6338, allocations: 59.3 kB / 0.5692 GB, free: 9.844 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003757/0.6376, allocations: 0.882 MB / 0.5701 GB, free: 8.922 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.671e-05/0.6377, allocations: 24.78 kB / 0.5701 GB, free: 8.898 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001062/0.6378, allocations: 40 kB / 0.5701 GB, free: 8.859 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001268/0.6391, allocations: 471.9 kB / 0.5706 GB, free: 8.363 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.968e-05/0.6392, allocations: 0 / 0.5706 GB, free: 8.363 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.24e-05/0.6392, allocations: 16 kB / 0.5706 GB, free: 8.348 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.964e-05/0.6393, allocations: 15.95 kB / 0.5706 GB, free: 8.332 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001028/0.6403, allocations: 350.9 kB / 0.5709 GB, free: 7.988 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003833/0.6442, allocations: 1.715 MB / 0.5726 GB, free: 6.184 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009332/0.6451, allocations: 311.5 kB / 0.5729 GB, free: 5.863 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008123/0.646, allocations: 221.9 kB / 0.5731 GB, free: 5.641 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.525e-05/0.646, allocations: 8.234 kB / 0.5731 GB, free: 5.633 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006269/0.6467, allocations: 275.7 kB / 0.5734 GB, free: 5.336 MB / 410.7 MB Notification: Performance of pre-optimization done (n=35): time 3.146e-06/0.6467, allocations: 4 kB / 0.5734 GB, free: 5.332 MB / 410.7 MB Notification: Performance of matching and sorting (n=36): time 0.002854/0.6496, allocations: 1.051 MB / 0.5744 GB, free: 4.203 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001077/0.6497, allocations: 144.5 kB / 0.5746 GB, free: 4.031 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005998/0.6503, allocations: 323.6 kB / 0.5749 GB, free: 3.711 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 6.346e-05/0.6504, allocations: 37.7 kB / 0.5749 GB, free: 3.668 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002736/0.6507, allocations: 306.4 kB / 0.5752 GB, free: 3.363 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001542/0.6509, allocations: 106.5 kB / 0.5753 GB, free: 3.258 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.646e-05/0.6509, allocations: 12 kB / 0.5753 GB, free: 3.246 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001662/0.6511, allocations: 326.8 kB / 0.5756 GB, free: 2.918 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004047/0.6515, allocations: 125.1 kB / 0.5757 GB, free: 2.797 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004904/0.652, allocations: 252.1 kB / 0.576 GB, free: 2.496 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004613/0.6525, allocations: 185.3 kB / 0.5762 GB, free: 2.309 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.703e-06/0.6525, allocations: 4 kB / 0.5762 GB, free: 2.305 MB / 410.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0014/0.6539, allocations: 0.5 MB / 0.5766 GB, free: 1.785 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.004e-05/0.654, allocations: 33.73 kB / 0.5767 GB, free: 1.746 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.389e-05/0.654, allocations: 4 kB / 0.5767 GB, free: 1.742 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003996/0.6544, allocations: 77.67 kB / 0.5768 GB, free: 1.66 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005408/0.655, allocations: 75.83 kB / 0.5768 GB, free: 1.586 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003315/0.6583, allocations: 2.77 MB / 0.5795 GB, free: 14.55 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006029/0.659, allocations: 23.98 kB / 0.5796 GB, free: 14.53 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.993e-05/0.659, allocations: 20 kB / 0.5796 GB, free: 14.51 MB / 426.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 () * 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.0002421/0.6593, allocations: 166.7 kB / 0.5797 GB, free: 14.34 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001307/0.6594, allocations: 43.52 kB / 0.5798 GB, free: 14.29 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001503/0.6609, allocations: 464.9 kB / 0.5802 GB, free: 13.82 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.06e-05/0.661, allocations: 4 kB / 0.5802 GB, free: 13.82 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.323e-05/0.661, allocations: 7.984 kB / 0.5802 GB, free: 13.81 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.016e-05/0.661, allocations: 3.953 kB / 0.5802 GB, free: 13.8 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00256/0.6636, allocations: 1.025 MB / 0.5812 GB, free: 12.71 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.45e-06/0.6636, allocations: 0 / 0.5812 GB, free: 12.71 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003757/0.664, allocations: 51.83 kB / 0.5813 GB, free: 12.66 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003919/0.6644, allocations: 77.69 kB / 0.5814 GB, free: 12.57 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.545e-05/0.6645, allocations: 19.98 kB / 0.5814 GB, free: 12.55 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003055/0.6676, allocations: 2.756 MB / 0.5841 GB, free: 9.527 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.6676, allocations: 0 / 0.5841 GB, free: 9.527 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001844/0.6695, allocations: 0.7493 MB / 0.5848 GB, free: 8.73 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001697/0.6697, allocations: 124.7 kB / 0.5849 GB, free: 8.59 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.883e-05/0.6698, allocations: 19.94 kB / 0.5849 GB, free: 8.57 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004173/0.6702, allocations: 19.98 kB / 0.585 GB, free: 8.551 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001394/0.6703, allocations: 35.95 kB / 0.585 GB, free: 8.516 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.741e-05/0.6704, allocations: 11.98 kB / 0.585 GB, free: 8.504 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.000459/0.6709, allocations: 254.1 kB / 0.5852 GB, free: 8.258 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.6709, allocations: 0 / 0.5852 GB, free: 8.258 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0007309/0.6716, allocations: 116 kB / 0.5854 GB, free: 8.145 MB / 426.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) * 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.002292/0.6739, allocations: 1.447 MB / 0.5868 GB, free: 6.641 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001505/0.6755, allocations: 0.6336 MB / 0.5874 GB, free: 5.969 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.266e-06/0.6755, allocations: 8 kB / 0.5874 GB, free: 5.961 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009934/0.6765, allocations: 481 kB / 0.5879 GB, free: 5.453 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000749/0.6773, allocations: 85.64 kB / 0.5879 GB, free: 5.371 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002539/0.6798, allocations: 0.886 MB / 0.5888 GB, free: 4.438 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006433/0.6805, allocations: 0.882 MB / 0.5897 GB, free: 3.527 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000356/0.6809, allocations: 151.4 kB / 0.5898 GB, free: 3.379 MB / 426.7 MB Notification: Performance of SimCode: time 1.252e-06/0.6809, allocations: 0 / 0.5898 GB, free: 3.379 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.075/3.756, allocations: 11.05 MB / 0.6006 GB, free: 8.32 MB / 442.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)